linux/tools/perf/tests
James Clark 0b783d2e82 perf tests: test_arm_coresight: Simplify source iteration
There are two reasons to do this, firstly there is a shellcheck warning
in cs_etm_dev_name(), which can be completely deleted. And secondly the
current iteration method doesn't support systems with both ETE and ETM
because it picks one or the other. There isn't a known system with this
configuration, but it could happen in the future.

Iterating over all the sources for each CPU can be done by going through
/sys/bus/event_source/devices/cs_etm/cpu* and following the symlink back
to the Coresight device in /sys/bus/coresight/devices. This will work
whether the device is ETE, ETM or any future name, and is much simpler
and doesn't require any hard coded version numbers

Suggested-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: James Clark <james.clark@arm.com>
Acked-by: Ian Rogers <irogers@google.com>
Tested-by: Leo Yan <leo.yan@linaro.org>
Cc: tianruidong@linux.alibaba.com
Cc: Kajol Jain <kjain@linux.ibm.com>
Cc: Anushree Mathur <anushree.mathur@linux.vnet.ibm.com>
Cc: Tiezhu Yang <yangtiezhu@loongson.cn>
Cc: atrajeev@linux.vnet.ibm.com
Cc: coresight@lists.linaro.org
Link: https://lore.kernel.org/r/20231023131550.487760-1-james.clark@arm.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
2023-10-26 10:58:10 -07:00
..
attr perf test: Fix test-record-dummy-C0 failure for supported PERF_FORMAT_LOST feature kernel 2023-09-16 22:36:36 -07:00
config-fragments perf tools: Add a place to put kernel config fragments for test runs 2023-07-28 19:01:16 -03:00
shell perf tests: test_arm_coresight: Simplify source iteration 2023-10-26 10:58:10 -07:00
workloads
Build perf util: Add a function for replacing characters in a string 2023-09-12 17:32:00 -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
builtin-test-list.c
builtin-test-list.h
builtin-test.c perf util: Add a function for replacing characters in a string 2023-09-12 17:32:00 -03:00
code-reading.c tools/perf/tests: Fix object code reading to skip address that falls out of text section 2023-10-04 22:28:07 -07:00
cpumap.c
demangle-java-test.c
demangle-ocaml-test.c
dlfilter-test.c perf dlfilter: Add al_cleanup() 2023-08-15 16:41:49 -03:00
dso-data.c
dwarf-unwind.c
event-times.c
event_groups.c
event_update.c
evsel-roundtrip-name.c
evsel-tp-sched.c
expand-cgroup.c
expr.c perf pmu: Move pmu__find_core_pmu() to pmus.c 2023-09-15 16:46:40 -07:00
fdarray.c
genelf.c
hists_common.c
hists_common.h
hists_cumulate.c
hists_filter.c
hists_link.c libperf rc_check: Add RC_CHK_EQUAL 2023-10-25 13:37:22 -07:00
hists_output.c
is_printable_array.c
keep-tracking.c
kmod-path.c
make perf test: Ensure EXTRA_TESTS is covered in build test 2023-09-18 16:46:53 -07:00
maps.c
mem.c
mem2node.c
mmap-basic.c perf tests mmap-basic: Adapt for riscv 2023-08-16 08:52:47 -03:00
mmap-thread-lookup.c
openat-syscall-all-cpus.c
openat-syscall-tp-fields.c
openat-syscall.c
parse-events.c perf test: Fix parse-events tests to skip parametrized events 2023-09-27 21:11:53 -07:00
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-targz-src-pkg
perf-time-to-tsc.c
pfm.c
pmu-events.c perf test: Add pmu-event test for "Compat" and new event_field. 2023-09-27 21:02:41 -07:00
pmu.c perf parse-events: Introduce 'struct parse_events_terms' 2023-09-11 10:26:36 -03:00
python-use.c
sample-parsing.c
sdt.c
sigtrap.c
stat.c perf stat: Avoid uninitialized use of perf_stat_config 2023-07-24 18:23:18 -03:00
sw-clock.c
switch-tracking.c
symbols.c
task-exit.c perf test task_exit: No need for a cycles event to check if we get an PERF_RECORD_EXIT 2023-07-17 10:27:44 -03:00
tests.h perf util: Add a function for replacing characters in a string 2023-09-12 17:32:00 -03:00
thread-map.c
thread-maps-share.c libperf rc_check: Add RC_CHK_EQUAL 2023-10-25 13:37:22 -07:00
time-utils-test.c
topology.c
unit_number__scnprintf.c
util.c perf util: Add a function for replacing characters in a string 2023-09-12 17:32:00 -03:00
vmlinux-kallsyms.c
wp.c