summaryrefslogtreecommitdiffstats
path: root/samples/bpf
diff options
context:
space:
mode:
authorMickaël Salaün <mic@digikod.net>2017-02-08 21:27:44 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-02-13 17:22:35 -0300
commitaf392a8f5399e831cb502ff210dacef8b38ca513 (patch)
tree62bc1967c6f7d1d6babe71daa6bd46cde8e8292e /samples/bpf
parent5eae7d842510d33d4410c062280eda6c935403dd (diff)
downloadop-kernel-dev-af392a8f5399e831cb502ff210dacef8b38ca513.zip
op-kernel-dev-af392a8f5399e831cb502ff210dacef8b38ca513.tar.gz
samples/bpf: Add missing header
Include unistd.h to define __NR_getuid and __NR_getsid. Signed-off-by: Mickaël Salaün <mic@digikod.net> Acked-by: Joe Stringer <joe@ovn.org> Acked-by: Wang Nan <wangnan0@huawei.com> Cc: Alexei Starovoitov <ast@fb.com> Cc: Daniel Borkmann <daniel@iogearbox.net> Cc: David S. Miller <davem@davemloft.net> Cc: netdev@vger.kernel.org Link: http://lkml.kernel.org/r/20170208202744.16274-4-mic@digikod.net Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'samples/bpf')
-rw-r--r--samples/bpf/tracex5_kern.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/bpf/tracex5_kern.c b/samples/bpf/tracex5_kern.c
index fd12d71..7e4cf74 100644
--- a/samples/bpf/tracex5_kern.c
+++ b/samples/bpf/tracex5_kern.c
@@ -8,6 +8,7 @@
#include <linux/version.h>
#include <uapi/linux/bpf.h>
#include <uapi/linux/seccomp.h>
+#include <uapi/linux/unistd.h>
#include "bpf_helpers.h"
#define PROG(F) SEC("kprobe/"__stringify(F)) int bpf_func_##F
OpenPOWER on IntegriCloud