tools lib bpf: Copy bpf.h and bpf_common.h from the kernel
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 11 Jul 2016 19:38:05 +0000 (16:38 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 12 Jul 2016 18:20:32 +0000 (15:20 -0300)
commit971e827bffef781dd089a402fe602ff20c1f1819
tree91052dc27d4b33318ff6e728e8e660fb2235d1a0
parent7d7d1bf1d1dabe435ef50efb051724b8664749cb
tools lib bpf: Copy bpf.h and bpf_common.h from the kernel

To allow the build to complete on older systems, where those files are
either not uptodate, lacking some recent additions or not present at
all.

And check if the copy drifts from the kernel, as in this synthetic test:

    BUILD:   Doing 'make -j4' parallel build
  Warning: tools/include/linux/bpf.h differs from kernel
  Warning: tools/include/linux/bpf_common.h differs from kernel

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-5plvi2gq4x469dcyybiu226q@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/include/uapi/linux/bpf.h [new file with mode: 0644]
tools/include/uapi/linux/bpf_common.h [new file with mode: 0644]
tools/lib/bpf/Makefile
tools/perf/MANIFEST
tools/perf/config/Makefile