Lines Matching refs:parent
266 if (!event->parent) { in event_function_call()
740 for (css = &cgrp->css; css; css = css->parent) { in update_cgrp_time_from_cpuctx()
784 for (css = &cgrp->css; css; css = css->parent) { in perf_cgroup_set_timestamp()
913 for (heap_size = 1; css; css = css->parent) in perf_cgroup_ensure_storage()
1410 if (event->parent) in perf_event_pid_type()
1411 event = event->parent; in perf_event_pid_type()
1438 if (event->parent) in primary_event_id()
1439 id = event->parent->id; in primary_event_id()
1658 struct rb_node *parent; in perf_event_groups_insert() local
1664 parent = *node; in perf_event_groups_insert()
1667 parent = *node; in perf_event_groups_insert()
1671 node = &parent->rb_left; in perf_event_groups_insert()
1673 node = &parent->rb_right; in perf_event_groups_insert()
1676 rb_link_node(&event->group_node, parent, node); in perf_event_groups_insert()
3399 struct perf_event_context *parent, *next_parent; in perf_event_context_sched_out() local
3417 parent = rcu_dereference(ctx->parent_ctx); in perf_event_context_sched_out()
3421 if (!parent && !next_parent) in perf_event_context_sched_out()
3424 if (next_parent == ctx || next_ctx == parent || next_parent == parent) { in perf_event_context_sched_out()
3680 for (; css; css = css->parent) in visit_groups_merge()
4687 if (event->parent) in is_sb_event()
4710 if (event->parent) in unaccount_event_cpu()
4743 if (event->parent) in unaccount_event()
4905 if (!event->parent) { in _free_event()
5184 struct perf_event *sub, *parent; in __perf_read_group_add() local
5214 parent = leader->parent; in __perf_read_group_add()
5215 if (parent && in __perf_read_group_add()
5216 (parent->group_generation != leader->group_generation || in __perf_read_group_add()
5217 parent->nr_siblings != leader->nr_siblings)) { in __perf_read_group_add()
5880 WARN_ON_ONCE(event->parent); in ring_buffer_attach()
5939 if (event->parent) in ring_buffer_wakeup()
5940 event = event->parent; in ring_buffer_wakeup()
5955 if (event->parent) in ring_buffer_get()
5956 event = event->parent; in ring_buffer_get()
6375 if (event->parent) in perf_event_fasync()
6376 event = event->parent; in perf_event_fasync()
7533 struct perf_event *parent = event->parent; in __perf_event_output_stop() local
7543 if (!parent) in __perf_event_output_stop()
7544 parent = event; in __perf_event_output_stop()
7556 if (rcu_dereference(parent->rb) == rb) in __perf_event_output_stop()
8891 if (event->parent) in perf_log_itrace_start()
8892 event = event->parent; in perf_log_itrace_start()
9392 WARN_ON(event->parent); in sw_perf_event_destroy()
9423 if (!event->parent) { in perf_swevent_init()
9458 if (event->parent) in perf_tp_filter_match()
9459 event = event->parent; in perf_tp_filter_match()
9990 if (event->parent) in perf_addr_filters_splice()
10305 if (WARN_ON_ONCE(event->parent)) in perf_event_set_addr_filter()
11092 if (event->parent && event->parent->pmu) { in perf_init_event()
11093 pmu = event->parent->pmu; in perf_init_event()
11165 if (event->parent) in account_event_cpu()
11197 if (event->parent) in account_event()
11321 event->parent = parent_event; in perf_event_alloc()
11434 if (event->parent) { in perf_event_alloc()
11439 event->parent->addr_filter_ranges, in perf_event_alloc()
11448 if (!event->parent) { in perf_event_alloc()
11466 if (!event->parent) { in perf_event_alloc()
12394 struct perf_event *parent_event = child_event->parent; in sync_child_event()
12417 struct perf_event *parent_event = child_event->parent; in perf_event_exit_event()
12570 struct perf_event *parent = event->parent; in perf_free_event() local
12572 if (WARN_ON_ONCE(!parent)) in perf_free_event()
12575 mutex_lock(&parent->child_mutex); in perf_free_event()
12577 mutex_unlock(&parent->child_mutex); in perf_free_event()
12579 put_event(parent); in perf_free_event()
12691 struct task_struct *parent, in inherit_event() argument
12707 if (parent_event->parent) in inherit_event()
12708 parent_event = parent_event->parent; in inherit_event()
12805 struct task_struct *parent, in inherit_group() argument
12814 leader = inherit_event(parent_event, parent, parent_ctx, in inherit_group()
12824 child_ctr = inherit_event(sub, parent, parent_ctx, in inherit_group()
12849 inherit_task_group(struct perf_event *event, struct task_struct *parent, in inherit_task_group() argument
12877 ret = inherit_group(event, parent, parent_ctx, in inherit_task_group()
12894 struct task_struct *parent = current; in perf_event_init_context() local
12899 if (likely(!parent->perf_event_ctxp[ctxn])) in perf_event_init_context()
12906 parent_ctx = perf_pin_task_context(parent, ctxn); in perf_event_init_context()
12928 ret = inherit_task_group(event, parent, parent_ctx, in perf_event_init_context()
12944 ret = inherit_task_group(event, parent, parent_ctx, in perf_event_init_context()