diff options
author | Kan Liang <[email protected]> | 2023-01-31 15:37:38 +0800 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2023-02-03 11:06:08 +0100 |
commit | 46284c6ceb5e4dfddcb00dafb7c2f3c1437fdca4 (patch) | |
tree | 16a01376418a6683fc5e7f53813c52e77ab184aa /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 7232ab8b89e9ea32f07370643635a13641ce9c3c (diff) |
iommu/vt-d: Support cpumask for IOMMU perfmon
The perf subsystem assumes that all counters are by default per-CPU. So
the user space tool reads a counter from each CPU. However, the IOMMU
counters are system-wide and can be read from any CPU. Here we use a CPU
mask to restrict counting to one CPU to handle the issue. (with CPU
hotplug notifier to choose a different CPU if the chosen one is taken
off-line).
The CPU is exposed to /sys/bus/event_source/devices/dmar*/cpumask for
the user space perf tool.
Signed-off-by: Kan Liang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lu Baolu <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions