• Home
  • Raw
  • Download

Lines Matching refs:child_ctx

12947 	struct perf_event_context *child_ctx, *clone_ctx = NULL;  in perf_event_exit_task_context()  local
12952 child_ctx = perf_pin_task_context(child, ctxn); in perf_event_exit_task_context()
12953 if (!child_ctx) in perf_event_exit_task_context()
12966 mutex_lock(&child_ctx->mutex); in perf_event_exit_task_context()
12973 raw_spin_lock_irq(&child_ctx->lock); in perf_event_exit_task_context()
12974 task_ctx_sched_out(__get_cpu_context(child_ctx), child_ctx, EVENT_ALL); in perf_event_exit_task_context()
12981 put_ctx(child_ctx); /* cannot be last */ in perf_event_exit_task_context()
12982 WRITE_ONCE(child_ctx->task, TASK_TOMBSTONE); in perf_event_exit_task_context()
12985 clone_ctx = unclone_ctx(child_ctx); in perf_event_exit_task_context()
12986 raw_spin_unlock_irq(&child_ctx->lock); in perf_event_exit_task_context()
12996 perf_event_task(child, child_ctx, 0); in perf_event_exit_task_context()
12998 list_for_each_entry_safe(child_event, next, &child_ctx->event_list, event_entry) in perf_event_exit_task_context()
12999 perf_event_exit_event(child_event, child_ctx); in perf_event_exit_task_context()
13001 mutex_unlock(&child_ctx->mutex); in perf_event_exit_task_context()
13003 put_ctx(child_ctx); in perf_event_exit_task_context()
13171 struct perf_event_context *child_ctx) in inherit_event() argument
13196 !child_ctx->task_ctx_data) { in inherit_event()
13199 child_ctx->task_ctx_data = alloc_task_ctx_data(pmu); in inherit_event()
13200 if (!child_ctx->task_ctx_data) { in inherit_event()
13221 get_ctx(child_ctx); in inherit_event()
13243 child_event->ctx = child_ctx; in inherit_event()
13257 raw_spin_lock_irqsave(&child_ctx->lock, flags); in inherit_event()
13258 add_event_to_ctx(child_event, child_ctx); in inherit_event()
13260 raw_spin_unlock_irqrestore(&child_ctx->lock, flags); in inherit_event()
13285 struct perf_event_context *child_ctx) in inherit_group() argument
13292 child, NULL, child_ctx); in inherit_group()
13302 child, leader, child_ctx); in inherit_group()
13332 struct perf_event_context *child_ctx; in inherit_task_group() local
13342 child_ctx = child->perf_event_ctxp[ctxn]; in inherit_task_group()
13343 if (!child_ctx) { in inherit_task_group()
13350 child_ctx = alloc_perf_context(parent_ctx->pmu, child); in inherit_task_group()
13351 if (!child_ctx) in inherit_task_group()
13354 child->perf_event_ctxp[ctxn] = child_ctx; in inherit_task_group()
13358 child, child_ctx); in inherit_task_group()
13372 struct perf_event_context *child_ctx, *parent_ctx; in perf_event_init_context() local
13436 child_ctx = child->perf_event_ctxp[ctxn]; in perf_event_init_context()
13438 if (child_ctx && inherited_all) { in perf_event_init_context()
13448 child_ctx->parent_ctx = cloned_ctx; in perf_event_init_context()
13449 child_ctx->parent_gen = parent_ctx->parent_gen; in perf_event_init_context()
13451 child_ctx->parent_ctx = parent_ctx; in perf_event_init_context()
13452 child_ctx->parent_gen = parent_ctx->generation; in perf_event_init_context()
13454 get_ctx(child_ctx->parent_ctx); in perf_event_init_context()