Home
last modified time | relevance | path

Searched refs:leader (Results 1 – 25 of 100) sorted by relevance

1234

/linux-6.6.21/tools/testing/selftests/powerpc/pmu/ebb/
Devent_attributes_test.c17 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.6.21/tools/testing/selftests/powerpc/pmu/event_code_tests/
Devent_alternatives_tests_p9.c27 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 …]
Dgroup_constraint_thresh_cmp_test.c34 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 …]
Dgroup_constraint_repeat_test.c23 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()
Dgroup_constraint_mmcra_sample_test.c21 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()
Dgroup_constraint_radix_scope_qual_test.c25 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()
Dgroup_constraint_cache_test.c29 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()
Dgroup_constraint_thresh_sel_test.c32 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()
Dgroup_constraint_thresh_ctl_test.c33 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()
Dgroup_constraint_l2l3_sel_test.c29 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.6.21/tools/lib/perf/tests/
Dtest-evlist.c38 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 …]
Dtest-evsel.c232 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.6.21/tools/perf/arch/x86/tests/
Dhybrid.c38 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.6.21/tools/perf/tests/
Dthread-maps-share.c13 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()
89 thread__put(leader); in test__thread_maps_share()
Dparse-events.c856 struct evsel *evsel, *leader; in test__group1() local
865 evsel = leader = (i == 0 ? evlist__first(evlist) : evsel__next(evsel)); in test__group1()
890 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__group1()
899 struct evsel *evsel, *leader = NULL; in test__group2() local
912 leader = evsel; in test__group2()
936 if (evsel__has_leader(evsel, leader)) in test__group2()
1065 struct evsel *evsel, *leader; in test__group4() local
1074 evsel = leader = (i == 0 ? evlist__first(evlist) : evsel__next(evsel)); in test__group4()
1101 TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader)); in test__group4()
1110 struct evsel *evsel = NULL, *leader; in test__group5() local
[all …]
/linux-6.6.21/tools/perf/util/
Drecord.c28 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()
Devsel.c416 evsel->core.leader = orig->core.leader; in evsel__clone()
1130 struct evsel *leader = evsel__leader(evsel); in evsel__config() local
1156 if (leader->core.nr_members > 1) { in evsel__config()
1538 static int evsel__process_group_data(struct evsel *leader, int cpu_map_idx, int thread, u64 *data) in evsel__process_group_data() argument
1540 u64 read_format = leader->core.attr.read_format; in evsel__process_group_data()
1546 if (nr != (u64) leader->core.nr_members) in evsel__process_group_data()
1559 counter = evlist__id2evsel(leader->evlist, v->id); in evsel__process_group_data()
1572 static int evsel__read_group(struct evsel *leader, int cpu_map_idx, int thread) in evsel__read_group() argument
1574 struct perf_stat_evsel *ps = leader->stats; in evsel__read_group()
1575 u64 read_format = leader->core.attr.read_format; in evsel__read_group()
[all …]
Devsel.h431 return evsel->core.leader == &evsel->core; in evsel__is_group_leader()
469 return evsel->core.idx - evsel->core.leader->idx; in evsel__group_idx()
476 (_evsel)->core.leader == &(_leader)->core; \
486 (_evsel)->core.leader == &(_leader)->core; \
535 bool evsel__has_leader(struct evsel *evsel, struct evsel *leader);
537 void evsel__set_leader(struct evsel *evsel, struct evsel *leader);
539 void evsel__remove_from_group(struct evsel *evsel, struct evsel *leader);
Devlist.c209 struct evsel *evsel, *temp, *leader = NULL; in evlist__splice_list_tail() local
214 leader = evsel; in evlist__splice_list_tail()
219 if (evsel__has_leader(evsel, leader)) { in evlist__splice_list_tail()
1796 struct evsel *leader = evlist__first(evlist); in evlist__force_leader() local
1799 leader->forced_leader = true; in evlist__force_leader()
1805 struct evsel *c2, *leader; in evlist__reset_weak_group() local
1808 leader = evsel__leader(evsel); in evlist__reset_weak_group()
1811 leader->name, leader->core.nr_members); in evlist__reset_weak_group()
1820 if (evsel__has_leader(c2, leader)) { in evlist__reset_weak_group()
1828 evsel__remove_from_group(c2, leader); in evlist__reset_weak_group()
[all …]
/linux-6.6.21/arch/alpha/kernel/
Dpci_iommu.c489 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.6.21/tools/perf/arch/x86/util/
Dtopdown.c42 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()
Dmem-events.c42 bool is_mem_loads_aux_event(struct evsel *leader) in is_mem_loads_aux_event() argument
52 return leader->core.attr.config == MEM_LOADS_AUX; in is_mem_loads_aux_event()
/linux-6.6.21/fs/
Dexec.c1087 struct task_struct *leader = tsk->group_leader; in de_thread() local
1097 if (likely(leader->exit_state)) in de_thread()
1117 tsk->start_time = leader->start_time; in de_thread()
1118 tsk->start_boottime = leader->start_boottime; in de_thread()
1120 BUG_ON(!same_thread_group(leader, tsk)); in de_thread()
1131 exchange_tids(tsk, leader); in de_thread()
1132 transfer_pid(leader, tsk, PIDTYPE_TGID); in de_thread()
1133 transfer_pid(leader, tsk, PIDTYPE_PGID); in de_thread()
1134 transfer_pid(leader, tsk, PIDTYPE_SID); in de_thread()
1136 list_replace_rcu(&leader->tasks, &tsk->tasks); in de_thread()
[all …]
/linux-6.6.21/tools/lib/perf/
Devsel.c28 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.6.21/include/linux/
Dcgroup.h300 #define cgroup_taskset_for_each_leader(leader, dst_css, tset) \ argument
301 for ((leader) = cgroup_taskset_first((tset), &(dst_css)); \
302 (leader); \
303 (leader) = cgroup_taskset_next((tset), &(dst_css))) \
304 if ((leader) != (leader)->group_leader) \

1234