summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorKan Liang <kan.liang@linux.intel.com>2023-01-31 10:37:38 +0300
committerJoerg Roedel <jroedel@suse.de>2023-02-03 13:06:08 +0300
commit46284c6ceb5e4dfddcb00dafb7c2f3c1437fdca4 (patch)
tree16a01376418a6683fc5e7f53813c52e77ab184aa /tools/perf/scripts/python/export-to-postgresql.py
parent7232ab8b89e9ea32f07370643635a13641ce9c3c (diff)
downloadlinux-46284c6ceb5e4dfddcb00dafb7c2f3c1437fdca4.tar.xz
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions