linux/tools/perf/tests/shell
Namhyung Kim be69e8c8f5 perf test shell stat_bpf_counters: Fix test on Intel
commit 68ca249c96 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
lib
buildid.sh
daemon.sh
lock_contention.sh
pipe_test.sh
probe_vfs_getname.sh
record_offcpu.sh
record.sh
record+probe_libc_inet_pton.sh
record+script_probe_vfs_getname.sh
record+zstd_comp_decomp.sh
stat_all_metricgroups.sh
stat_all_metrics.sh
stat_all_pmu.sh
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
stat_bpf_counters.sh perf test shell stat_bpf_counters: Fix test on Intel 2023-09-19 12:28:07 +02:00
stat.sh
stat+csv_output.sh
stat+csv_summary.sh
stat+json_output.sh
stat+shadow_stat.sh
test_arm_callgraph_fp.sh
test_arm_coresight.sh
test_arm_spe_fork.sh
test_arm_spe.sh
test_brstack.sh
test_data_symbol.sh
test_intel_pt.sh
test_java_symbol.sh
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