/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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 | 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 | 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 | 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 | topdown.h | 8 bool arch_topdown_sample_read(struct evsel *leader);
|
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 | topdown.c | 55 __weak bool arch_topdown_sample_read(struct evsel *leader __maybe_unused) in arch_topdown_sample_read()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/arch/alpha/kernel/ |
D | pci_iommu.c | 516 struct scatterlist *leader; in sg_classify() local 520 leader = sg; in sg_classify() 522 leader_length = leader->length; in sg_classify() 523 next_paddr = SG_ENT_PHYS_ADDRESS(leader) + leader_length; in sg_classify() 544 leader->dma_address = leader_flag; in sg_classify() 545 leader->dma_length = leader_length; in sg_classify() 546 leader = sg; in sg_classify() 554 leader->dma_address = leader_flag; in sg_classify() 555 leader->dma_length = leader_length; in sg_classify() 562 sg_fill(struct device *dev, struct scatterlist *leader, struct scatterlist *end, in sg_fill() argument [all …]
|
/kernel/linux/linux-5.10/drivers/media/usb/tm6000/ |
D | tm6000-input.c | 82 u32 pulse = 0, leader = 0; in tm6000_ir_config() local 100 leader = 900; /* ms */ in tm6000_ir_config() 105 leader = 900; /* ms - from the NEC decoding */ in tm6000_ir_config() 111 leader = ir_clock_mhz * leader; in tm6000_ir_config() 113 leader = leader | 0x8000; in tm6000_ir_config() 118 ir_clock_mhz, leader, pulse); in tm6000_ir_config() 131 tm6000_set_reg(dev, TM6010_REQ07_RDC_IR_LEADER1, leader >> 8); in tm6000_ir_config() 132 tm6000_set_reg(dev, TM6010_REQ07_RDD_IR_LEADER0, leader); in tm6000_ir_config()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/fs/ |
D | exec.c | 1080 struct task_struct *leader = tsk->group_leader; in de_thread() local 1090 if (likely(leader->exit_state)) in de_thread() 1110 tsk->start_time = leader->start_time; in de_thread() 1111 tsk->start_boottime = leader->start_boottime; in de_thread() 1113 BUG_ON(!same_thread_group(leader, tsk)); in de_thread() 1124 exchange_tids(tsk, leader); in de_thread() 1125 transfer_pid(leader, tsk, PIDTYPE_TGID); in de_thread() 1126 transfer_pid(leader, tsk, PIDTYPE_PGID); in de_thread() 1127 transfer_pid(leader, tsk, PIDTYPE_SID); in de_thread() 1129 list_replace_rcu(&leader->tasks, &tsk->tasks); in de_thread() [all …]
|
/kernel/linux/linux-5.10/drivers/tty/ |
D | tty_jobctrl.c | 132 if (current->signal->leader && in tty_open_proc_set_tty() 207 if (!p->signal->leader) { in tty_signal_session_leader() 261 if (!current->signal->leader) in disassociate_ctty() 353 if (current->signal->leader && (task_session(current) == tty->session)) in tiocsctty() 360 if (!current->signal->leader || current->signal->tty) { in tiocsctty()
|
/kernel/linux/linux-5.10/include/linux/ |
D | cgroup.h | 298 #define cgroup_taskset_for_each_leader(leader, dst_css, tset) \ argument 299 for ((leader) = cgroup_taskset_first((tset), &(dst_css)); \ 300 (leader); \ 301 (leader) = cgroup_taskset_next((tset), &(dst_css))) \ 302 if ((leader) != (leader)->group_leader) \
|
/kernel/linux/linux-5.10/arch/arm/mm/ |
D | cache-l2x0-pmu.c | 275 struct perf_event *leader = event->group_leader; in l2x0_pmu_group_is_valid() local 279 if (leader->pmu == pmu) in l2x0_pmu_group_is_valid() 281 else if (!is_software_event(leader)) in l2x0_pmu_group_is_valid() 284 for_each_sibling_event(sibling, leader) { in l2x0_pmu_group_is_valid()
|
/kernel/linux/linux-5.10/drivers/perf/hisilicon/ |
D | hisi_uncore_pmu.c | 68 struct perf_event *sibling, *leader = event->group_leader; in hisi_validate_event_group() local 73 if (!is_software_event(leader)) { in hisi_validate_event_group() 78 if (leader->pmu != event->pmu) in hisi_validate_event_group() 82 if (leader != event) in hisi_validate_event_group()
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/arch/arm/mach-imx/ |
D | mmdc.c | 257 struct perf_event *leader = event->group_leader; in mmdc_pmu_group_is_valid() local 261 set_bit(leader->attr.config, &counter_mask); in mmdc_pmu_group_is_valid() 263 if (event != leader) { in mmdc_pmu_group_is_valid() 268 for_each_sibling_event(sibling, leader) { in mmdc_pmu_group_is_valid()
|
/kernel/linux/linux-5.10/drivers/perf/ |
D | qcom_l3_pmu.c | 453 struct perf_event *leader = event->group_leader; in qcom_l3_cache__validate_event_group() local 457 if (leader->pmu != event->pmu && !is_software_event(leader)) in qcom_l3_cache__validate_event_group() 461 counters += event_num_counters(leader); in qcom_l3_cache__validate_event_group() 463 for_each_sibling_event(sibling, leader) { in qcom_l3_cache__validate_event_group()
|