Lines Matching refs:refcount
1185 refcount_inc(&ctx->refcount); in get_ctx()
1213 if (refcount_dec_and_test(&ctx->refcount)) { in put_ctx()
1296 if (!refcount_inc_not_zero(&ctx->refcount)) { in perf_event_ctx_lock_nested()
1429 !refcount_inc_not_zero(&ctx->refcount)) { in perf_lock_task_context()
2126 if (!atomic_long_inc_not_zero(&group_leader->refcount)) in perf_get_aux_event()
2326 WARN_ON_ONCE(!atomic_long_inc_not_zero(&event->refcount)); in event_sched_out()
4643 refcount_set(&ctx->refcount, 1); in __perf_event_init_context()
5072 if (WARN(atomic_long_cmpxchg(&event->refcount, 1, 0) != 1, in free_event()
5074 atomic_long_read(&event->refcount), event)) { in free_event()
5135 if (!atomic_long_dec_and_test(&event->refcount)) in put_event()
5236 void *var = &child->ctx->refcount; in perf_event_release_kernel()
6095 if (!refcount_inc_not_zero(&rb->refcount)) in ring_buffer_get()
6105 if (!refcount_dec_and_test(&rb->refcount)) in ring_buffer_put()
6196 if (!atomic_long_inc_not_zero(&event->refcount)) { in perf_mmap_close()
11760 atomic_long_set(&event->refcount, 1); in perf_event_alloc()
12209 if (!refcount_inc_not_zero(&gctx->refcount)) { in __perf_event_ctx_lock_double()
13125 wait_var_event(&ctx->refcount, refcount_read(&ctx->refcount) == 1); in perf_event_free_task()
13225 !atomic_long_inc_not_zero(&parent_event->refcount)) { in inherit_event()