diff options
author | Daniel T. Lee <danieltimlee@gmail.com> | 2023-01-15 10:16:12 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-01-16 00:32:45 +0300 |
commit | e8acf8f47a5d58a00fbfa0f3592bbaaff557cec3 (patch) | |
tree | 526e205b4251f0c2705cbf7d5c7204c63fabc8d0 /samples/bpf/test_overhead_kprobe_kern.c | |
parent | c2f4f5593e6ae8014b277b46f5f9a8227f11d69c (diff) | |
download | linux-e8acf8f47a5d58a00fbfa0f3592bbaaff557cec3.tar.xz |
samples/bpf: use vmlinux.h instead of implicit headers in BPF test program
This commit applies vmlinux.h to BPF functionality testing program.
Macros that were not defined despite migration to "vmlinux.h" were
defined separately in individual files.
Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com>
Link: https://lore.kernel.org/r/20230115071613.125791-10-danieltimlee@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'samples/bpf/test_overhead_kprobe_kern.c')
-rw-r--r-- | samples/bpf/test_overhead_kprobe_kern.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/samples/bpf/test_overhead_kprobe_kern.c b/samples/bpf/test_overhead_kprobe_kern.c index ba82949338c2..c3528731e0e1 100644 --- a/samples/bpf/test_overhead_kprobe_kern.c +++ b/samples/bpf/test_overhead_kprobe_kern.c @@ -4,10 +4,8 @@ * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. */ +#include "vmlinux.h" #include <linux/version.h> -#include <linux/ptrace.h> -#include <linux/sched.h> -#include <uapi/linux/bpf.h> #include <bpf/bpf_helpers.h> #include <bpf/bpf_tracing.h> |