perf bpf: Add linux/socket.h to the headers accessible to bpf proggies
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 29 Aug 2018 20:41:53 +0000 (17:41 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 30 Aug 2018 18:52:20 +0000 (15:52 -0300)
commit403f833d15a33bfd8e50dd79fa8e25fb4aa132f6
tree53041672e1b04584fbab072eec53f8ff844e9be5
parentd35b168c3dcdf103c2b2d694ad8513a669781703
perf bpf: Add linux/socket.h to the headers accessible to bpf proggies

So that we don't have to define sockaddr_storage in the
augmented_syscalls.c bpf example when hooking into syscalls needing it,
idea is to mimic the system headers. Eventually we probably need to have
sys/socket.h, etc.  Start by having at least linux/socket.h.

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: https://lkml.kernel.org/n/tip-yhzarcvsjue8pgpvkjhqgioc@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile.perf
tools/perf/include/bpf/linux/socket.h [new file with mode: 0644]