diff options
author | 2023-01-31 15:37:38 +0800 | |
---|---|---|
committer | 2023-02-03 11:06:08 +0100 | |
commit | 46284c6ceb5e4dfddcb00dafb7c2f3c1437fdca4 (patch) | |
tree | 16a01376418a6683fc5e7f53813c52e77ab184aa /tools/perf/scripts/python/stackcollapse.py | |
parent | iommu/vt-d: Add IOMMU perfmon support (diff) | |
download | wireguard-linux-46284c6ceb5e4dfddcb00dafb7c2f3c1437fdca4.tar.xz wireguard-linux-46284c6ceb5e4dfddcb00dafb7c2f3c1437fdca4.zip |
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 <kan.liang@linux.intel.com>
Link: https://lore.kernel.org/r/20230128200428.1459118-6-kan.liang@linux.intel.com
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions