-
-
Notifications
You must be signed in to change notification settings - Fork 619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No context switches & system tracing on Android #818
Comments
Seems I have found some solution.
trough magiskpolicy tool: (https://topjohnwu.github.io/Magisk/tools.html). Warning: it violated security policies as with this changes every app can get access to tracing calls that can cause some data leakage. But after that I still received -1 results and got errors with invalid parameter (got in from errno). I found out that this errors were caused by use_clockid and clockid setting, seems that my version of kernel\android has no support CLOCK_MONOTONIC_RAW neither CLOCK_MONOTONIC (or maybe all modern Android devices have no access to use them?). After removing usage of this parameters I finally got system tracing\context switches information in tracy (but without call stacks, all zones were marked ???). Hope this information will be useful for someone and there will be some general solution for use_clockid and type of clockid bu default |
Hi,
I am trying to get context switches information in Tracy (ver 0.9.1) from Android device (Magisk rooted Samsung J6 with armv7a processor, running on Android 10). Unfortunately I can't make it work. I don't see any information from CPU data section as I can see on Win machines for example
I have executed this commands in su mode from shell on the device (from documentation):
but it changed nothing, I still don't have context switches information in Tracy. I've found pretty close issue: #268 but there were no updates and no information, also approach of profiling has changed since that moment and that closed issue may be not relevant anymore.
Also I've debugged launch and found that perf_event_open always returns -1 and SysTraceStart doesn't create any listeners in fact. I am ran out of ideas how to fix it or what's exactly is going wrong with this system calls. Any ideas how to make this advanced profiling work on Android devices? I would appreciate any information\help.
The text was updated successfully, but these errors were encountered: