Lines Matching refs:child
3229 struct perf_event *child; in perf_event_modify_attr() local
3256 list_for_each_entry(child, &event->child_list, child_list) { in perf_event_modify_attr()
3257 perf_event_modify_copy_attr(&child->attr, attr); in perf_event_modify_attr()
3258 err = func(child, attr); in perf_event_modify_attr()
5149 struct perf_event *child, *tmp; in perf_event_release_kernel() local
5185 list_for_each_entry(child, &event->child_list, child_list) { in perf_event_release_kernel()
5191 ctx = READ_ONCE(child->ctx); in perf_event_release_kernel()
5218 if (tmp == child) { in perf_event_release_kernel()
5219 perf_remove_from_context(child, DETACH_GROUP); in perf_event_release_kernel()
5220 list_move(&child->child_list, &free_list); in perf_event_release_kernel()
5235 list_for_each_entry_safe(child, tmp, &free_list, child_list) { in perf_event_release_kernel()
5236 void *var = &child->ctx->refcount; in perf_event_release_kernel()
5238 list_del(&child->child_list); in perf_event_release_kernel()
5239 free_event(child); in perf_event_release_kernel()
5266 struct perf_event *child; in __perf_event_read_value() local
5282 list_for_each_entry(child, &event->child_list, child_list) { in __perf_event_read_value()
5283 (void)perf_event_read(child, false); in __perf_event_read_value()
5284 total += perf_event_count(child); in __perf_event_read_value()
5285 *enabled += child->total_time_enabled; in __perf_event_read_value()
5286 *running += child->total_time_running; in __perf_event_read_value()
5388 struct perf_event *leader = event->group_leader, *child; in perf_read_group() local
5407 list_for_each_entry(child, &leader->child_list, child_list) { in perf_read_group()
5408 ret = __perf_read_group_add(child, read_format, values); in perf_read_group()
5567 struct perf_event *child; in perf_event_for_each_child() local
5573 list_for_each_entry(child, &event->child_list, child_list) in perf_event_for_each_child()
5574 func(child); in perf_event_for_each_child()
12956 static void perf_event_exit_task_context(struct task_struct *child, int ctxn) in perf_event_exit_task_context() argument
12961 WARN_ON_ONCE(child != current); in perf_event_exit_task_context()
12963 child_ctx = perf_pin_task_context(child, ctxn); in perf_event_exit_task_context()
12991 RCU_INIT_POINTER(child->perf_event_ctxp[ctxn], NULL); in perf_event_exit_task_context()
13007 perf_event_task(child, child_ctx, 0); in perf_event_exit_task_context()
13023 void perf_event_exit_task(struct task_struct *child) in perf_event_exit_task() argument
13028 mutex_lock(&child->perf_event_mutex); in perf_event_exit_task()
13029 list_for_each_entry_safe(event, tmp, &child->perf_event_list, in perf_event_exit_task()
13040 mutex_unlock(&child->perf_event_mutex); in perf_event_exit_task()
13043 perf_event_exit_task_context(child, ctxn); in perf_event_exit_task()
13051 perf_event_task(child, NULL, 0); in perf_event_exit_task()
13180 struct task_struct *child, in inherit_event() argument
13199 child, in inherit_event()
13295 struct task_struct *child, in inherit_group() argument
13303 child, NULL, child_ctx); in inherit_group()
13313 child, leader, child_ctx); in inherit_group()
13339 struct task_struct *child, int ctxn, in inherit_task_group() argument
13353 child_ctx = child->perf_event_ctxp[ctxn]; in inherit_task_group()
13361 child_ctx = alloc_perf_context(parent_ctx->pmu, child); in inherit_task_group()
13365 child->perf_event_ctxp[ctxn] = child_ctx; in inherit_task_group()
13369 child, child_ctx); in inherit_task_group()
13380 static int perf_event_init_context(struct task_struct *child, int ctxn, in perf_event_init_context() argument
13421 child, ctxn, clone_flags, in perf_event_init_context()
13438 child, ctxn, clone_flags, in perf_event_init_context()
13447 child_ctx = child->perf_event_ctxp[ctxn]; in perf_event_init_context()
13481 int perf_event_init_task(struct task_struct *child, u64 clone_flags) in perf_event_init_task() argument
13485 memset(child->perf_event_ctxp, 0, sizeof(child->perf_event_ctxp)); in perf_event_init_task()
13486 mutex_init(&child->perf_event_mutex); in perf_event_init_task()
13487 INIT_LIST_HEAD(&child->perf_event_list); in perf_event_init_task()
13490 ret = perf_event_init_context(child, ctxn, clone_flags); in perf_event_init_task()
13492 perf_event_free_task(child); in perf_event_init_task()