perf/x86/uncore: Retrieve the unit ID from the unit control RB tree
authorKan Liang <kan.liang@linux.intel.com>
Fri, 14 Jun 2024 13:46:26 +0000 (06:46 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 17 Jun 2024 15:57:56 +0000 (17:57 +0200)
commit585463fee64270d4b4d80b1e433d2105ef555bec
tree1c00ce90a74eb70707d2a42a4327284b86dfe4aa
parentc74443d92f68f07c03ae242ced554b749e6c6736
perf/x86/uncore: Retrieve the unit ID from the unit control RB tree

The box_ids only save the unit ID for the first die. If a unit, e.g., a
CXL unit, doesn't exist in the first die. The unit ID cannot be
retrieved.

The unit control RB tree also stores the unit ID information.
Retrieve the unit ID from the unit control RB tree

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Yunying Sun <yunying.sun@intel.com>
Link: https://lore.kernel.org/r/20240614134631.1092359-4-kan.liang@linux.intel.com
arch/x86/events/intel/uncore.c