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

Use PERF_CONTEXT_{KERNEL, GUEST} in some way. #349

Open
cvonelm opened this issue Nov 6, 2024 · 0 comments
Open

Use PERF_CONTEXT_{KERNEL, GUEST} in some way. #349

cvonelm opened this issue Nov 6, 2024 · 0 comments

Comments

@cvonelm
Copy link
Member

cvonelm commented Nov 6, 2024

Something I have discovered almost by accident is that if you do callstack sampling with lo2s, perf will put marker events with Instruction Pointer value PERF_CONTEXT_{KERNEL, USER ...} on the callstack. (The numeric IP value is something very high like 0xffff fffe0).

These events denote the border between IPs in the callstack in the kernel and userspace.

In an upcoming patch, I have simply decided to filter them out for now. One idea Mario had was to write marker CallingContext events in their place like [kernel_begin].

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

1 participant