Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1576057
| From | Mickaël Salaün <mic@digikod.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v3 5/5] samples/bpf: Add missing header |
| Date | 2017-02-07 22:00 +0100 |
| Message-ID | <t8l1N-7If-47@gated-at.bofh.it> (permalink) |
| References | <t8l1M-7If-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Include unistd.h to define __NR_getuid and __NR_getsid.
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Cc: Alexei Starovoitov <ast@fb.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: David S. Miller <davem@davemloft.net>
---
samples/bpf/tracex5_kern.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/samples/bpf/tracex5_kern.c b/samples/bpf/tracex5_kern.c
index fd12d7154d42..7e4cf74553ff 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
--
2.11.0
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v3 0/5] Miscellaneous fixes for BPF (perf tree) Mickaël Salaün <mic@digikod.net> - 2017-02-07 22:00 +0100
[PATCH v3 1/5] bpf: Add missing header to the library Mickaël Salaün <mic@digikod.net> - 2017-02-07 22:00 +0100
Re: [PATCH v3 1/5] bpf: Add missing header to the library "Wangnan (F)" <wangnan0@huawei.com> - 2017-02-08 03:50 +0100
Re: [PATCH v3 1/5] bpf: Add missing header to the library Arnaldo Carvalho de Melo <acme@redhat.com> - 2017-02-08 20:50 +0100
[PATCH v3 3/5] samples/bpf: Ignore already processed ELF sections Mickaël Salaün <mic@digikod.net> - 2017-02-07 22:00 +0100
[PATCH v3 5/5] samples/bpf: Add missing header Mickaël Salaün <mic@digikod.net> - 2017-02-07 22:00 +0100
[PATCH v3 4/5] samples/bpf: Reset global variables Mickaël Salaün <mic@digikod.net> - 2017-02-07 22:00 +0100
csiph-web