Home
last modified time | relevance | path

Searched refs:sample_type (Results 1 – 25 of 90) sorted by relevance

1234

/linux/tools/perf/tests/
H A Dsample-parsing.c206 static int do_test(u64 sample_type, u64 sample_regs, u64 read_format) in do_test() argument
212 .sample_type = sample_type, in do_test()
292 if (sample_type & PERF_SAMPLE_REGS_USER) in do_test()
295 if (sample_type & PERF_SAMPLE_REGS_INTR) in do_test()
298 if (sample_type & PERF_SAMPLE_BRANCH_STACK) in do_test()
313 sz = perf_event__sample_event_size(&sample, sample_type, read_format); in do_test()
326 err = perf_event__synthesize_sample(event, sample_type, read_format, in do_test()
330 "perf_event__synthesize_sample", sample_type, err); in do_test()
345 evsel.sample_size = __evsel__sample_size(sample_type); in do_test()
350 "evsel__parse_sample", sample_type, err); in do_test()
[all …]
H A Ddlfilter-test.c112 static int write_attr(struct test_data *td, u64 sample_type, u64 *id) in write_attr() argument
118 .sample_type = sample_type, in write_attr()
173 static int write_sample(struct test_data *td, u64 sample_type, u64 id, pid_t pid, pid_t tid) in write_sample() argument
192 event->header.size = perf_event__sample_event_size(&sample, sample_type, 0); in write_sample()
193 err = perf_event__synthesize_sample(event, sample_type, 0, &sample); in write_sample()
323 u64 sample_type = TEST_SAMPLE_TYPE; in test__dlfilter_test() local
368 err = write_attr(td, sample_type, &id); in test__dlfilter_test()
381 if (write_sample(td, sample_type, id, pid, tid) != TEST_OK) { in test__dlfilter_test()
/linux/tools/perf/util/
H A Dbpf_off_cpu.c323 u64 sample_type, val, sid = 0; in off_cpu_write() local
343 sample_type = evsel->core.attr.sample_type; in off_cpu_write()
345 if (sample_type & ~OFFCPU_SAMPLE_TYPES) { in off_cpu_write()
347 (unsigned long long)sample_type); in off_cpu_write()
351 if (sample_type & (PERF_SAMPLE_ID | PERF_SAMPLE_IDENTIFIER)) { in off_cpu_write()
366 if (sample_type & PERF_SAMPLE_IDENTIFIER) in off_cpu_write()
368 if (sample_type & PERF_SAMPLE_IP) in off_cpu_write()
370 if (sample_type & PERF_SAMPLE_TID) in off_cpu_write()
372 if (sample_type & PERF_SAMPLE_TIME) in off_cpu_write()
374 if (sample_type & PERF_SAMPLE_CPU) in off_cpu_write()
[all …]
H A Drecord.c86 * sample_type to ease up reporting. in evsel__config_leader_sampling()
87 * An AUX area event also has sample_type requirements, so also include in evsel__config_leader_sampling()
88 * the sample type bits from the leader's sample_type to cover that in evsel__config_leader_sampling()
91 attr->sample_type = read_sampler->core.attr.sample_type | in evsel__config_leader_sampling()
92 leader->core.attr.sample_type; in evsel__config_leader_sampling()
129 if (evsel->core.attr.sample_type == first->core.attr.sample_type) in evlist__config()
H A Devsel.c149 WRITE_ASS(sample_type, "llu"); in store_event()
255 int __evsel__sample_size(u64 sample_type) in __evsel__sample_size() argument
257 u64 mask = sample_type & PERF_SAMPLE_MASK; in __evsel__sample_size()
279 static int __perf_evsel__calc_id_pos(u64 sample_type) in __perf_evsel__calc_id_pos() argument
283 if (sample_type & PERF_SAMPLE_IDENTIFIER) in __perf_evsel__calc_id_pos()
286 if (!(sample_type & PERF_SAMPLE_ID)) in __perf_evsel__calc_id_pos()
289 if (sample_type & PERF_SAMPLE_IP) in __perf_evsel__calc_id_pos()
292 if (sample_type & PERF_SAMPLE_TID) in __perf_evsel__calc_id_pos()
295 if (sample_type & PERF_SAMPLE_TIME) in __perf_evsel__calc_id_pos()
298 if (sample_type & PERF_SAMPLE_ADDR) in __perf_evsel__calc_id_pos()
[all …]
H A Dcs-etm.c1357 if (packet->sample_type == CS_ETM_DISCONTINUITY || in cs_etm__first_executed_instr()
1358 packet->sample_type == CS_ETM_EXCEPTION) in cs_etm__first_executed_instr()
1368 if (packet->sample_type == CS_ETM_DISCONTINUITY) in cs_etm__last_executed_instr()
1521 if (packet->sample_type == CS_ETM_DISCONTINUITY) { in cs_etm__copy_insn()
1712 attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK; in cs_etm__synth_events()
1713 attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | in cs_etm__synth_events()
1716 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; in cs_etm__synth_events()
1718 attr.sample_type |= PERF_SAMPLE_TIME; in cs_etm__synth_events()
1734 attr.sample_type |= PERF_SAMPLE_ADDR; in cs_etm__synth_events()
1738 etm->branches_sample_type = attr.sample_type; in cs_etm__synth_events()
[all …]
H A Dintel-bts.c767 attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK; in intel_bts_synth_events()
768 attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | in intel_bts_synth_events()
770 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; in intel_bts_synth_events()
771 attr.sample_type &= ~(u64)PERF_SAMPLE_CPU; in intel_bts_synth_events()
785 attr.sample_type |= PERF_SAMPLE_ADDR; in intel_bts_synth_events()
787 id, (u64)attr.sample_type); in intel_bts_synth_events()
795 bts->branches_sample_type = attr.sample_type; in intel_bts_synth_events()
802 __evsel__sample_size(attr.sample_type); in intel_bts_synth_events()
H A Dintel-pt.c1121 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_TIME)) in intel_pt_timeless_decoding()
1183 if ((evsel->core.attr.sample_type & PERF_SAMPLE_AUX) && in intel_pt_sampling_mode()
1226 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_CALLCHAIN)) in intel_pt_callchain_init()
1264 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_BRANCH_STACK)) in intel_pt_br_stack_init()
2422 u64 sample_type = evsel->core.attr.sample_type; in intel_pt_do_synth_pebs_sample() local
2453 if (sample_type & PERF_SAMPLE_TIME) { in intel_pt_do_synth_pebs_sample()
2464 if (sample_type & PERF_SAMPLE_CALLCHAIN && in intel_pt_do_synth_pebs_sample()
2472 if (sample_type & PERF_SAMPLE_REGS_INTR && in intel_pt_do_synth_pebs_sample()
2489 if (sample_type & PERF_SAMPLE_BRANCH_STACK) { in intel_pt_do_synth_pebs_sample()
2504 if (sample_type & PERF_SAMPLE_ADDR && items->has_mem_access_address) in intel_pt_do_synth_pebs_sample()
[all …]
H A Dsession.c508 bswap_field_64(sample_type); in perf_event__attr_swap()
994 u64 sample_type = __evlist__combined_sample_type(evlist); in evlist__print_tstamp() local
1002 if ((sample_type & PERF_SAMPLE_CPU)) in evlist__print_tstamp()
1005 if (sample_type & PERF_SAMPLE_TIME) in evlist__print_tstamp()
1075 u64 sample_type; in dump_sample() local
1085 sample_type = evsel->core.attr.sample_type; in dump_sample()
1093 if (sample_type & PERF_SAMPLE_REGS_USER) in dump_sample()
1096 if (sample_type & PERF_SAMPLE_REGS_INTR) in dump_sample()
1099 if (sample_type & PERF_SAMPLE_STACK_USER) in dump_sample()
1102 if (sample_type & PERF_SAMPLE_WEIGHT_TYPE) { in dump_sample()
[all …]
H A Djitdump.c42 uint64_t sample_type; member
509 if (jd->sample_type & PERF_SAMPLE_TID) { in jit_repipe_code_load()
513 if (jd->sample_type & PERF_SAMPLE_TIME) in jit_repipe_code_load()
620 if (jd->sample_type & PERF_SAMPLE_TID) { in jit_repipe_code_move()
624 if (jd->sample_type & PERF_SAMPLE_TIME) in jit_repipe_code_move()
901 jd.sample_type = first->core.attr.sample_type; in jit_process()
/linux/samples/bpf/
H A Dtracex6_user.c108 .sample_type = 0, in test_bpf_perf_event()
117 .sample_type = 0, in test_bpf_perf_event()
126 .sample_type = 0, in test_bpf_perf_event()
136 .sample_type = 0, in test_bpf_perf_event()
148 .sample_type = 0, in test_bpf_perf_event()
161 .sample_type = 0, in test_bpf_perf_event()
/linux/arch/x86/events/intel/
H A Dds.c1709 u64 sample_type = attr->sample_type; in intel_pmu_pebs_disable()
1713 if (!(sample_type & ~(PERF_SAMPLE_IP|PERF_SAMPLE_TIME)) && in intel_pmu_pebs_disable()
1717 if (sample_type & PERF_PEBS_MEMINFO_TYPE) in intel_pmu_pebs_disable()
1726 gprs = ((sample_type & PERF_SAMPLE_REGS_INTR) && in intel_pmu_pebs_enable_all()
1728 ((sample_type & PERF_SAMPLE_REGS_USER) && in intel_pmu_pebs_disable_all()
1731 tsx_weight = (sample_type & PERF_SAMPLE_WEIGHT_TYPE) && in intel_pmu_pebs_disable_all()
1738 if ((sample_type & PERF_SAMPLE_REGS_INTR) && in intel_pmu_pebs_fixup_ip()
1742 if (sample_type & PERF_SAMPLE_BRANCH_STACK) { in intel_pmu_pebs_fixup_ip()
2176 u64 sample_type; in __setup_pebs_basic_group()
1448 u64 sample_type = attr->sample_type; pebs_update_adaptive_cfg() local
1915 u64 sample_type; setup_pebs_fixed_sample_data() local
2171 __setup_pebs_basic_group(struct perf_event * event,struct pt_regs * regs,struct perf_sample_data * data,u64 sample_type,u64 ip,u64 tsc,u16 retire) __setup_pebs_basic_group() argument
2186 __setup_pebs_gpr_group(struct perf_event * event,struct pt_regs * regs,struct pebs_gprs * gprs,u64 sample_type) __setup_pebs_gpr_group() argument
2199 __setup_pebs_meminfo_group(struct perf_event * event,struct perf_sample_data * data,u64 sample_type,u64 latency,u16 instr_latency,u64 address,u64 aux,u64 tsx_tuning,u64 ax) __setup_pebs_meminfo_group() argument
2246 u64 sample_type = event->attr.sample_type; setup_pebs_adaptive_sample_data() local
2364 u64 sample_type = event->attr.sample_type; setup_arch_pebs_sample_data() local
[all...]
/linux/arch/x86/events/amd/
H A Dibs.c1093 static void perf_ibs_parse_ld_st_data(__u64 sample_type, in perf_ibs_parse_ld_st_data() argument
1111 if (sample_type & PERF_SAMPLE_DATA_SRC) { in perf_ibs_parse_ld_st_data()
1116 if (sample_type & PERF_SAMPLE_WEIGHT_TYPE && op_data3.dc_miss && in perf_ibs_parse_ld_st_data()
1120 if (sample_type & PERF_SAMPLE_WEIGHT_STRUCT) { in perf_ibs_parse_ld_st_data()
1123 } else if (sample_type & PERF_SAMPLE_WEIGHT) { in perf_ibs_parse_ld_st_data()
1129 if (sample_type & PERF_SAMPLE_ADDR && op_data3.dc_lin_addr_valid) { in perf_ibs_parse_ld_st_data()
1134 if (sample_type & PERF_SAMPLE_PHYS_ADDR && op_data3.dc_phy_addr_valid) { in perf_ibs_parse_ld_st_data()
1143 u64 sample_type = event->attr.sample_type; in perf_ibs_is_mem_sample_type() local
1146 sample_type & (PERF_SAMPLE_DATA_SRC | in perf_ibs_is_mem_sample_type()
1156 if (event->attr.sample_type & PERF_SAMPLE_RAW || in perf_ibs_get_offset_max()
[all …]
/linux/tools/perf/ui/browsers/
H A Dscripts.c41 if (attr->sample_type & PERF_SAMPLE_BRANCH_STACK) in attr_to_script()
43 if (attr->sample_type & PERF_SAMPLE_REGS_INTR) in attr_to_script()
45 if (attr->sample_type & PERF_SAMPLE_REGS_USER) in attr_to_script()
47 if (attr->sample_type & PERF_SAMPLE_PHYS_ADDR) in attr_to_script()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dget_stackid_cannot_attach.c13 .sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_BRANCH_STACK, in test_get_stackid_cannot_attach()
55 attr.sample_type |= PERF_SAMPLE_CALLCHAIN; in test_get_stackid_cannot_attach()
/linux/tools/perf/
H A Dbuiltin-report.c374 u64 sample_type = evlist__combined_sample_type(session->evlist); in report__setup_sample_type() local
383 sample_type |= PERF_SAMPLE_CALLCHAIN; in report__setup_sample_type()
387 sample_type |= PERF_SAMPLE_BRANCH_STACK; in report__setup_sample_type()
389 if (!is_pipe && !(sample_type & PERF_SAMPLE_CALLCHAIN)) { in report__setup_sample_type()
415 if (!(sample_type & PERF_SAMPLE_CALLCHAIN)) { in report__setup_sample_type()
423 !(sample_type & PERF_SAMPLE_BRANCH_STACK)) { in report__setup_sample_type()
438 !(sample_type & PERF_SAMPLE_DATA_SRC)) { in report__setup_sample_type()
439 evsel->core.attr.sample_type |= PERF_SAMPLE_DATA_SRC; in report__setup_sample_type()
440 sample_type |= PERF_SAMPLE_DATA_SRC; in report__setup_sample_type()
444 if (!is_pipe && !(sample_type & PERF_SAMPLE_DATA_SRC)) { in report__setup_sample_type()
[all …]
/linux/kernel/events/
H A Dcore.c1968 return attr->inherit && (attr->sample_type & PERF_SAMPLE_READ); in __perf_event_header_size()
2050 static void __perf_event_header_size(struct perf_event *event, u64 sample_type) in perf_event_validate_size()
2055 if (sample_type & PERF_SAMPLE_IP) in perf_event_validate_size()
2058 if (sample_type & PERF_SAMPLE_ADDR) in perf_event_validate_size()
2061 if (sample_type & PERF_SAMPLE_PERIOD) in perf_event_validate_size()
2064 if (sample_type & PERF_SAMPLE_WEIGHT_TYPE) in perf_event_validate_size()
2067 if (sample_type & PERF_SAMPLE_READ) in perf_event_validate_size()
2070 if (sample_type & PERF_SAMPLE_DATA_SRC) in perf_event_validate_size()
2073 if (sample_type & PERF_SAMPLE_TRANSACTION) in perf_event_validate_size()
2076 if (sample_type in perf_event_validate_size()
1957 __perf_event_header_size(struct perf_event * event,u64 sample_type) __perf_event_header_size() argument
2013 u64 sample_type = event->attr.sample_type; perf_event__id_header_size() local
7704 __perf_event_header__init_id(struct perf_sample_data * data,struct perf_event * event,u64 sample_type) __perf_event_header__init_id() argument
7743 u64 sample_type = data->type; __perf_event__output_id_sample() local
7894 u64 sample_type = data->type; perf_output_sample() local
8252 u64 sample_type = event->attr.sample_type; perf_prepare_sample() local
[all...]
/linux/tools/testing/selftests/powerpc/pmu/sampling_tests/
H A Dintr_regs_no_crash_wo_pmu_test.c40 event.attr.sample_type = PERF_SAMPLE_REGS_INTR; in intr_regs_no_crash_wo_pmu_test()
H A Dbhrb_no_crash_wo_pmu_test.c41 event.attr.sample_type = PERF_SAMPLE_BRANCH_STACK; in bhrb_no_crash_wo_pmu_test()
H A Dmmcra_bhrb_ind_call_test.c40 event.attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; in mmcra_bhrb_ind_call_test()
H A Dmmcra_bhrb_disable_test.c37 event.attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; in mmcra_bhrb_disable_test()
H A Dmmcra_bhrb_any_test.c36 event.attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; in mmcra_bhrb_any_test()
H A Dmmcra_bhrb_cond_test.c40 event.attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; in mmcra_bhrb_cond_test()
/linux/tools/perf/Documentation/
H A Dintel-hybrid.txt91 sample_type IDENTIFIER
104 sample_type IDENTIFIER
143 sample_type IDENTIFIER
157 sample_type IDENTIFIER
/linux/tools/perf/python/
H A Dtwatch.py19 sample_type = perf.SAMPLE_PERIOD | perf.SAMPLE_TID | perf.SAMPLE_CPU)

1234