Lines Matching refs:child_ctx

13737 	struct perf_event_context *child_ctx, *clone_ctx = NULL;  in perf_event_exit_task_context()  local
13742 child_ctx = perf_pin_task_context(child); in perf_event_exit_task_context()
13743 if (!child_ctx) in perf_event_exit_task_context()
13756 mutex_lock(&child_ctx->mutex); in perf_event_exit_task_context()
13763 raw_spin_lock_irq(&child_ctx->lock); in perf_event_exit_task_context()
13764 task_ctx_sched_out(child_ctx, NULL, EVENT_ALL); in perf_event_exit_task_context()
13771 put_ctx(child_ctx); /* cannot be last */ in perf_event_exit_task_context()
13772 WRITE_ONCE(child_ctx->task, TASK_TOMBSTONE); in perf_event_exit_task_context()
13775 clone_ctx = unclone_ctx(child_ctx); in perf_event_exit_task_context()
13776 raw_spin_unlock_irq(&child_ctx->lock); in perf_event_exit_task_context()
13786 perf_event_task(child, child_ctx, 0); in perf_event_exit_task_context()
13788 list_for_each_entry_safe(child_event, next, &child_ctx->event_list, event_entry) in perf_event_exit_task_context()
13789 perf_event_exit_event(child_event, child_ctx); in perf_event_exit_task_context()
13791 mutex_unlock(&child_ctx->mutex); in perf_event_exit_task_context()
13793 put_ctx(child_ctx); in perf_event_exit_task_context()
13967 struct perf_event_context *child_ctx) in inherit_event() argument
13991 get_ctx(child_ctx); in inherit_event()
13992 child_event->ctx = child_ctx; in inherit_event()
13994 pmu_ctx = find_get_pmu_context(child_event->pmu, child_ctx, child_event); in inherit_event()
14048 raw_spin_lock_irqsave(&child_ctx->lock, flags); in inherit_event()
14049 add_event_to_ctx(child_event, child_ctx); in inherit_event()
14051 raw_spin_unlock_irqrestore(&child_ctx->lock, flags); in inherit_event()
14076 struct perf_event_context *child_ctx) in inherit_group() argument
14083 child, NULL, child_ctx); in inherit_group()
14093 child, leader, child_ctx); in inherit_group()
14123 struct perf_event_context *child_ctx; in inherit_task_group() local
14134 child_ctx = child->perf_event_ctxp; in inherit_task_group()
14135 if (!child_ctx) { in inherit_task_group()
14142 child_ctx = alloc_perf_context(child); in inherit_task_group()
14143 if (!child_ctx) in inherit_task_group()
14146 child->perf_event_ctxp = child_ctx; in inherit_task_group()
14149 ret = inherit_group(event, parent, parent_ctx, child, child_ctx); in inherit_task_group()
14161 struct perf_event_context *child_ctx, *parent_ctx; in perf_event_init_context() local
14223 child_ctx = child->perf_event_ctxp; in perf_event_init_context()
14225 if (child_ctx && inherited_all) { in perf_event_init_context()
14235 child_ctx->parent_ctx = cloned_ctx; in perf_event_init_context()
14236 child_ctx->parent_gen = parent_ctx->parent_gen; in perf_event_init_context()
14238 child_ctx->parent_ctx = parent_ctx; in perf_event_init_context()
14239 child_ctx->parent_gen = parent_ctx->generation; in perf_event_init_context()
14241 get_ctx(child_ctx->parent_ctx); in perf_event_init_context()