Files
linux/tools/perf/util
James Clark 9fae5884bb perf cpumap: Fix die and cluster IDs
Now that filename__read_int() returns -errno instead of -1 these
statements need to be updated otherwise error values will be used as
die IDs.

This appears as a -2 die ID when the platform doesn't export one:

  $ perf stat --per-core -a -- true

  S36-D-2-C0            1               9.45 msec cpu-clock

And the session topology test fails:

  $ perf test -vvv topology

  CPU 0, core 0, socket 36
  CPU 1, core 1, socket 36
  CPU 2, core 2, socket 36
  CPU 3, core 3, socket 36
  FAILED tests/topology.c:137 Cpu map - Die ID doesn't match
  ---- end(-1) ----
  38: Session topology                                                : FAILED!

Fixes: 05be17eed7 ("tool api fs: Correctly encode errno for read/write open failures")
Reported-by: Thomas Richter <tmricht@linux.ibm.com>
Signed-off-by: James Clark <james.clark@linaro.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20241218115552.912517-1-james.clark@linaro.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
2025-01-28 10:03:26 -08:00
..
2024-12-18 16:24:32 -03:00
2024-12-18 16:24:32 -03:00
2022-06-28 12:05:25 -03:00
2023-03-14 08:29:46 -03:00
2024-07-03 14:59:15 -07:00
2025-01-28 10:03:26 -08:00
2021-04-29 10:30:58 -03:00
2024-03-21 10:41:28 -03:00
2021-08-11 09:35:44 -03:00
2024-08-19 14:52:13 -03:00
2024-08-19 14:52:13 -03:00
2024-08-19 14:52:13 -03:00
2024-08-19 14:52:13 -03:00
2024-08-12 18:07:10 -03:00
2024-11-07 10:51:56 -08:00
2024-11-07 10:51:56 -08:00
2024-12-20 17:35:54 -03:00
2023-01-23 10:00:47 -03:00
2024-08-12 18:05:14 -03:00
2024-08-19 14:51:46 -03:00
2024-02-12 12:35:41 -08:00
2024-08-01 18:55:55 -03:00
2024-12-18 16:24:32 -03:00
2023-04-06 21:40:28 -03:00
2023-09-12 17:47:00 -03:00
2024-11-09 08:28:03 -08:00
2025-01-14 14:57:19 -03:00
2023-11-09 13:47:50 -03:00
2024-09-26 13:26:11 -07:00
2024-12-12 15:53:36 -03:00
2023-04-10 19:20:53 -03:00
2024-09-27 15:38:52 -03:00