Home
last modified time | relevance | path

Searched refs:cpuctx (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.1/kernel/events/
Dcore.c164 static void perf_ctx_lock(struct perf_cpu_context *cpuctx, in perf_ctx_lock() argument
167 raw_spin_lock(&cpuctx->ctx.lock); in perf_ctx_lock()
172 static void perf_ctx_unlock(struct perf_cpu_context *cpuctx, in perf_ctx_unlock() argument
177 raw_spin_unlock(&cpuctx->ctx.lock); in perf_ctx_unlock()
220 struct perf_cpu_context *cpuctx = __get_cpu_context(ctx); in event_function() local
221 struct perf_event_context *task_ctx = cpuctx->task_ctx; in event_function()
226 perf_ctx_lock(cpuctx, task_ctx); in event_function()
251 WARN_ON_ONCE(&cpuctx->ctx != ctx); in event_function()
254 efs->func(event, cpuctx, ctx, efs->data); in event_function()
256 perf_ctx_unlock(cpuctx, task_ctx); in event_function()
[all …]
/Linux-v6.1/arch/x86/events/
Dcore.c2063 struct perf_cpu_context *cpuctx; in x86_pmu_update_cpu_context() local
2068 cpuctx = per_cpu_ptr(pmu->pmu_cpu_context, cpu); in x86_pmu_update_cpu_context()
2069 cpuctx->ctx.pmu = pmu; in x86_pmu_update_cpu_context()