mirror of
https://github.com/torvalds/linux.git
synced 2026-05-13 08:39:31 +02:00
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> |
||
|---|---|---|
| .. | ||
| coresight | ||
| lib | ||
| buildid.sh | ||
| daemon.sh | ||
| lock_contention.sh | ||
| pipe_test.sh | ||
| probe_vfs_getname.sh | ||
| record_bpf_filter.sh | ||
| record_offcpu.sh | ||
| record_sideband.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_pfm.sh | ||
| stat_all_pmu.sh | ||
| stat_bpf_counters_cgrp.sh | ||
| stat_bpf_counters.sh | ||
| stat_metrics_values.sh | ||
| stat.sh | ||
| stat+csv_output.sh | ||
| stat+csv_summary.sh | ||
| stat+json_output.sh | ||
| stat+shadow_stat.sh | ||
| stat+std_output.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_perf_data_converter_json.sh | ||
| test_task_analyzer.sh | ||
| test_uprobe_from_different_cu.sh | ||
| trace+probe_vfs_getname.sh | ||