Lines Matching refs:child_ctx

8411 			 struct perf_event_context *child_ctx,  in __perf_event_exit_task()  argument
8445 struct perf_event_context *child_ctx, *clone_ctx = NULL; in perf_event_exit_task_context() local
8460 child_ctx = rcu_dereference_raw(child->perf_event_ctxp[ctxn]); in perf_event_exit_task_context()
8467 raw_spin_lock(&child_ctx->lock); in perf_event_exit_task_context()
8468 task_ctx_sched_out(child_ctx); in perf_event_exit_task_context()
8476 clone_ctx = unclone_ctx(child_ctx); in perf_event_exit_task_context()
8477 update_context_time(child_ctx); in perf_event_exit_task_context()
8478 raw_spin_unlock_irqrestore(&child_ctx->lock, flags); in perf_event_exit_task_context()
8488 perf_event_task(child, child_ctx, 0); in perf_event_exit_task_context()
8500 mutex_lock(&child_ctx->mutex); in perf_event_exit_task_context()
8502 list_for_each_entry_safe(child_event, next, &child_ctx->event_list, event_entry) in perf_event_exit_task_context()
8503 __perf_event_exit_task(child_event, child_ctx, child); in perf_event_exit_task_context()
8505 mutex_unlock(&child_ctx->mutex); in perf_event_exit_task_context()
8507 put_ctx(child_ctx); in perf_event_exit_task_context()
8613 struct perf_event_context *child_ctx) in inherit_event() argument
8642 get_ctx(child_ctx); in inherit_event()
8664 child_event->ctx = child_ctx; in inherit_event()
8678 raw_spin_lock_irqsave(&child_ctx->lock, flags); in inherit_event()
8679 add_event_to_ctx(child_event, child_ctx); in inherit_event()
8680 raw_spin_unlock_irqrestore(&child_ctx->lock, flags); in inherit_event()
8697 struct perf_event_context *child_ctx) in inherit_group() argument
8704 child, NULL, child_ctx); in inherit_group()
8709 child, leader, child_ctx); in inherit_group()
8723 struct perf_event_context *child_ctx; in inherit_task_group() local
8730 child_ctx = child->perf_event_ctxp[ctxn]; in inherit_task_group()
8731 if (!child_ctx) { in inherit_task_group()
8739 child_ctx = alloc_perf_context(parent_ctx->pmu, child); in inherit_task_group()
8740 if (!child_ctx) in inherit_task_group()
8743 child->perf_event_ctxp[ctxn] = child_ctx; in inherit_task_group()
8747 child, child_ctx); in inherit_task_group()
8760 struct perf_event_context *child_ctx, *parent_ctx; in perf_event_init_context() local
8822 child_ctx = child->perf_event_ctxp[ctxn]; in perf_event_init_context()
8824 if (child_ctx && inherited_all) { in perf_event_init_context()
8834 child_ctx->parent_ctx = cloned_ctx; in perf_event_init_context()
8835 child_ctx->parent_gen = parent_ctx->parent_gen; in perf_event_init_context()
8837 child_ctx->parent_ctx = parent_ctx; in perf_event_init_context()
8838 child_ctx->parent_gen = parent_ctx->generation; in perf_event_init_context()
8840 get_ctx(child_ctx->parent_ctx); in perf_event_init_context()