Home
last modified time | relevance | path

Searched full:leader (Results 1 – 25 of 189) sorted by relevance

12345678

/openbmc/linux/tools/testing/selftests/powerpc/pmu/ebb/
H A 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()
88 /* Expected to fail, event doesn't request EBB, leader does */ in event_attributes()
[all …]
/openbmc/linux/tools/testing/selftests/powerpc/pmu/event_code_tests/
H A 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 …]
H A 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()
43 /* Add the thresh_cmp value for leader in config1 */ 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()
49 /* Add the different thresh_cmp value from the leader event in config1 */ in group_constraint_thresh_cmp()
52 /* Expected to fail as sibling and leader event request different thresh_cmp bits */ in group_constraint_thresh_cmp()
53 FAIL_IF(!event_open_with_group(&event, leader.fd)); in group_constraint_thresh_cmp()
60 /* Add the same thresh_cmp value for leader and sibling event in config1 */ in group_constraint_thresh_cmp()
63 /* Expected to succeed as sibling and leader event request same thresh_cmp bits */ in group_constraint_thresh_cmp()
[all …]
H A Dgroup_constraint_mmcra_sample_test.c21 struct event event, leader; in group_constraint_mmcra_sample() local
29 * group leader. Use event with store only sampling in group_constraint_mmcra_sample()
32 event_init(&leader, EventCode_1); in group_constraint_mmcra_sample()
33 FAIL_IF(event_open(&leader)); in group_constraint_mmcra_sample()
37 /* Expected to fail as sibling event doesn't use same sampling bits as leader */ in group_constraint_mmcra_sample()
38 FAIL_IF(!event_open_with_group(&event, leader.fd)); in group_constraint_mmcra_sample()
42 /* Expected to pass as sibling event use same sampling bits as leader */ 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()
H A Dgroup_constraint_repeat_test.c23 struct event event, leader; in group_constraint_repeat() local
31 * for leader and sibling event which is expected in group_constraint_repeat()
34 event_init(&leader, EventCode1); in group_constraint_repeat()
35 FAIL_IF(event_open(&leader)); in group_constraint_repeat()
39 /* Expected to fail since sibling event is requesting same PMC as 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()
H A 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()
40 /* Expected to fail as sibling event doesn't request same radix_scope_qual bits as leader */ in group_constraint_radix_scope_qual()
41 FAIL_IF(!event_open_with_group(&event, leader.fd)); in group_constraint_radix_scope_qual()
44 /* Expected to pass as sibling event request same radix_scope_qual bits as leader */ 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()
H A 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()
44 /* Expected to fail as sibling and leader event request different thresh_ctl bits */ in group_constraint_thresh_ctl()
45 FAIL_IF(!event_open_with_group(&event, leader.fd)); in group_constraint_thresh_ctl()
52 /* Expected to succeed as sibling and leader event request same thresh_ctl bits */ 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()
H A 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()
40 /* Expected to fail as sibling event doesn't request same l1 cache select bits as leader */ in group_constraint_cache()
41 FAIL_IF(!event_open_with_group(&event, leader.fd)); in group_constraint_cache()
48 /* Expected to succeed as sibling event request same l1 cache select bits as leader */ 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()
H A 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()
43 /* Expected to fail as sibling and leader event request different thresh_sel bits */ in group_constraint_thresh_sel()
44 FAIL_IF(!event_open_with_group(&event, leader.fd)); in group_constraint_thresh_sel()
51 /* Expected to succeed as sibling and leader event request same thresh_sel bits */ 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()
H A 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()
44 /* Expected to fail as sibling event doesn't request same l2l3_sel bits as leader */ in group_constraint_l2l3_sel()
45 FAIL_IF(!event_open_with_group(&event, leader.fd)); in group_constraint_l2l3_sel()
52 /* Expected to succeed as sibling event request same l2l3_sel bits as leader */ 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()
/openbmc/linux/tools/perf/arch/x86/tests/
H A 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 …]
/openbmc/linux/tools/lib/perf/tests/
H A 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 …]
H A 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()
261 __T("failed to read leader value", counts.val); in test_stat_read_format_group()
263 __T("failed to read leader TOTAL_TIME_ENABLED", counts.ena); in test_stat_read_format_group()
265 __T("failed to read leader TOTAL_TIME_RUNNING", counts.run); in test_stat_read_format_group()
[all …]
/openbmc/linux/tools/perf/tests/
H A 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()
39 /* and create 1 separated process, without thread leader */ 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()
54 * Verify the other leader was created by previous call. in test__thread_maps_share()
59 TEST_ASSERT_VAL("failed to find other leader", other_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()
H A 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()
874 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(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()
921 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group2()
936 if (evsel__has_leader(evsel, leader)) in test__group2()
950 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group2()
983 TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel)); in test__group3()
[all …]
/openbmc/linux/tools/perf/util/
H A Drecord.c22 * evsel__config_leader_sampling() uses special rules for leader sampling.
23 * However, if the leader is an AUX area event, then assume the event to sample
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()
71 * config terms or the leader. In the case of an AUX area event, the 2nd in evsel__config_leader_sampling()
[all …]
H A Dbpf_counter.c367 if (evsel->core.leader->nr_members > 1) { in bperf_check_target()
403 pr_err("Failed to open leader skeleton\n"); in bperf_reload_leader_program()
410 pr_err("Failed to load leader skeleton\n"); in bperf_reload_leader_program()
416 pr_err("Failed to attach leader program\n"); in bperf_reload_leader_program()
464 * Step 1: hold a fd on the leader program and the bpf_link, if in bperf__load()
489 * The bpf_link holds reference to the leader program, and the in bperf__load()
490 * leader program holds reference to the maps. Therefore, if in bperf__load()
519 /* attach fexit program to the leader program */ in bperf__load()
523 /* connect to leader diff_reading map */ in bperf__load()
583 * trigger the leader prog on each cpu, so the accum_reading map could get
[all …]
H A Devsel.h423 * evsel__is_group_leader - Return whether given evsel is a leader event
427 * Return %true if @evsel is a group leader or a stand-alone event
431 return evsel->core.leader == &evsel->core; in evsel__is_group_leader()
440 * leader which has other members in the group
469 return evsel->core.idx - evsel->core.leader->idx; in evsel__group_idx()
472 /* Iterates group WITHOUT the leader. */
476 (_evsel)->core.leader == &(_leader)->core; \
482 /* Iterates group WITH the leader. */
486 (_evsel)->core.leader == &(_leader)->core; \
535 bool evsel__has_leader(struct evsel *evsel, struct evsel *leader);
[all …]
/openbmc/linux/tools/lib/perf/include/perf/
H A Dbpf_perf.h8 * bpf_perf uses a hashmap, the attr_map, to track all the leader programs.
14 * leader prog, and the diff_map. Each perf-stat session holds a reference
15 * to the bpf_link to make sure the leader prog is attached to sched_switch
19 * does not hold any references to the leader program. Once all perf-stat
20 * sessions of these events exit, the leader prog, its maps, and the
/openbmc/linux/arch/alpha/kernel/
H A Dpci_iommu.c476 -1 : Not leader, physically adjacent to previous.
477 -2 : Not leader, virtually adjacent to previous.
478 Write dma_length of each leader with the combined lengths of
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()
[all …]
/openbmc/linux/tools/perf/arch/x86/util/
H A Dtopdown.c40 * event must be the leader of the topdown group.
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()
/openbmc/openbmc/poky/bitbake/lib/bb/
H A Ddaemonize.py34 # be a process group leader, since the child receives a new process ID
42 # To become the session leader of this new session and the process group
43 # leader of the new process group, we call os.setsid(). The process is
50 # a session leader without a controlling terminal, it's possible for
53 # longer a session leader, preventing the daemon from ever acquiring
/openbmc/linux/drivers/media/rc/img-ir/
H A Dimg-ir-hw.h28 * @hdrtog: Detect header toggle symbol after leader symbol
29 * @ldrdec: Don't discard leader if maximum width reached
34 * @decodend2: Secondary decoder enable (no leader symbol)
89 * @ldr: Leader symbol timing data
92 * @s10: Zero symbol timing data for secondary (no leader symbol) decoder
93 * @s11: One symbol timing data for secondary (no leader symbol) decoder
117 * @ldr: Leader symbol timing register value
/openbmc/qemu/util/
H A Dcoroutine-windows.c37 QEMU_DEFINE_STATIC_CO_TLS(CoroutineWin32, leader);
95 CoroutineWin32 *leader = get_ptr_leader(); in qemu_coroutine_self() local
97 current = &leader->base; in qemu_coroutine_self()
99 leader->fiber = ConvertThreadToFiber(NULL); in qemu_coroutine_self()
/openbmc/linux/drivers/tty/
H A Dtty_jobctrl.c91 * Only callable by the session leader and only if it does not already have
136 if (current->signal->leader && in tty_open_proc_set_tty()
185 * tty_signal_session_leader - sends SIGHUP to session leader
189 * Send SIGHUP and SIGCONT to the session leader and its process group.
214 if (!p->signal->leader) { in tty_signal_session_leader()
245 * This function is typically called only by the session leader, when
269 if (!current->signal->leader) in disassociate_ctty()
358 * leader to set this tty as the controlling tty for the session.
372 if (current->signal->leader && in tiocsctty()
377 * The process must be a session leader and in tiocsctty()
[all …]

12345678