diff options
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/tests/bpf-script-example.c | 4 | ||||
-rw-r--r-- | tools/perf/tests/bpf.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tools/perf/tests/bpf-script-example.c b/tools/perf/tests/bpf-script-example.c index 0ec9c2c03164..e53bc91fa260 100644 --- a/tools/perf/tests/bpf-script-example.c +++ b/tools/perf/tests/bpf-script-example.c | |||
@@ -31,8 +31,8 @@ struct bpf_map_def SEC("maps") flip_table = { | |||
31 | .max_entries = 1, | 31 | .max_entries = 1, |
32 | }; | 32 | }; |
33 | 33 | ||
34 | SEC("func=sys_epoll_pwait") | 34 | SEC("func=sys_epoll_wait") |
35 | int bpf_func__sys_epoll_pwait(void *ctx) | 35 | int bpf_func__sys_epoll_wait(void *ctx) |
36 | { | 36 | { |
37 | int ind =0; | 37 | int ind =0; |
38 | int *flag = bpf_map_lookup_elem(&flip_table, &ind); | 38 | int *flag = bpf_map_lookup_elem(&flip_table, &ind); |
diff --git a/tools/perf/tests/bpf.c b/tools/perf/tests/bpf.c index da0d87613975..fc54064b9186 100644 --- a/tools/perf/tests/bpf.c +++ b/tools/perf/tests/bpf.c | |||
@@ -13,13 +13,13 @@ | |||
13 | 13 | ||
14 | #ifdef HAVE_LIBBPF_SUPPORT | 14 | #ifdef HAVE_LIBBPF_SUPPORT |
15 | 15 | ||
16 | static int epoll_pwait_loop(void) | 16 | static int epoll_wait_loop(void) |
17 | { | 17 | { |
18 | int i; | 18 | int i; |
19 | 19 | ||
20 | /* Should fail NR_ITERS times */ | 20 | /* Should fail NR_ITERS times */ |
21 | for (i = 0; i < NR_ITERS; i++) | 21 | for (i = 0; i < NR_ITERS; i++) |
22 | epoll_pwait(-(i + 1), NULL, 0, 0, NULL); | 22 | epoll_wait(-(i + 1), NULL, 0, 0); |
23 | return 0; | 23 | return 0; |
24 | } | 24 | } |
25 | 25 | ||
@@ -61,7 +61,7 @@ static struct { | |||
61 | "[basic_bpf_test]", | 61 | "[basic_bpf_test]", |
62 | "fix 'perf test LLVM' first", | 62 | "fix 'perf test LLVM' first", |
63 | "load bpf object failed", | 63 | "load bpf object failed", |
64 | &epoll_pwait_loop, | 64 | &epoll_wait_loop, |
65 | (NR_ITERS + 1) / 2, | 65 | (NR_ITERS + 1) / 2, |
66 | }, | 66 | }, |
67 | #ifdef HAVE_BPF_PROLOGUE | 67 | #ifdef HAVE_BPF_PROLOGUE |