]> git.baikalelectronics.ru Git - kernel.git/commit
samples/bpf: Use getppid instead of getpgrp for array map stress
authorJoel Fernandes <joelaf@google.com>
Wed, 20 Sep 2017 16:11:56 +0000 (09:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Sep 2017 18:59:16 +0000 (11:59 -0700)
commitd1f576b609cb14d013f0acdb3a4eea732b28366a
treecd30fc80c00e8f343a7161e7829b405167081964
parent7b3877c1d325d34fec5b1cc52a155e391743a14a
samples/bpf: Use getppid instead of getpgrp for array map stress

When cross-compiling the bpf sample map_perf_test for aarch64, I find that
__NR_getpgrp is undefined. This causes build errors. This syscall is deprecated
and requires defining __ARCH_WANT_SYSCALL_DEPRECATED. To avoid having to define
that, just use a different syscall (getppid) for the array map stress test.

Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Joel Fernandes <joelaf@google.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/bpf/map_perf_test_kern.c
samples/bpf/map_perf_test_user.c