-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
why trace.py can not give full userstack with kernel stack #4735
Comments
Kernel relies on stack pointer to unwind the stack, and likely, your libc is compiled with omit frame pointer, so the stack is imcomplete. There is an attempt to using DWARF to unwind the stack, see https://www.polarsignals.com/blog/posts/2022/11/29/dwarf-based-stack-walking-using-ebpf/. |
how do you know my libc is compiled with omit frame pointer? |
I don't know, I just guess, most Linux distributions do that. https://fedoraproject.org/wiki/Changes/fno-omit-frame-pointer |
./trace-bpfcc -UK __alloc_pages -L $(pidof myhi)
I trace my demo program, it output like this:
the user stack not show all stack. the full may like below:
anyone know why there is not have full user stack?
thanks
demo.zip
The text was updated successfully, but these errors were encountered: