diff options
author | David S. Miller <davem@davemloft.net> | 2017-09-21 11:59:16 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-21 11:59:16 -0700 |
commit | a99855d1598be17d3da618234daab5cbc49afb07 (patch) | |
tree | 3a99f3b18a470af3cc600720f021bc6f20444b16 /samples/bpf/map_perf_test_user.c | |
parent | ae3e24fd547e9f0b1443c1f004c29165180eb101 (diff) | |
parent | 8bf2ac25a96c69985a1a9fbbad7da22ae4343a38 (diff) |
Merge branch 'ebpf-samples-cross-compile'
Joel Fernandes says:
====================
Add cross-compilation support to eBPF samples
These patches fix issues seen when cross-compiling eBPF samples on arm64.
Compared to [1], I dropped the controversial inline-asm patch and exploring
other options to fix it. However these patches are a step in the right
direction and I look forward to getting them into -next and the merge window.
Changes since v3:
- just a repost with acks
[1] https://lkml.org/lkml/2017/8/7/417
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/bpf/map_perf_test_user.c')
-rw-r--r-- | samples/bpf/map_perf_test_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/bpf/map_perf_test_user.c b/samples/bpf/map_perf_test_user.c index f388254896f6..a0310fc70057 100644 --- a/samples/bpf/map_perf_test_user.c +++ b/samples/bpf/map_perf_test_user.c @@ -282,7 +282,7 @@ static void test_array_lookup(int cpu) start_time = time_get_ns(); for (i = 0; i < max_cnt; i++) - syscall(__NR_getpgrp, 0); + syscall(__NR_getppid, 0); printf("%d:array_lookup %lld lookups per sec\n", cpu, max_cnt * 1000000000ll * 64 / (time_get_ns() - start_time)); } |