diff options
author | Toke Høiland-Jørgensen <toke@redhat.com> | 2020-01-20 14:06:48 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-01-21 01:37:45 +0100 |
commit | 521fe8bb5874963d5f6fd58d5c5ad80fbc9c6b1c (patch) | |
tree | 6a3374f202a597b0d18594cdb7d4ec39addebec0 /tools/perf/examples | |
parent | bpftool: Use consistent include paths for libbpf (diff) | |
download | linux-521fe8bb5874963d5f6fd58d5c5ad80fbc9c6b1c.tar.xz linux-521fe8bb5874963d5f6fd58d5c5ad80fbc9c6b1c.zip |
perf: Use consistent include paths for libbpf
Fix perf to include libbpf header files with the bpf/ prefix, to
be consistent with external users of the library.
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/157952560797.1683545.7685921032671386301.stgit@toke.dk
Diffstat (limited to 'tools/perf/examples')
-rw-r--r-- | tools/perf/examples/bpf/5sec.c | 2 | ||||
-rw-r--r-- | tools/perf/examples/bpf/empty.c | 2 | ||||
-rw-r--r-- | tools/perf/examples/bpf/sys_enter_openat.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/examples/bpf/5sec.c b/tools/perf/examples/bpf/5sec.c index b9c203219691..49f4f84da485 100644 --- a/tools/perf/examples/bpf/5sec.c +++ b/tools/perf/examples/bpf/5sec.c @@ -39,7 +39,7 @@ Copyright (C) 2018 Red Hat, Inc., Arnaldo Carvalho de Melo <acme@redhat.com> */ -#include <bpf.h> +#include <bpf/bpf.h> int probe(hrtimer_nanosleep, rqtp->tv_sec)(void *ctx, int err, long sec) { diff --git a/tools/perf/examples/bpf/empty.c b/tools/perf/examples/bpf/empty.c index 3776d26db9e7..7d7fb0c9fe76 100644 --- a/tools/perf/examples/bpf/empty.c +++ b/tools/perf/examples/bpf/empty.c @@ -1,3 +1,3 @@ -#include <bpf.h> +#include <bpf/bpf.h> license(GPL); diff --git a/tools/perf/examples/bpf/sys_enter_openat.c b/tools/perf/examples/bpf/sys_enter_openat.c index 9cd124b09392..c4481c390d23 100644 --- a/tools/perf/examples/bpf/sys_enter_openat.c +++ b/tools/perf/examples/bpf/sys_enter_openat.c @@ -14,7 +14,7 @@ * the return value. */ -#include <bpf.h> +#include <bpf/bpf.h> struct syscall_enter_openat_args { unsigned long long unused; |