kernel_optimize_test/tools/bpf/bpftool
Jiri Benc 20d5de51e7 tools: bpftool: fix compilation with older headers
Compilation of bpftool on a distro that lacks eBPF support in the installed
kernel headers fails with:

common.c: In function ‘is_bpffs’:
common.c:96:40: error: ‘BPF_FS_MAGIC’ undeclared (first use in this function)
  return (unsigned long)st_fs.f_type == BPF_FS_MAGIC;
                                        ^
Fix this the same way it is already in tools/lib/bpf/libbpf.c and
tools/lib/api/fs/fs.c.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-03-06 22:51:00 +01:00
..
bash-completion tools: bpftool: add bash completion for cgroup commands 2018-02-08 11:59:50 +01:00
Documentation tools: bpftool: add bash completion for cgroup commands 2018-02-08 11:59:50 +01:00
cgroup.c tools: bpftool: remove new lines from errors 2018-01-04 12:28:46 +01:00
common.c tools: bpftool: fix compilation with older headers 2018-03-06 22:51:00 +01:00
jit_disasm.c tools: bpftool: improve architecture detection by using ifindex 2018-01-18 01:26:15 +01:00
json_writer.c tools: bpftool: add JSON output for bpftool prog dump xlated * command 2017-10-24 01:25:08 +01:00
json_writer.h tools: bpftool: add JSON output for bpftool prog dump xlated * command 2017-10-24 01:25:08 +01:00
main.c tools: bpftool: preserve JSON output on errors on batch file parsing 2018-02-15 10:01:05 +01:00
main.h tools: bpftool: improve architecture detection by using ifindex 2018-01-18 01:26:15 +01:00
Makefile tools: bpftool: add -DPACKAGE when including bfd.h 2018-01-17 01:15:05 +01:00
map.c bpftool: recognize BPF_MAP_TYPE_CPUMAP maps 2018-01-19 23:16:52 +01:00
prog.c tools: bpftool: preserve JSON for batch mode when dumping insns to file 2018-02-15 10:01:05 +01:00