• Home
  • Raw
  • Download

Lines Matching refs:leader

611 	struct perf_event *leader = event->group_leader;  in __perf_effective_state()  local
613 if (leader->state <= PERF_EVENT_STATE_OFF) in __perf_effective_state()
614 return leader->state; in __perf_effective_state()
643 static void perf_event_update_sibling_time(struct perf_event *leader) in perf_event_update_sibling_time() argument
647 for_each_sibling_event(sibling, leader) in perf_event_update_sibling_time()
2746 struct perf_event *leader = event->group_leader; in __perf_event_enable() local
2770 if (leader != event && leader->state != PERF_EVENT_STATE_ACTIVE) { in __perf_event_enable()
4835 static int __perf_read_group_add(struct perf_event *leader, in __perf_read_group_add() argument
4838 struct perf_event_context *ctx = leader->ctx; in __perf_read_group_add()
4844 ret = perf_event_read(leader, true); in __perf_read_group_add()
4856 values[n++] += leader->total_time_enabled + in __perf_read_group_add()
4857 atomic64_read(&leader->child_total_time_enabled); in __perf_read_group_add()
4861 values[n++] += leader->total_time_running + in __perf_read_group_add()
4862 atomic64_read(&leader->child_total_time_running); in __perf_read_group_add()
4868 values[n++] += perf_event_count(leader); in __perf_read_group_add()
4870 values[n++] = primary_event_id(leader); in __perf_read_group_add()
4872 for_each_sibling_event(sub, leader) { in __perf_read_group_add()
4885 struct perf_event *leader = event->group_leader, *child; in perf_read_group() local
4886 struct perf_event_context *ctx = leader->ctx; in perf_read_group()
4896 values[0] = 1 + leader->nr_siblings; in perf_read_group()
4902 mutex_lock(&leader->child_mutex); in perf_read_group()
4904 ret = __perf_read_group_add(leader, read_format, values); in perf_read_group()
4908 list_for_each_entry(child, &leader->child_list, child_list) { in perf_read_group()
4914 mutex_unlock(&leader->child_mutex); in perf_read_group()
4922 mutex_unlock(&leader->child_mutex); in perf_read_group()
6290 struct perf_event *leader = event->group_leader, *sub; in perf_output_read_group() local
6295 values[n++] = 1 + leader->nr_siblings; in perf_output_read_group()
6303 if ((leader != event) && in perf_output_read_group()
6304 (leader->state == PERF_EVENT_STATE_ACTIVE)) in perf_output_read_group()
6305 leader->pmu->read(leader); in perf_output_read_group()
6307 values[n++] = perf_event_count(leader); in perf_output_read_group()
6309 values[n++] = primary_event_id(leader); in perf_output_read_group()
6313 for_each_sibling_event(sub, leader) { in perf_output_read_group()
11924 struct perf_event *leader; in inherit_group() local
11928 leader = inherit_event(parent_event, parent, parent_ctx, in inherit_group()
11930 if (IS_ERR(leader)) in inherit_group()
11931 return PTR_ERR(leader); in inherit_group()
11939 child, leader, child_ctx); in inherit_group()
11944 !perf_get_aux_event(child_ctr, leader)) in inherit_group()