acrn-kernel/tools/perf/tests
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
..
attr perf test: Fix attr tests for PERF_FORMAT_LOST 2022-10-15 10:13:16 -03:00
shell perf test shell stat_bpf_counters: Fix test on Intel 2023-09-19 12:28:07 +02:00
.gitignore
Build perf test: Refactor shell tests allowing subdirs 2022-08-13 15:13:20 -03:00
api-io.c
attr.c
attr.py
backward-ring-buffer.c
bitmap.c
bp_account.c
bp_signal.c
bp_signal_overflow.c
bpf-script-example.c
bpf-script-test-kbuild.c
bpf-script-test-prologue.c
bpf-script-test-relocation.c
bpf.c perf test bpf: Skip test if kernel-debuginfo is not present 2023-03-10 09:33:26 +01:00
builtin-test-list.c perf test: Refactor shell tests allowing subdirs 2022-08-13 15:13:20 -03:00
builtin-test-list.h perf test: Refactor shell tests allowing subdirs 2022-08-13 15:13:20 -03:00
builtin-test.c perf test: Refactor shell tests allowing subdirs 2022-08-13 15:13:20 -03:00
clang.c
code-reading.c
cpumap.c perf cpumap: Add range data encoding 2022-10-04 08:55:21 -03:00
demangle-java-test.c
demangle-ocaml-test.c
dlfilter-test.c
dso-data.c
dwarf-unwind.c
event-times.c
event_update.c perf events: Prefer union over variable length array 2022-10-04 08:55:21 -03:00
evsel-roundtrip-name.c
evsel-tp-sched.c
expand-cgroup.c perf pmu-events: Hide the pmu_events 2022-08-13 15:02:08 -03:00
expr.c perf expr: Allow a double if expression 2022-10-06 08:03:52 -03:00
fdarray.c
genelf.c
hists_common.c
hists_common.h
hists_cumulate.c
hists_filter.c
hists_link.c
hists_output.c
is_printable_array.c
keep-tracking.c
kmod-path.c
llvm.c
llvm.h
make
maps.c
mem.c
mem2node.c
mmap-basic.c perf tests: Avoid pthread.h inclusion 2022-10-04 08:55:19 -03:00
mmap-thread-lookup.c
openat-syscall-all-cpus.c perf tests: Avoid pthread.h inclusion 2022-10-04 08:55:19 -03:00
openat-syscall-tp-fields.c
openat-syscall.c
parse-events.c
parse-metric.c perf pmu-events: Hide the pmu_events 2022-08-13 15:02:08 -03:00
parse-no-sample-id-all.c
pe-file-parsing.c
pe-file.c
pe-file.exe
pe-file.exe.debug
perf-hooks.c
perf-record.c perf tests: Avoid pthread.h inclusion 2022-10-04 08:55:19 -03:00
perf-targz-src-pkg
perf-time-to-tsc.c
pfm.c
pmu-events.c perf pmu-events: Hide the pmu_events 2022-08-13 15:02:08 -03:00
pmu.c
python-use.c
sample-parsing.c perf tools: Support reading PERF_FORMAT_LOST 2022-08-19 15:56:56 -03:00
sdt.c
sigtrap.c perf test: Skip sigtrap test on old kernels 2022-10-04 08:55:22 -03:00
stat.c
sw-clock.c
switch-tracking.c perf tools: Add evlist__add_sched_switch() 2022-10-06 08:03:53 -03:00
task-exit.c
tests.h
thread-map.c
thread-maps-share.c
time-utils-test.c
topology.c perf stat: Rename to aggr_cpu_id.thread_idx 2022-10-06 08:03:53 -03:00
unit_number__scnprintf.c
vmlinux-kallsyms.c perf tests vmlinux-kallsyms: Update is_ignored_symbol function to match the kernel ignored list 2022-09-28 11:11:33 -03:00
wp.c perf test: Skip wp modify test on old kernels 2022-09-21 16:07:32 -03:00