summaryrefslogtreecommitdiffstats
path: root/samples/bpf/tracex7.bpf.c
diff options
context:
space:
mode:
authorDaniel T. Lee <danieltimlee@gmail.com>2023-08-18 18:01:12 +0900
committerAlexei Starovoitov <ast@kernel.org>2023-08-21 15:39:09 -0700
commite7e6c774f5d40244444f23b8c49dac2ded158d8c (patch)
treea6b348adf3883cbaaed55b2a273dd62b2eb416bf /samples/bpf/tracex7.bpf.c
parent34f6e38f58db9a94718c273edc9ca3fc8b4dba5f (diff)
downloadlinux-e7e6c774f5d40244444f23b8c49dac2ded158d8c.tar.gz
linux-e7e6c774f5d40244444f23b8c49dac2ded158d8c.tar.bz2
linux-e7e6c774f5d40244444f23b8c49dac2ded158d8c.zip
samples/bpf: convert to vmlinux.h with tracing programs
This commit replaces separate headers with a single vmlinux.h to tracing programs. Thanks to that, we no longer need to define the argument structure for tracing programs directly. For example, argument for the sched_switch tracpepoint (sched_switch_args) can be replaced with the vmlinux.h provided trace_event_raw_sched_switch. Additional defines have been added to the BPF program either directly or through the inclusion of net_shared.h. Defined values are PERF_MAX_STACK_DEPTH, IFNAMSIZ constants and __stringify() macro. This change enables the BPF program to access internal structures with BTF generated "vmlinux.h" header. Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com> Link: https://lore.kernel.org/r/20230818090119.477441-3-danieltimlee@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'samples/bpf/tracex7.bpf.c')
0 files changed, 0 insertions, 0 deletions