aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorKan Liang <[email protected]>2021-04-12 07:30:46 -0700
committerPeter Zijlstra <[email protected]>2021-04-19 20:03:25 +0200
commitd4b294bf84db7a84e295ddf19cb8e7f71b7bd045 (patch)
tree15b788d9c4284746e953eaa452234dfe0b929d4c /tools/perf/scripts/python/exported-sql-viewer.py
parentfc4b8fca2d8fc8aecd58508e81d55afe4ed76344 (diff)
perf/x86: Hybrid PMU support for counters
The number of GP and fixed counters are different among hybrid PMUs. Each hybrid PMU should use its own counter related information. When handling a certain hybrid PMU, apply the number of counters from the corresponding hybrid PMU. When reserving the counters in the initialization of a new event, reserve all possible counters. The number of counter recored in the global x86_pmu is for the architecture counters which are available for all hybrid PMUs. KVM doesn't support the hybrid PMU yet. Return the number of the architecture counters for now. For the functions only available for the old platforms, e.g., intel_pmu_drain_pebs_nhm(), nothing is changed. Signed-off-by: Kan Liang <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Andi Kleen <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions