Jiri Olsa
c430f62553
selftests/bpf: Fix perf_buffer test on system with offline cpus
...
[ Upstream commit d4121376ac7a9c81a696d7558789b2f29ef3574e ]
The perf_buffer fails on system with offline cpus:
# test_progs -t perf_buffer
test_perf_buffer:PASS:nr_cpus 0 nsec
test_perf_buffer:PASS:nr_on_cpus 0 nsec
test_perf_buffer:PASS:skel_load 0 nsec
test_perf_buffer:PASS:attach_kprobe 0 nsec
test_perf_buffer:PASS:perf_buf__new 0 nsec
test_perf_buffer:PASS:epoll_fd 0 nsec
skipping offline CPU #24
skipping offline CPU #25
skipping offline CPU #26
skipping offline CPU #27
skipping offline CPU #28
skipping offline CPU #29
skipping offline CPU #30
skipping offline CPU #31
test_perf_buffer:PASS:perf_buffer__poll 0 nsec
test_perf_buffer:PASS:seen_cpu_cnt 0 nsec
test_perf_buffer:FAIL:buf_cnt got 24, expected 32
Summary: 0/0 PASSED, 0 SKIPPED, 1 FAILED
Changing the test to check online cpus instead of possible.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20211021114132.8196-2-jolsa@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-18 19:16:18 +01:00
..
2021-09-26 10:09:20 -07:00
2021-09-15 09:49:48 -07:00
2021-07-31 11:23:26 -07:00
2021-09-03 08:16:00 -03:00
2021-04-23 14:42:40 -07:00
2021-06-13 17:01:17 -06:00
2021-03-26 14:56:19 +01:00
2021-03-25 19:13:52 +00:00
2021-10-05 14:51:33 -03:00
2021-08-13 08:58:11 -06:00
2021-10-18 14:07:18 -04:00
2021-10-14 15:41:35 -03:00
2021-07-27 11:48:55 -07:00
2021-10-06 20:11:57 -07:00
2021-08-05 11:01:30 +01:00
2021-10-31 12:51:41 -03:00
2021-06-18 15:29:32 +02:00
2021-05-10 15:39:19 -07:00
2021-05-17 12:10:03 +09:00
2021-04-22 16:30:39 +01:00
2021-11-18 19:16:18 +01:00
2021-08-14 15:33:19 +02:00
2021-09-14 10:31:41 +02:00
2021-08-11 06:44:24 -04:00
2021-09-24 16:13:35 -07:00