Couldn't capture workqueue/* ftrace event in perfetto-trace with userroot build. #953
-
Using command below: In eng build, I can capture all of the Ftrace Events in perfetto-trace. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Due to security reasons, on user builds, Perfetto on the system only has support for enabling a limited set of ftrace events it is explicitly allowed to read in init.rc files. This list of events is controlled via UNIX ACLs and live in the atrace.rc [1] file in the Android build. Presumably you have control over the the way the system is built given you are able to produce engineering builds so you should add the events you want to this list. Alternatively, you could also collect these events with a sideloaded tracebox binary but probably you want to do the above, I'm just mentioning it for completeness sake. |
Beta Was this translation helpful? Give feedback.
Due to security reasons, on user builds, Perfetto on the system only has support for enabling a limited set of ftrace events it is explicitly allowed to read in init.rc files.
This list of events is controlled via UNIX ACLs and live in the atrace.rc [1] file in the Android build. Presumably you have control over the the way the system is built given you are able to produce engineering builds so you should add the events you want to this list.
Alternatively, you could also collect these events with a sideloaded tracebox binary but probably you want to do the above, I'm just mentioning it for completeness sake.
[1] https://cs.android.com/android/platform/superproject/main/+/main:frameworks/…