Files
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 <[email protected]>
Signed-off-by: James Clark <[email protected]>
Acked-by: Ian Rogers <[email protected]>
Tested-by: Leo Yan <[email protected]>
Cc: [email protected]
Cc: Kajol Jain <[email protected]>
Cc: Anushree Mathur <[email protected]>
Cc: Tiezhu Yang <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
2023-10-26 10:58:10 -07:00
..
2023-05-27 09:42:38 -03:00
2023-05-27 09:36:44 -03:00
2023-05-27 09:41:39 -03:00
…
…
…
…
2023-03-13 17:42:27 -03:00
…