samples: bpf: syscall_nrs: use mmap2 if defined
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Thu, 15 Aug 2019 12:13:56 +0000 (15:13 +0300)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 21 Aug 2019 12:31:38 +0000 (14:31 +0200)
commitbb4b5c08a8e0f854a313184498b22fa37dd087db
treee61180ca51498f2d106aa490fddd31f9af22f273
parent624676e788992e4da8de1fad93bfe51563a7f9a0
samples: bpf: syscall_nrs: use mmap2 if defined

For arm32 xdp sockets mmap2 is preferred, so use it if it's defined.
Declaration of __NR_mmap can be skipped and it breaks build.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Acked-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
samples/bpf/syscall_nrs.c
samples/bpf/tracex5_kern.c