Home
last modified time | relevance | path

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

/linux-6.6.21/kernel/events/
Dcore.c158 static void perf_ctx_lock(struct perf_cpu_context *cpuctx, in perf_ctx_lock() argument
161 raw_spin_lock(&cpuctx->ctx.lock); in perf_ctx_lock()
166 static void perf_ctx_unlock(struct perf_cpu_context *cpuctx, in perf_ctx_unlock() argument
171 raw_spin_unlock(&cpuctx->ctx.lock); in perf_ctx_unlock()
222 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in event_function() local
223 struct perf_event_context *task_ctx = cpuctx->task_ctx; in event_function()
228 perf_ctx_lock(cpuctx, task_ctx); in event_function()
253 WARN_ON_ONCE(&cpuctx->ctx != ctx); in event_function()
256 efs->func(event, cpuctx, ctx, efs->data); in event_function()
258 perf_ctx_unlock(cpuctx, task_ctx); in event_function()
[all …]