Skip to content

Commit af392a8

Browse files
l0kodacmel
authored andcommitted
samples/bpf: Add missing header
Include unistd.h to define __NR_getuid and __NR_getsid. Signed-off-by: Mickaël Salaün <[email protected]> Acked-by: Joe Stringer <[email protected]> Acked-by: Wang Nan <[email protected]> Cc: Alexei Starovoitov <[email protected]> Cc: Daniel Borkmann <[email protected]> Cc: David S. Miller <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 5eae7d8 commit af392a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

samples/bpf/tracex5_kern.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <linux/version.h>
99
#include <uapi/linux/bpf.h>
1010
#include <uapi/linux/seccomp.h>
11+
#include <uapi/linux/unistd.h>
1112
#include "bpf_helpers.h"
1213

1314
#define PROG(F) SEC("kprobe/"__stringify(F)) int bpf_func_##F

0 commit comments

Comments
 (0)