Lines Matching refs:child_ctx

12664 	struct perf_event_context *child_ctx, *clone_ctx = NULL;  in perf_event_exit_task_context()  local
12669 child_ctx = perf_pin_task_context(child, ctxn); in perf_event_exit_task_context()
12670 if (!child_ctx) in perf_event_exit_task_context()
12683 mutex_lock(&child_ctx->mutex); in perf_event_exit_task_context()
12690 raw_spin_lock_irq(&child_ctx->lock); in perf_event_exit_task_context()
12691 task_ctx_sched_out(__get_cpu_context(child_ctx), child_ctx, EVENT_ALL); in perf_event_exit_task_context()
12698 put_ctx(child_ctx); /* cannot be last */ in perf_event_exit_task_context()
12699 WRITE_ONCE(child_ctx->task, TASK_TOMBSTONE); in perf_event_exit_task_context()
12702 clone_ctx = unclone_ctx(child_ctx); in perf_event_exit_task_context()
12703 raw_spin_unlock_irq(&child_ctx->lock); in perf_event_exit_task_context()
12713 perf_event_task(child, child_ctx, 0); in perf_event_exit_task_context()
12715 list_for_each_entry_safe(child_event, next, &child_ctx->event_list, event_entry) in perf_event_exit_task_context()
12716 perf_event_exit_event(child_event, child_ctx); in perf_event_exit_task_context()
12718 mutex_unlock(&child_ctx->mutex); in perf_event_exit_task_context()
12720 put_ctx(child_ctx); in perf_event_exit_task_context()
12888 struct perf_event_context *child_ctx) in inherit_event() argument
12913 !child_ctx->task_ctx_data) { in inherit_event()
12916 child_ctx->task_ctx_data = alloc_task_ctx_data(pmu); in inherit_event()
12917 if (!child_ctx->task_ctx_data) { in inherit_event()
12938 get_ctx(child_ctx); in inherit_event()
12960 child_event->ctx = child_ctx; in inherit_event()
12974 raw_spin_lock_irqsave(&child_ctx->lock, flags); in inherit_event()
12975 add_event_to_ctx(child_event, child_ctx); in inherit_event()
12977 raw_spin_unlock_irqrestore(&child_ctx->lock, flags); in inherit_event()
13002 struct perf_event_context *child_ctx) in inherit_group() argument
13009 child, NULL, child_ctx); in inherit_group()
13019 child, leader, child_ctx); in inherit_group()
13048 struct perf_event_context *child_ctx; in inherit_task_group() local
13058 child_ctx = child->perf_event_ctxp[ctxn]; in inherit_task_group()
13059 if (!child_ctx) { in inherit_task_group()
13066 child_ctx = alloc_perf_context(parent_ctx->pmu, child); in inherit_task_group()
13067 if (!child_ctx) in inherit_task_group()
13070 child->perf_event_ctxp[ctxn] = child_ctx; in inherit_task_group()
13074 child, child_ctx); in inherit_task_group()
13088 struct perf_event_context *child_ctx, *parent_ctx; in perf_event_init_context() local
13152 child_ctx = child->perf_event_ctxp[ctxn]; in perf_event_init_context()
13154 if (child_ctx && inherited_all) { in perf_event_init_context()
13164 child_ctx->parent_ctx = cloned_ctx; in perf_event_init_context()
13165 child_ctx->parent_gen = parent_ctx->parent_gen; in perf_event_init_context()
13167 child_ctx->parent_ctx = parent_ctx; in perf_event_init_context()
13168 child_ctx->parent_gen = parent_ctx->generation; in perf_event_init_context()
13170 get_ctx(child_ctx->parent_ctx); in perf_event_init_context()