diff options
| author | Kan Liang <kan.liang@linux.intel.com> | 2025-12-05 16:16:37 -0800 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2025-12-17 13:31:03 +0100 |
| commit | b825444b6179eb071e66ca3da5ac12d4dbd808d5 (patch) | |
| tree | ba5d76c3ace1ae680c09d9c3f92eb8c0a1dd5c75 /include/linux/execmem.h | |
| parent | 7ac422cf7b16ec524bcd8e017459e328a4103f63 (diff) | |
perf: Skip pmu_ctx based on event_type
To optimize the cgroup context switch, the perf_event_pmu_context
iteration skips the PMUs without cgroup events. A bool cgroup was
introduced to indicate the case. It can work, but this way is hard to
extend for other cases, e.g. skipping non-mediated PMUs. It doesn't
make sense to keep adding bool variables.
Pass the event_type instead of the specific bool variable. Check both
the event_type and related pmu_ctx variables to decide whether skipping
a PMU.
Event flags, e.g., EVENT_CGROUP, should be cleard in the ctx->is_active.
Add EVENT_FLAGS to indicate such event flags.
No functional change.
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Mingwei Zhang <mizhang@google.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Yongwei Ma <yongwei.ma@intel.com>
Tested-by: Xudong Hao <xudong.hao@intel.com>
Link: https://patch.msgid.link/20251206001720.468579-2-seanjc@google.com
Diffstat (limited to 'include/linux/execmem.h')
0 files changed, 0 insertions, 0 deletions
