linux-stable/tools/perf/arch/arm64
Haixin Yu 9754353d0a perf pmu arm64: Fix reading the PMU cpu slots in sysfs
Commit f8ad6018ce ("perf pmu: Remove duplication around
EVENT_SOURCE_DEVICE_PATH") uses sysfs__read_ull() to read a full sysfs
path, which will never succeeds as it already comes with the sysfs mount
point in it, which sysfs__read_ull() will add again.

Fix it by reading the file using filename__read_ull(), that will not add
the sysfs mount point.

Fixes: f8ad6018ce ("perf pmu: Remove duplication around EVENT_SOURCE_DEVICE_PATH")
Signed-off-by: Haixin Yu <yuhaixin.yhx@linux.alibaba.com>
Tested-by: Jing Zhang <renyu.zj@linux.alibaba.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@arm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: John Garry <john.g.garry@oracle.com>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Will Deacon <will@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Link: https://lore.kernel.org/r/ZL4G7rWXkfv-Ectq@B-Q60VQ05P-2326.local
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2023-07-24 13:40:52 -03:00
..
annotate perf annotate: Add missing condition flags for arm64 2022-10-14 10:47:35 -03:00
entry/syscalls perf arm64: Use max_nr to define SYSCALLTBL_ARM64_MAX_ID 2023-06-05 11:43:04 -03:00
include perf arch: Support register names from all archs 2021-12-16 12:18:12 -03:00
tests perf thread: Add accessor functions for thread 2023-06-12 15:57:53 -03:00
util perf pmu arm64: Fix reading the PMU cpu slots in sysfs 2023-07-24 13:40:52 -03:00
Build perf tests arm64: Compile tests unconditionally 2019-06-17 15:57:16 -03:00
Makefile perf kvm: Add kvm-stat for arm64 2020-11-04 09:42:41 -03:00