Lines Matching refs:group_leader
397 struct perf_event *group_leader) in perf_cgroup_connect() argument
425 if (group_leader && group_leader->cgrp != cgrp) { in perf_cgroup_connect()
514 struct perf_event *group_leader) in perf_cgroup_connect() argument
749 event->group_leader->state < PERF_EVENT_STATE_INACTIVE) in update_event_times()
815 if (event->group_leader == event) { in list_add_event()
856 nr += event->group_leader->nr_siblings; in perf_event__read_size()
913 struct perf_event *group_leader = event->group_leader, *pos; in perf_group_attach() local
923 if (group_leader == event) in perf_group_attach()
926 if (group_leader->group_flags & PERF_GROUP_SOFTWARE && in perf_group_attach()
928 group_leader->group_flags &= ~PERF_GROUP_SOFTWARE; in perf_group_attach()
930 list_add_tail(&event->group_entry, &group_leader->sibling_list); in perf_group_attach()
931 group_leader->nr_siblings++; in perf_group_attach()
933 perf_event__header_size(group_leader); in perf_group_attach()
935 list_for_each_entry(pos, &group_leader->sibling_list, group_entry) in perf_group_attach()
973 if (event->group_leader == event) in list_del_event()
1005 if (event->group_leader != event) { in perf_group_detach()
1007 event->group_leader->nr_siblings--; in perf_group_detach()
1022 sibling->group_leader = sibling; in perf_group_detach()
1029 perf_event__header_size(event->group_leader); in perf_group_detach()
1031 list_for_each_entry(tmp, &event->group_leader->sibling_list, group_entry) in perf_group_detach()
1202 if (event == event->group_leader) in __perf_event_disable()
1477 struct perf_event *leader = event->group_leader; in __perf_install_in_context()
1623 struct perf_event *leader = event->group_leader; in __perf_event_enable()
3052 struct perf_event *leader = event->group_leader, *sub; in perf_event_read_group()
3208 event = event->group_leader; in perf_event_for_each()
4218 struct perf_event *leader = event->group_leader, *sub; in perf_output_read_group()
6159 struct perf_event *group_leader, in perf_event_alloc() argument
6181 if (!group_leader) in perf_event_alloc()
6182 group_leader = event; in perf_event_alloc()
6197 event->group_leader = group_leader; in perf_event_alloc()
6424 struct perf_event *group_leader = NULL, *output_event = NULL; in SYSCALL_DEFINE5() local
6469 group_leader = perf_fget_light(group_fd, &fput_needed); in SYSCALL_DEFINE5()
6470 if (IS_ERR(group_leader)) { in SYSCALL_DEFINE5()
6471 err = PTR_ERR(group_leader); in SYSCALL_DEFINE5()
6474 group_file = group_leader->filp; in SYSCALL_DEFINE5()
6476 output_event = group_leader; in SYSCALL_DEFINE5()
6478 group_leader = NULL; in SYSCALL_DEFINE5()
6489 event = perf_event_alloc(&attr, cpu, task, group_leader, NULL, NULL); in SYSCALL_DEFINE5()
6496 err = perf_cgroup_connect(pid, event, &attr, group_leader); in SYSCALL_DEFINE5()
6514 if (group_leader && in SYSCALL_DEFINE5()
6515 (is_software_event(event) != is_software_event(group_leader))) { in SYSCALL_DEFINE5()
6525 pmu = group_leader->pmu; in SYSCALL_DEFINE5()
6526 } else if (is_software_event(group_leader) && in SYSCALL_DEFINE5()
6527 (group_leader->group_flags & PERF_GROUP_SOFTWARE)) { in SYSCALL_DEFINE5()
6554 if (group_leader) { in SYSCALL_DEFINE5()
6561 if (group_leader->group_leader != group_leader) in SYSCALL_DEFINE5()
6568 if (group_leader->ctx->type != ctx->type) in SYSCALL_DEFINE5()
6571 if (group_leader->ctx != ctx) in SYSCALL_DEFINE5()
6595 struct perf_event_context *gctx = group_leader->ctx; in SYSCALL_DEFINE5()
6598 perf_remove_from_context(group_leader); in SYSCALL_DEFINE5()
6599 list_for_each_entry(sibling, &group_leader->sibling_list, in SYSCALL_DEFINE5()
6613 perf_install_in_context(ctx, group_leader, cpu); in SYSCALL_DEFINE5()
6615 list_for_each_entry(sibling, &group_leader->sibling_list, in SYSCALL_DEFINE5()
6949 struct perf_event *group_leader, in inherit_event() argument
6967 group_leader, parent_event, in inherit_event()