aboutsummaryrefslogtreecommitdiffstats
path: root/samples/bpf/fds_example.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2018-05-10 17:24:38 +0000
committerDaniel Borkmann <[email protected]>2018-05-10 23:40:51 +0000
commit74662ea5d41683e7ff723c35649b0192a8e6ba8f (patch)
tree140bd26efcb352da5b22ad1858475cae0cd83a76 /samples/bpf/fds_example.c
parenttools: bpftool: use PERF_SAMPLE_TIME instead of reading the clock (diff)
downloadkernel-74662ea5d41683e7ff723c35649b0192a8e6ba8f.tar.gz
kernel-74662ea5d41683e7ff723c35649b0192a8e6ba8f.zip
samples: bpf: rename struct bpf_map_def to avoid conflict with libbpf
Both tools/lib/bpf/libbpf.h and samples/bpf/bpf_load.h define their own version of struct bpf_map_def. The version in bpf_load.h has more fields. libbpf does not support inner maps and its definition of struct bpf_map_def lacks the related fields. Rename the definition in bpf_load.h (samples/bpf) to avoid conflicts. Signed-off-by: Jakub Kicinski <[email protected]> Reviewed-by: Quentin Monnet <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'samples/bpf/fds_example.c')
0 files changed, 0 insertions, 0 deletions