diff options
author | 2025-04-24 06:47:17 -0700 | |
---|---|---|
committer | 2025-04-25 14:55:22 +0200 | |
commit | 3e830f657f69ab6a4822d72ec2f364c6d51beef8 (patch) | |
tree | 15bf9fe187863954d53cab01dbe7a3d467275747 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | perf/x86/intel: Check the X86 leader for ACR group (diff) | |
download | wireguard-linux-3e830f657f69ab6a4822d72ec2f364c6d51beef8.tar.xz wireguard-linux-3e830f657f69ab6a4822d72ec2f364c6d51beef8.zip |
perf/x86: Optimize the is_x86_event
The current is_x86_event has to go through the hybrid_pmus list to find
the matched pmu, then check if it's a X86 PMU and a X86 event. It's not
necessary.
The X86 PMU has a unique type ID on a non-hybrid machine, and a unique
capability type. They are good enough to do the check.
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20250424134718.311934-5-kan.liang@linux.intel.com
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions