linux/tools/perf/arch
Greg Kroah-Hartman f869075830 perf tools: Fix up some comments and code to properly use the event_source bus
commit 0cced76a02 upstream.

In sysfs, the perf events are all located in
/sys/bus/event_source/devices/ but some places ended up hard-coding the
location to be at the root of /sys/devices/ which could be very risky as
you do not exactly know what type of device you are accessing in sysfs
at that location.

So fix this all up by properly pointing everything at the bus device
list instead of the root of the sysfs devices/ tree.

Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Link: https://lore.kernel.org/r/2025021955-implant-excavator-179d@gregkh
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-04-07 10:08:36 +02:00
..
alpha perf tools: Add empty Build files for architectures lacking them 2015-08-06 16:24:15 -03:00
arc/annotate perf annotate: Introduce basic support for ARC 2018-12-17 14:59:42 -03:00
arm perf: cs-etm: Only save valid trace IDs into files 2024-08-29 15:55:52 -03:00
arm64 perf auxtrace: Remove unused 'pmu' pointer from struct auxtrace_record 2024-08-28 18:15:16 -03:00
csky perf util: Make util its own library 2024-06-26 11:07:42 -07:00
loongarch perf annotate: Update parameters for reg extract functions to use raw instruction on powerpc 2024-07-31 16:12:59 -03:00
mips Merge remote-tracking branch 'perf-tools' into perf-tools-next 2024-07-02 11:51:32 -07:00
parisc perf tools: Add empty Build files for architectures lacking them 2015-08-06 16:24:15 -03:00
powerpc Merge remote-tracking branch 'torvalds/master' into perf-tools-next 2024-08-16 19:43:16 -03:00
riscv ARM: 2024-07-20 12:41:03 -07:00
riscv64/annotate perf annotate: Add riscv64 support 2021-09-27 09:33:44 -03:00
s390 Merge remote-tracking branch 'torvalds/master' into perf-tools-next 2024-08-16 19:43:16 -03:00
sh perf util: Make util its own library 2024-06-26 11:07:42 -07:00
sparc perf util: Make util its own library 2024-06-26 11:07:42 -07:00
x86 perf tools: Fix up some comments and code to properly use the event_source bus 2025-04-07 10:08:36 +02:00
xtensa perf util: Make util its own library 2024-06-26 11:07:42 -07:00
Build perf util: Make util its own library 2024-06-26 11:07:42 -07:00
common.c perf tools riscv: Add support for riscv lookup_binutils_path 2023-05-12 15:21:48 -03:00
common.h perf annotate: Own objdump_path and disassembler_style strings 2023-04-04 09:39:56 -03:00