We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
not so hard in C but tricky in rust. needed for flamegraphing kprobe's and tracepoint and adding the kernel part to profile.
iovisor/bcc#2073
struct task_struct* __current = (struct task_struct*)bpf_get_current_task(); void* __current_stack_page = __current->stack; void* __ptr = __current_stack_page + THREAD_SIZE - TOP_OF_KERNEL_STACK_PADDING; struct pt_regs* _tctx = ((struct pt_regs *)__ptr) - 1;
THREAD_SIZE should be 2 * PAGE_SIZE and PAGE_SIZE 4096 TOP_OF_KERNEL_STACK_PADDING should be 0 on x86_64
The text was updated successfully, but these errors were encountered:
No branches or pull requests
not so hard in C but tricky in rust. needed for flamegraphing kprobe's and tracepoint and adding the kernel part to profile.
iovisor/bcc#2073
THREAD_SIZE should be 2 * PAGE_SIZE and PAGE_SIZE 4096
TOP_OF_KERNEL_STACK_PADDING should be 0 on x86_64
The text was updated successfully, but these errors were encountered: