/tools/testing/selftests/powerpc/pmu/ebb/ |
D | event_attributes_test.c | 17 struct event event, leader; in event_attributes() local 69 event_init(&leader, 0x1001e); in event_attributes() 70 event_leader_ebb_init(&leader); in event_attributes() 71 FAIL_IF(event_open(&leader)); in event_attributes() 77 FAIL_IF(event_open_with_group(&event, leader.fd)); in event_attributes() 78 event_close(&leader); in event_attributes() 82 event_init(&leader, 0x1001e); in event_attributes() 83 event_leader_ebb_init(&leader); in event_attributes() 84 FAIL_IF(event_open(&leader)); in event_attributes() 89 FAIL_IF(event_open_with_group(&event, leader.fd) == 0); in event_attributes() [all …]
|
/tools/perf/util/ |
D | record.c | 26 struct evsel *leader = evsel->leader; in evsel__read_sampler() local 28 if (evsel__is_aux_event(leader) || arch_topdown_sample_read(leader)) { in evsel__read_sampler() 30 if (evsel->leader == leader && evsel != evsel->leader) in evsel__read_sampler() 35 return leader; in evsel__read_sampler() 53 struct evsel *leader = evsel->leader; in evsel__config_leader_sampling() local 57 if (!leader->sample_read) in evsel__config_leader_sampling() 89 leader->core.attr.sample_type; in evsel__config_leader_sampling()
|
D | topdown.h | 8 bool arch_topdown_sample_read(struct evsel *leader);
|
D | cgroup.c | 208 struct evsel *pos, *evsel, *leader; in evlist__expand_cgroup() local 256 leader = NULL; in evlist__expand_cgroup() 266 leader = evsel; in evlist__expand_cgroup() 267 evsel->leader = leader; in evlist__expand_cgroup()
|
D | evsel.h | 114 struct evsel *leader; member 334 return evsel->leader == evsel; in evsel__is_group_leader() 372 return evsel->idx - evsel->leader->idx; in evsel__group_idx() 378 (_evsel) && (_evsel)->leader == (_leader); \ 384 (_evsel) && (_evsel)->leader == (_leader); \
|
D | evlist.c | 217 struct evsel *evsel, *leader; in __perf_evlist__set_leader() local 219 leader = list_entry(list->next, struct evsel, core.node); in __perf_evlist__set_leader() 222 leader->core.nr_members = evsel->idx - leader->idx + 1; in __perf_evlist__set_leader() 225 evsel->leader = leader; in __perf_evlist__set_leader() 1574 if (evsel->leader == move_evsel->leader) in perf_evlist__to_front() 1703 struct evsel *leader = evlist__first(evlist); in perf_evlist__force_leader() local 1706 leader->forced_leader = true; in perf_evlist__force_leader() 1714 struct evsel *c2, *leader; in perf_evlist__reset_weak_group() local 1717 leader = evsel->leader; in perf_evlist__reset_weak_group() 1719 leader->name, leader->core.nr_members); in perf_evlist__reset_weak_group() [all …]
|
D | topdown.c | 55 __weak bool arch_topdown_sample_read(struct evsel *leader __maybe_unused) in arch_topdown_sample_read()
|
D | auxtrace.c | 66 struct evsel *leader, in perf_evlist__regroup() argument 72 if (!evsel__is_group_leader(leader)) in perf_evlist__regroup() 78 if (!(evsel->leader == leader || in perf_evlist__regroup() 79 (evsel->leader == evsel && in perf_evlist__regroup() 82 } else if (evsel == leader) { in perf_evlist__regroup() 92 if (evsel->leader != leader) { in perf_evlist__regroup() 93 evsel->leader = leader; in perf_evlist__regroup() 94 if (leader->core.nr_members < 1) in perf_evlist__regroup() 95 leader->core.nr_members = 1; in perf_evlist__regroup() 96 leader->core.nr_members += 1; in perf_evlist__regroup() [all …]
|
D | evsel.c | 242 evsel->leader = evsel; in evsel__init() 409 evsel->leader = orig->leader; in evsel__clone() 1059 struct evsel *leader = evsel->leader; in evsel__config() local 1084 if (leader->core.nr_members > 1) { in evsel__config() 1462 perf_evsel__process_group_data(struct evsel *leader, in perf_evsel__process_group_data() argument 1465 u64 read_format = leader->core.attr.read_format; in perf_evsel__process_group_data() 1471 if (nr != (u64) leader->core.nr_members) in perf_evsel__process_group_data() 1482 perf_evsel__set_count(leader, cpu, thread, in perf_evsel__process_group_data() 1488 counter = perf_evlist__id2evsel(leader->evlist, v[i].id); in perf_evsel__process_group_data() 1499 static int evsel__read_group(struct evsel *leader, int cpu, int thread) in evsel__read_group() argument [all …]
|
D | thread.c | 29 struct thread *leader = __machine__findnew_thread(machine, pid, pid); in thread__init_maps() local 30 if (leader) { in thread__init_maps() 31 thread->maps = maps__get(leader->maps); in thread__init_maps() 32 thread__put(leader); in thread__init_maps()
|
D | hist.c | 2492 void hists__match(struct hists *leader, struct hists *other) in hists__match() argument 2500 return hists__match_hierarchy(&leader->entries_collapsed, in hists__match() 2504 if (hists__has(leader, need_collapse)) in hists__match() 2505 root = &leader->entries_collapsed; in hists__match() 2507 root = leader->entries_in; in hists__match() 2524 struct hist_entry *pos, *leader; in hists__link_hierarchy() local 2532 list_for_each_entry(leader, &pos->pairs.head, pairs.node) { in hists__link_hierarchy() 2533 if (leader->hists == leader_hists) { in hists__link_hierarchy() 2541 leader = add_dummy_hierarchy_entry(leader_hists, in hists__link_hierarchy() 2543 if (leader == NULL) in hists__link_hierarchy() [all …]
|
D | stat.c | 517 struct evsel *leader = evsel->leader; in create_perf_stat_counter() local 527 if (leader->core.nr_members > 1) in create_perf_stat_counter()
|
D | pfm.c | 94 evsel->leader = grp_leader; in parse_libpfm_events_option()
|
D | parse-events.c | 1654 struct evsel *evsel, *leader; in parse_events__set_leader_for_uncore_aliase() local 1659 leader = list_first_entry(list, struct evsel, core.node); in parse_events__set_leader_for_uncore_aliase() 1661 total_members = evsel->idx - leader->idx + 1; in parse_events__set_leader_for_uncore_aliase() 1679 if (!is_same_uncore_block(leader->pmu_name, evsel->pmu_name)) in parse_events__set_leader_for_uncore_aliase() 1689 if ((leader != evsel) && in parse_events__set_leader_for_uncore_aliase() 1690 !strcmp(leader->pmu_name, evsel->pmu_name)) { in parse_events__set_leader_for_uncore_aliase() 1721 evsel->leader = (struct evsel *) leaders[i++]; in parse_events__set_leader_for_uncore_aliase() 1744 struct evsel *leader; in parse_events__set_leader() local 1755 leader = list_entry(list->next, struct evsel, core.node); in parse_events__set_leader() 1756 leader->group_name = name ? strdup(name) : NULL; in parse_events__set_leader()
|
D | stat-shadow.c | 336 struct evsel *counter, *leader, **metric_events, *oc; in perf_stat__collect_metric_expr() local 347 leader = counter->leader; in perf_stat__collect_metric_expr() 373 if (leader) { in perf_stat__collect_metric_expr() 375 for_each_group_member (oc, leader) { in perf_stat__collect_metric_expr()
|
D | metricgroup.c | 216 if (!has_constraint && ev->leader != current_leader) { in find_evsel_group() 224 current_leader = ev->leader; in find_evsel_group() 282 ev->leader != metric_events[i]->leader) in find_evsel_group()
|
D | hist.h | 218 void hists__match(struct hists *leader, struct hists *other); 219 int hists__link(struct hists *leader, struct hists *other);
|
/tools/perf/tests/ |
D | thread-maps-share.c | 13 struct thread *leader; in test__thread_maps_share() local 34 leader = machine__findnew_thread(machine, 0, 0); in test__thread_maps_share() 43 leader && t1 && t2 && t3 && other); in test__thread_maps_share() 45 maps = leader->maps; in test__thread_maps_share() 66 machine__remove_thread(machine, leader); in test__thread_maps_share() 79 thread__put(leader); in test__thread_maps_share()
|
D | parse-events.c | 670 struct evsel *evsel, *leader; in test__group1() local 676 evsel = leader = evlist__first(evlist); in test__group1() 703 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader); in test__group1() 712 struct evsel *evsel, *leader; in test__group2() local 718 evsel = leader = evlist__first(evlist); in test__group2() 744 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader); in test__group2() 767 struct evsel *evsel, *leader; in test__group3() local 773 evsel = leader = evlist__first(evlist); in test__group3() 786 !strcmp(leader->group_name, "group1")); in test__group3() 803 TEST_ASSERT_VAL("wrong leader", evsel->leader == leader); in test__group3() [all …]
|
D | hists_link.c | 184 static int validate_match(struct hists *leader, struct hists *other) in validate_match() argument 186 return __validate_match(leader) || __validate_match(other); in validate_match() 262 static int validate_link(struct hists *leader, struct hists *other) in validate_link() argument 264 return __validate_link(leader, 0) || __validate_link(other, 1); in validate_link()
|
/tools/perf/arch/x86/util/ |
D | topdown.c | 54 bool arch_topdown_sample_read(struct evsel *leader) in arch_topdown_sample_read() argument 59 if (is_topdown_slots_event(leader)) in arch_topdown_sample_read()
|
/tools/perf/ |
D | builtin-stat.c | 225 struct evsel *evsel, *pos, *leader; in evlist__check_cpu_maps() local 229 leader = evsel->leader; in evlist__check_cpu_maps() 232 if (leader == evsel) in evlist__check_cpu_maps() 234 if (cpus_map_matched(leader, evsel)) in evlist__check_cpu_maps() 239 evsel__group_desc(leader, buf, sizeof(buf)); in evlist__check_cpu_maps() 243 cpu_map__snprint(leader->core.cpus, buf, sizeof(buf)); in evlist__check_cpu_maps() 244 pr_warning(" %s: %s\n", leader->name, buf); in evlist__check_cpu_maps() 249 for_each_group_evsel(pos, leader) { in evlist__check_cpu_maps() 250 pos->leader = pos; in evlist__check_cpu_maps() 253 evsel->leader->core.nr_members = 0; in evlist__check_cpu_maps() [all …]
|
D | design.txt | 267 counter group has one counter which is the group "leader". The leader 270 subsequently, with group_fd giving the fd of the group leader. 426 Enabling or disabling the leader of a group enables or disables the 427 whole group; that is, while the group leader is disabled, none of the 429 group other than the leader only affects that counter - disabling an 430 non-leader stops that counter from counting but doesn't affect any
|
/tools/perf/Documentation/ |
D | topdown.txt | 72 The Fixed counter 3 must be the leader of the group. 100 * Set slots event as the leader of the group. 242 - The SLOTS event must be the leader of the group. 247 a sampling read group. Since the SLOTS event must be the leader of a TopDown
|
D | perf-list.txt | 259 perf also supports group leader sampling using the :S specifier. 265 the first event (the leader) samples, and it only reads the values of the 269 area event must be the leader, so then the second event samples, not the first.
|