Lines Matching refs:gctx
8311 struct perf_event_context *gctx; in __perf_event_ctx_lock_double() local
8315 gctx = READ_ONCE(group_leader->ctx); in __perf_event_ctx_lock_double()
8316 if (!atomic_inc_not_zero(&gctx->refcount)) { in __perf_event_ctx_lock_double()
8322 mutex_lock_double(&gctx->mutex, &ctx->mutex); in __perf_event_ctx_lock_double()
8324 if (group_leader->ctx != gctx) { in __perf_event_ctx_lock_double()
8326 mutex_unlock(&gctx->mutex); in __perf_event_ctx_lock_double()
8327 put_ctx(gctx); in __perf_event_ctx_lock_double()
8331 return gctx; in __perf_event_ctx_lock_double()
8349 struct perf_event_context *ctx, *uninitialized_var(gctx); in SYSCALL_DEFINE5()
8573 gctx = __perf_event_ctx_lock_double(group_leader, ctx); in SYSCALL_DEFINE5()
8585 if (gctx != ctx) { in SYSCALL_DEFINE5()
8589 perf_event_ctx_unlock(group_leader, gctx); in SYSCALL_DEFINE5()
8631 put_ctx(gctx); in SYSCALL_DEFINE5()
8671 put_ctx(gctx); in SYSCALL_DEFINE5()
8687 perf_event_ctx_unlock(group_leader, gctx); in SYSCALL_DEFINE5()
8715 perf_event_ctx_unlock(group_leader, gctx); in SYSCALL_DEFINE5()