/linux-6.12.1/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 …]
|
/linux-6.12.1/tools/testing/selftests/powerpc/pmu/event_code_tests/ |
D | event_alternatives_tests_p9.c | 27 struct event event, leader; in event_alternatives_tests_p9() local 44 event_init(&leader, PM_RUN_CYC_ALT); in event_alternatives_tests_p9() 45 FAIL_IF(event_open(&leader)); in event_alternatives_tests_p9() 53 FAIL_IF(event_open_with_group(&event, leader.fd)); in event_alternatives_tests_p9() 55 event_close(&leader); in event_alternatives_tests_p9() 58 event_init(&leader, PM_INST_DISP); in event_alternatives_tests_p9() 59 FAIL_IF(event_open(&leader)); in event_alternatives_tests_p9() 66 FAIL_IF(event_open_with_group(&event, leader.fd)); in event_alternatives_tests_p9() 68 event_close(&leader); in event_alternatives_tests_p9() 71 event_init(&leader, PM_BR_2PATH); in event_alternatives_tests_p9() [all …]
|
D | group_constraint_thresh_cmp_test.c | 34 struct event event, leader; in group_constraint_thresh_cmp() local 41 event_init(&leader, p10_EventCode_1); in group_constraint_thresh_cmp() 44 leader.attr.config1 = 1000; in group_constraint_thresh_cmp() 45 FAIL_IF(event_open(&leader)); in group_constraint_thresh_cmp() 53 FAIL_IF(!event_open_with_group(&event, leader.fd)); in group_constraint_thresh_cmp() 64 FAIL_IF(event_open_with_group(&event, leader.fd)); in group_constraint_thresh_cmp() 66 event_close(&leader); in group_constraint_thresh_cmp() 70 event_init(&leader, p9_EventCode_1); in group_constraint_thresh_cmp() 71 FAIL_IF(event_open(&leader)); in group_constraint_thresh_cmp() 76 FAIL_IF(!event_open_with_group(&event, leader.fd)); in group_constraint_thresh_cmp() [all …]
|
D | group_constraint_repeat_test.c | 23 struct event event, leader; in group_constraint_repeat() local 34 event_init(&leader, EventCode1); in group_constraint_repeat() 35 FAIL_IF(event_open(&leader)); in group_constraint_repeat() 40 FAIL_IF(!event_open_with_group(&event, leader.fd)); in group_constraint_repeat() 45 FAIL_IF(event_open_with_group(&event, leader.fd)); in group_constraint_repeat() 47 event_close(&leader); in group_constraint_repeat()
|
D | group_constraint_mmcra_sample_test.c | 21 struct event event, leader; in group_constraint_mmcra_sample() local 32 event_init(&leader, EventCode_1); in group_constraint_mmcra_sample() 33 FAIL_IF(event_open(&leader)); in group_constraint_mmcra_sample() 38 FAIL_IF(!event_open_with_group(&event, leader.fd)); in group_constraint_mmcra_sample() 43 FAIL_IF(event_open_with_group(&event, leader.fd)); in group_constraint_mmcra_sample() 45 event_close(&leader); in group_constraint_mmcra_sample()
|
D | group_constraint_radix_scope_qual_test.c | 25 struct event event, leader; in group_constraint_radix_scope_qual() local 35 event_init(&leader, EventCode_1); in group_constraint_radix_scope_qual() 36 FAIL_IF(event_open(&leader)); in group_constraint_radix_scope_qual() 41 FAIL_IF(!event_open_with_group(&event, leader.fd)); in group_constraint_radix_scope_qual() 45 FAIL_IF(event_open_with_group(&event, leader.fd)); in group_constraint_radix_scope_qual() 47 event_close(&leader); in group_constraint_radix_scope_qual()
|
D | group_constraint_cache_test.c | 29 struct event event, leader; in group_constraint_cache() local 35 event_init(&leader, EventCode_1); in group_constraint_cache() 36 FAIL_IF(event_open(&leader)); in group_constraint_cache() 41 FAIL_IF(!event_open_with_group(&event, leader.fd)); in group_constraint_cache() 49 FAIL_IF(event_open_with_group(&event, leader.fd)); in group_constraint_cache() 51 event_close(&leader); in group_constraint_cache()
|
D | group_constraint_thresh_sel_test.c | 32 struct event event, leader; in group_constraint_thresh_sel() local 38 event_init(&leader, EventCode_1); in group_constraint_thresh_sel() 39 FAIL_IF(event_open(&leader)); in group_constraint_thresh_sel() 44 FAIL_IF(!event_open_with_group(&event, leader.fd)); in group_constraint_thresh_sel() 52 FAIL_IF(event_open_with_group(&event, leader.fd)); in group_constraint_thresh_sel() 54 event_close(&leader); in group_constraint_thresh_sel()
|
D | group_constraint_thresh_ctl_test.c | 33 struct event event, leader; in group_constraint_thresh_ctl() local 39 event_init(&leader, EventCode_1); in group_constraint_thresh_ctl() 40 FAIL_IF(event_open(&leader)); in group_constraint_thresh_ctl() 45 FAIL_IF(!event_open_with_group(&event, leader.fd)); in group_constraint_thresh_ctl() 53 FAIL_IF(event_open_with_group(&event, leader.fd)); in group_constraint_thresh_ctl() 55 event_close(&leader); in group_constraint_thresh_ctl()
|
D | group_constraint_l2l3_sel_test.c | 29 struct event event, leader; in group_constraint_l2l3_sel() local 39 event_init(&leader, EventCode_1); in group_constraint_l2l3_sel() 40 FAIL_IF(event_open(&leader)); in group_constraint_l2l3_sel() 45 FAIL_IF(!event_open_with_group(&event, leader.fd)); in group_constraint_l2l3_sel() 53 FAIL_IF(event_open_with_group(&event, leader.fd)); in group_constraint_l2l3_sel() 55 event_close(&leader); in group_constraint_l2l3_sel()
|
/linux-6.12.1/tools/perf/arch/x86/tests/ |
D | hybrid.c | 38 struct evsel *evsel, *leader; in test__hybrid_hw_group_event() local 40 evsel = leader = evlist__first(evlist); in test__hybrid_hw_group_event() 45 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__hybrid_hw_group_event() 51 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__hybrid_hw_group_event() 57 struct evsel *evsel, *leader; in test__hybrid_sw_hw_group_event() local 59 evsel = leader = evlist__first(evlist); in test__hybrid_sw_hw_group_event() 62 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__hybrid_sw_hw_group_event() 68 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__hybrid_sw_hw_group_event() 74 struct evsel *evsel, *leader; in test__hybrid_hw_sw_group_event() local 76 evsel = leader = evlist__first(evlist); in test__hybrid_hw_sw_group_event() [all …]
|
/linux-6.12.1/tools/lib/perf/tests/ |
D | test-evlist.c | 38 struct perf_evsel *evsel, *leader; in test_stat_cpu() local 55 evsel = leader = perf_evsel__new(&attr1); in test_stat_cpu() 66 __T("failed to set leader", leader->leader == leader); in test_stat_cpu() 67 __T("failed to set leader", evsel->leader == leader); in test_stat_cpu() 97 struct perf_evsel *evsel, *leader; in test_stat_thread() local 116 evsel = leader = perf_evsel__new(&attr1); in test_stat_thread() 127 __T("failed to set leader", leader->leader == leader); in test_stat_thread() 128 __T("failed to set leader", evsel->leader == leader); in test_stat_thread() 152 struct perf_evsel *evsel, *leader; in test_stat_thread_enable() local 173 evsel = leader = perf_evsel__new(&attr1); in test_stat_thread_enable() [all …]
|
D | test-evsel.c | 232 struct perf_evsel *leader, *member; in test_stat_read_format_group() local 238 leader = perf_evsel__new(attr); in test_stat_read_format_group() 239 __T("failed to create leader", leader); in test_stat_read_format_group() 245 member->leader = leader; in test_stat_read_format_group() 246 leader->nr_members = 2; in test_stat_read_format_group() 249 err = perf_evsel__open(leader, NULL, threads); in test_stat_read_format_group() 259 perf_evsel__read(leader, 0, 0, &counts); in test_stat_read_format_group() 285 perf_evsel__close(leader); in test_stat_read_format_group() 287 perf_evsel__delete(leader); in test_stat_read_format_group()
|
/linux-6.12.1/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 = thread__maps(leader); in test__thread_maps_share() 66 machine__remove_thread(machine, leader); in test__thread_maps_share() 88 thread__put(leader); in test__thread_maps_share()
|
D | parse-events.c | 865 struct evsel *evsel, *leader; in test__group1() local 876 evsel = leader = (i == 0 ? evlist__first(evlist) : evsel__next(evsel)); in test__group1() 905 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__group1() 914 struct evsel *evsel, *leader = NULL; in test__group2() local 929 leader = evsel; in test__group2() 953 if (evsel__has_leader(evsel, leader)) in test__group2() 1087 struct evsel *evsel, *leader; in test__group4() local 1098 evsel = leader = (i == 0 ? evlist__first(evlist) : evsel__next(evsel)); in test__group4() 1129 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__group4() 1138 struct evsel *evsel = NULL, *leader; in test__group5() local [all …]
|
/linux-6.12.1/tools/perf/util/ |
D | record.c | 28 struct evsel *leader = evsel__leader(evsel); in evsel__read_sampler() local 30 if (evsel__is_aux_event(leader) || arch_topdown_sample_read(leader) || in evsel__read_sampler() 31 is_mem_loads_aux_event(leader)) { in evsel__read_sampler() 33 if (evsel__leader(evsel) == leader && evsel != evsel__leader(evsel)) in evsel__read_sampler() 38 return leader; in evsel__read_sampler() 56 struct evsel *leader = evsel__leader(evsel); in evsel__config_leader_sampling() local 60 if (!leader->sample_read) in evsel__config_leader_sampling() 92 leader->core.attr.sample_type; in evsel__config_leader_sampling()
|
D | evsel.c | 421 evsel->core.leader = orig->core.leader; in evsel__clone() 1147 struct evsel *leader = evsel__leader(evsel); in evsel__config() local 1173 if (leader->core.nr_members > 1) { in evsel__config() 1569 static bool evsel__group_has_tpebs(struct evsel *leader) in evsel__group_has_tpebs() argument 1573 for_each_group_evsel(evsel, leader) { in evsel__group_has_tpebs() 1580 static u64 evsel__group_read_nr_members(struct evsel *leader) in evsel__group_read_nr_members() argument 1582 u64 nr = leader->core.nr_members; in evsel__group_read_nr_members() 1585 for_each_group_evsel(evsel, leader) { in evsel__group_read_nr_members() 1592 static u64 evsel__group_read_size(struct evsel *leader) in evsel__group_read_size() argument 1594 u64 read_format = leader->core.attr.read_format; in evsel__group_read_size() [all …]
|
D | evsel.h | 471 return evsel->core.leader == &evsel->core; in evsel__is_group_leader() 510 return evsel->core.idx - evsel->core.leader->idx; in evsel__group_idx() 517 (_evsel)->core.leader == &(_leader)->core; \ 527 (_evsel)->core.leader == &(_leader)->core; \ 576 bool evsel__has_leader(struct evsel *evsel, struct evsel *leader); 578 void evsel__set_leader(struct evsel *evsel, struct evsel *leader); 580 void evsel__remove_from_group(struct evsel *evsel, struct evsel *leader);
|
D | evlist.c | 213 struct evsel *evsel, *temp, *leader = NULL; in evlist__splice_list_tail() local 218 leader = evsel; in evlist__splice_list_tail() 223 if (evsel__has_leader(evsel, leader)) { in evlist__splice_list_tail() 1886 struct evsel *leader = evlist__first(evlist); in evlist__force_leader() local 1889 leader->forced_leader = true; in evlist__force_leader() 1895 struct evsel *c2, *leader; in evlist__reset_weak_group() local 1898 leader = evsel__leader(evsel); in evlist__reset_weak_group() 1901 leader->name, leader->core.nr_members); in evlist__reset_weak_group() 1910 if (evsel__has_leader(c2, leader)) { in evlist__reset_weak_group() 1918 evsel__remove_from_group(c2, leader); in evlist__reset_weak_group() [all …]
|
/linux-6.12.1/arch/alpha/kernel/ |
D | pci_iommu.c | 489 struct scatterlist *leader; in sg_classify() local 493 leader = sg; in sg_classify() 495 leader_length = leader->length; in sg_classify() 496 next_paddr = SG_ENT_PHYS_ADDRESS(leader) + leader_length; in sg_classify() 517 leader->dma_address = leader_flag; in sg_classify() 518 leader->dma_length = leader_length; in sg_classify() 519 leader = sg; in sg_classify() 527 leader->dma_address = leader_flag; in sg_classify() 528 leader->dma_length = leader_length; in sg_classify() 535 sg_fill(struct device *dev, struct scatterlist *leader, struct scatterlist *end, in sg_fill() argument [all …]
|
/linux-6.12.1/tools/perf/arch/x86/util/ |
D | topdown.c | 42 bool arch_topdown_sample_read(struct evsel *leader) in arch_topdown_sample_read() argument 44 if (!evsel__sys_has_perf_metrics(leader)) in arch_topdown_sample_read() 47 if (leader->core.attr.config == TOPDOWN_SLOTS) in arch_topdown_sample_read()
|
/linux-6.12.1/fs/ |
D | exec.c | 1064 struct task_struct *leader = tsk->group_leader; in de_thread() local 1074 if (likely(leader->exit_state)) in de_thread() 1094 tsk->start_time = leader->start_time; in de_thread() 1095 tsk->start_boottime = leader->start_boottime; in de_thread() 1097 BUG_ON(!same_thread_group(leader, tsk)); in de_thread() 1108 exchange_tids(tsk, leader); in de_thread() 1109 transfer_pid(leader, tsk, PIDTYPE_TGID); in de_thread() 1110 transfer_pid(leader, tsk, PIDTYPE_PGID); in de_thread() 1111 transfer_pid(leader, tsk, PIDTYPE_SID); in de_thread() 1113 list_replace_rcu(&leader->tasks, &tsk->tasks); in de_thread() [all …]
|
/linux-6.12.1/include/linux/ |
D | cgroup.h | 299 #define cgroup_taskset_for_each_leader(leader, dst_css, tset) \ argument 300 for ((leader) = cgroup_taskset_first((tset), &(dst_css)); \ 301 (leader); \ 302 (leader) = cgroup_taskset_next((tset), &(dst_css))) \ 303 if ((leader) != (leader)->group_leader) \
|
/linux-6.12.1/tools/lib/perf/ |
D | evsel.c | 28 evsel->leader = evsel; in perf_evsel__init() 89 struct perf_evsel *leader = evsel->leader; in get_group_fd() local 92 if (evsel == leader) { in get_group_fd() 101 if (!leader->fd) in get_group_fd() 104 fd = FD(leader, cpu_map_idx, thread); in get_group_fd()
|
/linux-6.12.1/drivers/dma/idxd/ |
D | perfmon.c | 56 struct perf_event *leader, in perfmon_collect_events() argument 68 if (is_idxd_event(idxd_pmu, leader)) { in perfmon_collect_events() 69 idxd_pmu->event_list[n] = leader; in perfmon_collect_events() 77 for_each_sibling_event(event, leader) { in perfmon_collect_events() 127 struct perf_event *leader = event->group_leader; in perfmon_validate_group() local 138 n = perfmon_collect_events(fake_pmu, leader, true); in perfmon_validate_group()
|