Skip to content

Couldn't capture workqueue/* ftrace event in perfetto-trace with userroot build. #953

Answered by LalitMaganti
fx9037curry asked this question in Q&A
Discussion options

You must be logged in to vote

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/…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@fx9037curry
Comment options

Answer selected by LalitMaganti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #952 on November 29, 2024 11:37.