backends: Don't depend on linux/bpf.h to compile bpf disassembler.
authorMark Wielaard <mark@klomp.org>
Tue, 18 Jul 2017 12:12:36 +0000 (14:12 +0200)
committerMark Wielaard <mark@klomp.org>
Mon, 24 Jul 2017 10:06:14 +0000 (12:06 +0200)
commit1609679b1ef3611c71a08900c2f6b94bb97d454d
tree24b3f6dfa5308e4c3a1ddb37b5097694a263ac7f
parentc8e16c12661d18e6ae724a6d89b81c0df9da365a
backends: Don't depend on linux/bpf.h to compile bpf disassembler.

We only need a few constants and one structure definition from linux/bpf.
Just define those in a local lib/bpf.h file. This makes sure the bpf
disassembler is always build and included even when elfutils is build
on older GNU/Linux systems (and even on other platforms).

Signed-off-by: Mark Wielaard <mark@klomp.org>
15 files changed:
ChangeLog
NEWS
backends/ChangeLog
backends/Makefile.am
backends/bpf_init.c
backends/bpf_regs.c
configure.ac
lib/ChangeLog
lib/Makefile.am
lib/bpf.h [new file with mode: 0644]
libcpu/ChangeLog
libcpu/Makefile.am
libcpu/bpf_disasm.c
tests/ChangeLog
tests/Makefile.am