summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorMatthew Brost <matthew.brost@intel.com>2026-02-17 12:05:52 -0800
committerMatthew Brost <matthew.brost@intel.com>2026-02-17 18:12:10 -0800
commit9ff885ef8b428febbf41f13a511755d74704949e (patch)
treec6d36a58ce1ddc4979d66f1619edad5c762e4ea9 /tools/perf/scripts/python/bin/stackcollapse-record
parent48eb073c7d95883eca2789447f94e1e8cafbabe5 (diff)
drm/xe: Convert GT stats to per-cpu counters
Current GT statistics use atomic64_t counters. Atomic operations incur a global coherency penalty. Transition to dynamic per-cpu counters using alloc_percpu(). This allows stats to be incremented via this_cpu_add(), which compiles to a single non-locking instruction. This approach keeps the hot-path updates local to the CPU, avoiding expensive cross-core cache invalidation traffic. Use for_each_possible_cpu() during aggregation and clear operations to ensure data consistency across CPU hotplug events. Signed-off-by: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Stuart Summers <stuart.summers@intel.com> Link: https://patch.msgid.link/20260217200552.596718-1-matthew.brost@intel.com
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions