aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2020-02-29 15:11:10 -0800
committerAlexei Starovoitov <[email protected]>2020-03-02 16:25:14 -0800
commitfd56e0058412fb542db0e9556f425747cf3f8366 (patch)
treefa11ac72a2bc294ab41dad229bb3142ef5996083 /tools/perf/scripts/python/netdev-times.py
parentca7dc2791b507f842d73e46b1a0453b36b69ffc2 (diff)
libbpf: Fix use of PT_REGS_PARM macros with vmlinux.h
Add detection of vmlinux.h to bpf_tracing.h header for PT_REGS macro. Currently, BPF applications have to define __KERNEL__ symbol to use correct definition of struct pt_regs on x86 arch. This is due to different field names under internal kernel vs UAPI conditions. To make this more transparent for users, detect vmlinux.h by checking __VMLINUX_H__ symbol. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions