aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2017-04-22 15:31:05 -0400
committerDavid S. Miller <davem@davemloft.net>2017-04-22 16:01:52 -0400
commitb0c47807d31deccdfb78a22a0d04dd9785bdb9d3 (patch)
treeca692f4934315e65ae4927eca8ccb1e4030c4836 /tools/lib/bpf/bpf.c
parent7a12b5031c6b947cc13918237ae652b536243b76 (diff)
bpf: Add sparc support to tools and samples.
Signed-off-by: David S. Miller <davem@davemloft.net> Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/lib/bpf/bpf.c')
-rw-r--r--tools/lib/bpf/bpf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/lib/bpf/bpf.c b/tools/lib/bpf/bpf.c
index f84c398c11f4..4fe444b8092e 100644
--- a/tools/lib/bpf/bpf.c
+++ b/tools/lib/bpf/bpf.c
@@ -37,6 +37,8 @@
37# define __NR_bpf 321 37# define __NR_bpf 321
38# elif defined(__aarch64__) 38# elif defined(__aarch64__)
39# define __NR_bpf 280 39# define __NR_bpf 280
40# elif defined(__sparc__)
41# define __NR_bpf 349
40# else 42# else
41# error __NR_bpf not defined. libbpf does not support your arch. 43# error __NR_bpf not defined. libbpf does not support your arch.
42# endif 44# endif