aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <[email protected]>2025-07-03 20:48:12 +0000
committerAlexei Starovoitov <[email protected]>2025-07-04 02:30:07 +0000
commitd7c431cafcb4917b0d87b5cd10637cd47b6c8d79 (patch)
treee4ed1a81bc9e3ef1e595e72d7643e7839cc6f9ec /tools/bpf/bpftool/prog.c
parentbpf: Add function to find program from stack trace (diff)
downloadkernel-d7c431cafcb4917b0d87b5cd10637cd47b6c8d79.tar.gz
kernel-d7c431cafcb4917b0d87b5cd10637cd47b6c8d79.zip
bpf: Add dump_stack() analogue to print to BPF stderr
Introduce a kernel function which is the analogue of dump_stack() printing some useful information and the stack trace. This is not exposed to BPF programs yet, but can be made available in the future. When we have a program counter for a BPF program in the stack trace, also additionally output the filename and line number to make the trace helpful. The rest of the trace can be passed into ./decode_stacktrace.sh to obtain the line numbers for kernel symbols. Reviewed-by: Emil Tsalapatis <[email protected]> Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions