diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-19 16:40:56 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-04-07 11:08:36 +0300 |
commit | f86907583000c605bb2b1400ca77f2865aecc3c4 (patch) | |
tree | 442fef93f996dbae5a34fe249491867050f274de /net/lapb/lapb_iface.c | |
parent | b094e8e3988e02e8cef7a756c8d2cea9c12509ab (diff) | |
download | linux-f86907583000c605bb2b1400ca77f2865aecc3c4.tar.xz |
perf tools: Fix up some comments and code to properly use the event_source bus
commit 0cced76a0276610e86e8b187c09f0e9ef85b9299 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>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions