Lines Matching refs:child_ctx

8789 			 struct perf_event_context *child_ctx,  in __perf_event_exit_task()  argument
8823 struct perf_event_context *child_ctx, *clone_ctx = NULL; in perf_event_exit_task_context() local
8836 child_ctx = rcu_dereference_raw(child->perf_event_ctxp[ctxn]); in perf_event_exit_task_context()
8843 raw_spin_lock(&child_ctx->lock); in perf_event_exit_task_context()
8844 task_ctx_sched_out(child_ctx); in perf_event_exit_task_context()
8852 clone_ctx = unclone_ctx(child_ctx); in perf_event_exit_task_context()
8853 update_context_time(child_ctx); in perf_event_exit_task_context()
8854 raw_spin_unlock_irqrestore(&child_ctx->lock, flags); in perf_event_exit_task_context()
8864 perf_event_task(child, child_ctx, 0); in perf_event_exit_task_context()
8876 mutex_lock(&child_ctx->mutex); in perf_event_exit_task_context()
8878 list_for_each_entry_safe(child_event, next, &child_ctx->event_list, event_entry) in perf_event_exit_task_context()
8879 __perf_event_exit_task(child_event, child_ctx, child); in perf_event_exit_task_context()
8881 mutex_unlock(&child_ctx->mutex); in perf_event_exit_task_context()
8883 put_ctx(child_ctx); in perf_event_exit_task_context()
9025 struct perf_event_context *child_ctx) in inherit_event() argument
9054 get_ctx(child_ctx); in inherit_event()
9076 child_event->ctx = child_ctx; in inherit_event()
9090 raw_spin_lock_irqsave(&child_ctx->lock, flags); in inherit_event()
9091 add_event_to_ctx(child_event, child_ctx); in inherit_event()
9092 raw_spin_unlock_irqrestore(&child_ctx->lock, flags); in inherit_event()
9109 struct perf_event_context *child_ctx) in inherit_group() argument
9116 child, NULL, child_ctx); in inherit_group()
9121 child, leader, child_ctx); in inherit_group()
9135 struct perf_event_context *child_ctx; in inherit_task_group() local
9142 child_ctx = child->perf_event_ctxp[ctxn]; in inherit_task_group()
9143 if (!child_ctx) { in inherit_task_group()
9151 child_ctx = alloc_perf_context(parent_ctx->pmu, child); in inherit_task_group()
9152 if (!child_ctx) in inherit_task_group()
9155 child->perf_event_ctxp[ctxn] = child_ctx; in inherit_task_group()
9159 child, child_ctx); in inherit_task_group()
9172 struct perf_event_context *child_ctx, *parent_ctx; in perf_event_init_context() local
9234 child_ctx = child->perf_event_ctxp[ctxn]; in perf_event_init_context()
9236 if (child_ctx && inherited_all) { in perf_event_init_context()
9246 child_ctx->parent_ctx = cloned_ctx; in perf_event_init_context()
9247 child_ctx->parent_gen = parent_ctx->parent_gen; in perf_event_init_context()
9249 child_ctx->parent_ctx = parent_ctx; in perf_event_init_context()
9250 child_ctx->parent_gen = parent_ctx->generation; in perf_event_init_context()
9252 get_ctx(child_ctx->parent_ctx); in perf_event_init_context()