android_kernel_msm-6.1_noth.../tools/perf/tests/shell
Namhyung Kim be69e8c8f5 perf test shell stat_bpf_counters: Fix test on Intel
commit 68ca249c964f520af7f8763e22f12bd26b57b870 upstream.

As of now, bpf counters (bperf) don't support event groups.  But the
default perf stat includes topdown metrics if supported (on recent Intel
machines) which require groups.  That makes perf stat exiting.

  $ sudo perf stat --bpf-counter true
  bpf managed perf events do not yet support groups.

Actually the test explicitly uses cycles event only, but it missed to
pass the option when it checks the availability of the command.

Fixes: 2c0cb9f560 ("perf test: Add a shell test for 'perf stat --bpf-counters' new option")
Reviewed-by: Song Liu <song@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: Peter Zijlstra <peterz@infradead.org>
Cc: bpf@vger.kernel.org
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230825164152.165610-2-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-19 12:28:07 +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
lock_contention.sh perf test: Add kernel lock contention test 2022-10-04 08:55:23 -03:00
pipe_test.sh
probe_vfs_getname.sh
record+probe_libc_inet_pton.sh
record+script_probe_vfs_getname.sh
record+zstd_comp_decomp.sh
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
stat.sh perf test: Stat test for repeat with a weak group 2022-08-27 11:55:17 -03:00
stat_all_metricgroups.sh
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 shell stat_bpf_counters: Fix test on Intel 2023-09-19 12:28:07 +02: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