diff options
author | Sandipan Das <sandipan.das@amd.com> | 2022-05-19 13:03:30 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-06-13 11:15:13 +0300 |
commit | 39621c5808f5dda75d03dc4b2d4d2b13a5a1c34b (patch) | |
tree | 40057c822e04aa1d26dcd91544b0243b81d3b8d4 /lib/mpi/mpiutil.c | |
parent | e60b7cb089f216a26d478f5ad8f811a1de65f382 (diff) | |
download | linux-39621c5808f5dda75d03dc4b2d4d2b13a5a1c34b.tar.xz |
perf/x86/amd/uncore: Use dynamic events array
If AMD Performance Monitoring Version 2 (PerfMonV2) is
supported, the number of available counters for a given
uncore PMU may not be fixed across families and models
and has to be determined at runtime.
The per-cpu uncore PMU data currently uses a fixed-sized
array for event information. Make it dynamic based on the
number of available counters.
Signed-off-by: Sandipan Das <sandipan.das@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/21eea0cb6de9d14f78d52d1d62637ae02bc900f5.1652954372.git.sandipan.das@amd.com
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions