mirror-linux/tools/perf/tests/shell
Namhyung Kim 0686336f73 perf test stat_bpf_counters_cgrp: Enhance perf stat cgroup BPF counter test
[ Upstream commit a84260e314 ]

It has system-wide test and cpu-list test but the cpu-list test fails
sometimes.  It runs sleep command on CPU1 and measure both user.slice
and system.slice cgroups by default (on systemd-based systems).

But if the system was idle enough, sometime the system.slice gets no
count and it makes the test failing.  Maybe that's because it only looks
at the CPU1, let's add CPU0 to increase the chance it finds some tasks.

Fixes: 7901086014 ("perf test: Add a new test for perf stat cgroup BPF counter")
Reported-by: Arnaldo Carvalho de Melo <acme@kernel.org>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: bpf@vger.kernel.org
Link: https://lore.kernel.org/r/20230825164152.165610-3-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-19 12:28:00 +02:00
..
coresight perf test coresight: Add unroll thread test shell script 2022-10-06 14:50:55 -03:00
lib perf test: Add CoreSight shell lib shared code for future tests 2022-10-06 11:12:14 -03:00
buildid.sh
daemon.sh Merge remote-tracking branch 'torvalds/master' into perf/core 2021-03-29 10:39:10 -03:00
lock_contention.sh perf test: Add kernel lock contention test 2022-10-04 08:55:23 -03:00
pipe_test.sh perf tools: Add pipe_test.sh to verify pipe operations 2021-08-02 10:14:58 -03:00
probe_vfs_getname.sh
record+probe_libc_inet_pton.sh
record+script_probe_vfs_getname.sh perf test: Fix record+script_probe_vfs_getname.sh /tmp cleanup 2021-10-26 11:14:49 -03:00
record+zstd_comp_decomp.sh perf tests: Remove bash construct from record+zstd_comp_decomp.sh 2021-11-13 18:11:51 -03:00
record.sh perf test: Fix test case 87 ("perf record tests") for hybrid systems 2022-09-29 09:52:56 -03:00
record_offcpu.sh perf tests record_offcpu.sh: Fix redirection of stderr to stdin 2023-05-17 11:53:39 +02:00
stat+csv_output.sh perf tests stat+csv_output: Include sanity check for topology 2022-10-15 10:13:16 -03:00
stat+csv_summary.sh
stat+json_output.sh perf tests stat+json_output: Include sanity check for topology 2022-10-15 10:13:16 -03:00
stat+shadow_stat.sh perf tests: Skip 'perf stat metrics (shadow stat) test' for hybrid 2021-04-29 10:31:00 -03:00
stat.sh perf test: Stat test for repeat with a weak group 2022-08-27 11:55:17 -03:00
stat_all_metricgroups.sh perf test: Enable system wide for metricgroups test 2022-01-11 18:46:23 -03:00
stat_all_metrics.sh perf tests stat_all_metrics: Change true workload to sleep workload for system wide check 2023-03-10 09:33:27 +01:00
stat_all_pmu.sh perf test: Fix "all PMU test" to skip parametrized events 2022-12-31 13:33:08 +01:00
stat_bpf_counters.sh perf test: Remove bash construct from stat_bpf_counters.sh test 2021-11-13 18:11:51 -03:00
stat_bpf_counters_cgrp.sh perf test stat_bpf_counters_cgrp: Enhance perf stat cgroup BPF counter test 2023-09-19 12:28:00 +02:00
test_arm_callgraph_fp.sh perf test: Record only user callchains on the "Check Arm64 callgraphs are complete in fp mode" test 2022-06-19 10:41:43 -03:00
test_arm_coresight.sh perf test: Fix test_arm_coresight.sh failures on Juno 2022-10-14 10:32:39 -03:00
test_arm_spe.sh perf test: Add ARM SPE system wide test 2022-08-01 14:46:30 -03:00
test_arm_spe_fork.sh perf test arm-spe: Check if perf-record hangs when recording workload with forks 2022-06-03 21:18:35 +02:00
test_brstack.sh perf test: Fix skipping branch stack sampling test 2022-11-08 17:59:14 -03:00
test_data_symbol.sh perf test: Introduce script for data symbol testing 2022-10-06 11:12:14 -03:00
test_intel_pt.sh perf test: Do not fail Intel-PT misc test w/o libpython 2022-10-25 17:40:48 -03:00
test_java_symbol.sh perf test: Introduce script for java symbol testing 2022-10-04 08:55:23 -03:00
test_uprobe_from_different_cu.sh perf test uprobe_from_different_cu: Skip if there is no gcc 2023-08-11 12:08:13 +02:00
trace+probe_vfs_getname.sh perf tests: Fix trace+probe_vfs_getname.sh /tmp cleanup 2021-10-26 11:17:38 -03:00