diff options
author | Toke Høiland-Jørgensen <toke@redhat.com> | 2020-01-20 14:06:49 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-01-20 16:37:45 -0800 |
commit | 7cf245a37ef013b2c1c5ca7ae25061de2ba7ad01 (patch) | |
tree | b49b220dcc5f32ab9c39852ff8a73a0e3bda4c5a /samples/bpf/map_perf_test_kern.c | |
parent | 521fe8bb5874963d5f6fd58d5c5ad80fbc9c6b1c (diff) | |
download | linux-7cf245a37ef013b2c1c5ca7ae25061de2ba7ad01.tar.gz linux-7cf245a37ef013b2c1c5ca7ae25061de2ba7ad01.tar.bz2 linux-7cf245a37ef013b2c1c5ca7ae25061de2ba7ad01.zip |
samples/bpf: Use consistent include paths for libbpf
Fix all files in samples/bpf to include libbpf header files with the bpf/
prefix, to be consistent with external users of the library. Also ensure
that all includes of exported libbpf header files (those that are exported
on 'make install' of the library) use bracketed includes instead of quoted.
To make sure no new files are introduced that doesn't include the bpf/
prefix in its include, remove tools/lib/bpf from the include path entirely,
and use tools/lib instead.
Fixes: 6910d7d3867a ("selftests/bpf: Ensure bpf_helper_defs.h are taken from selftests dir")
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/157952560911.1683545.8795966751309534150.stgit@toke.dk
Diffstat (limited to 'samples/bpf/map_perf_test_kern.c')
-rw-r--r-- | samples/bpf/map_perf_test_kern.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/bpf/map_perf_test_kern.c b/samples/bpf/map_perf_test_kern.c index 281bcdaee58e..12e91ae64d4d 100644 --- a/samples/bpf/map_perf_test_kern.c +++ b/samples/bpf/map_perf_test_kern.c @@ -8,9 +8,9 @@ #include <linux/netdevice.h> #include <linux/version.h> #include <uapi/linux/bpf.h> -#include "bpf_helpers.h" +#include <bpf/bpf_helpers.h> #include "bpf_legacy.h" -#include "bpf_tracing.h" +#include <bpf/bpf_tracing.h> #define MAX_ENTRIES 1000 #define MAX_NR_CPUS 1024 |