Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • F freedreno
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.

  • freedreno
  • freedreno
  • Merge requests
  • !22

Make trace fd thread local and have thread specific files

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Lucas Fryzek requested to merge Hazematman/freedreno:android_apk_tracing into master Feb 24, 2023
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 1

When tracing android APKs, there are multiple threads running that use the driver. This creates per thread files, preventing the multiple threads from clobbering the trace file.

An android APK can be traced by uploading the libwrap.so file to /system/lib64/ (I found it needs to be in the system folder to prevent android related permission issues). You can then get an app to do LD_PRELOAD by running in an adb shell:

setprop wrap.<app name> "LD_PRELOAD=/system/lib64/libwrap.so"

This change also moves the trace file from /sdcard/ to /sdcard/Download/ for similar android permission related issues.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: android_apk_tracing