original_kernel/tools/perf/tests
James Clark 20ebc4a649 perf test: Fix skipping branch stack sampling test
Commit f4a2aade68 ("perf tests powerpc: Fix branch stack sampling
test to include sanity check for branch filter") added a skip if certain
branch options aren't available.

But the change added both -b (--branch-any) and --branch-filter options
at the same time, which will always result in a failure on any platform
because the arguments can't be used together.

Fix this by removing -b (--branch-any) and leaving --branch-filter which
already specifies 'any'. Also add warning messages to the test and perf
tool.

Output on x86 before this fix:

   $ sudo ./perf test branch
   108: Check branch stack sampling         : Skip

After:

   $ sudo ./perf test branch
   108: Check branch stack sampling         : Ok

Fixes: f4a2aade68 ("perf tests powerpc: Fix branch stack sampling test to include sanity check for branch filter")
Signed-off-by: James Clark <james.clark@arm.com>
Tested-by: Athira Jajeev <atrajeev@linux.vnet.ibm.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Anshuman.Khandual@arm.com
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kajol Jain <kjain@linux.ibm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20221028121913.745307-1-james.clark@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2022-11-08 17:59:14 -03:00
..
attr perf test: Fix attr tests for PERF_FORMAT_LOST 2022-10-15 10:13:16 -03:00
shell perf test: Fix skipping branch stack sampling test 2022-11-08 17:59:14 -03:00
.gitignore
Build
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
builtin-test-list.c
builtin-test-list.h
builtin-test.c
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
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
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
pmu.c
python-use.c
sample-parsing.c
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
wp.c