Skip to content
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

Unable to get the function offset of sched_blocked_reason using Perfetto #996

Open
quenpsi opened this issue Jan 26, 2025 · 1 comment
Open

Comments

@quenpsi
Copy link

quenpsi commented Jan 26, 2025

Hello, when I use Pertetto to capture the trace, the caller of sched_blocked_reason is just a function name without offset. Like this:

Image

But it can be displayed normally when I grab ftrace alone. Do you know how to solve it?

echo 1 >/sys/kernel/tracing/events/sched/sched_blocked_reason/enable

echo 1 > /sys/kernel/tracing/tracing_on

cat /sys/kernel/tracing/trace

Image

@LalitMaganti
Copy link
Collaborator

Theres no solution for this as sched_blocked_reason is implemented today. We don't use the text interface of ftrace but the binary interface which gives us the full function address. To avoid leaking kaslr, we turn this into a symbol name on device at which point the offset is lost

Frankly this is the first time anyone has asked about this in 7 years of Perfetto so it's unlikely we would do anything about this, especially because it requires changes across the whole stack.

Patches for this welcome but we will not be getting to this any time soon (and I don't think we consider this a high priority).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants