Home
last modified time | relevance | path

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

12345

/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()
329 pr_debug("%s failed for sample_type %#"PRIx64", error %d\n", in do_test()
330 "perf_event__synthesize_sample", sample_type, er in do_test()
398 u64 sample_type; test__sample_parsing() local
[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.c322 u64 sample_type, val, sid = 0; in off_cpu_write() local
342 sample_type = evsel->core.attr.sample_type; in off_cpu_write()
344 if (sample_type & ~OFFCPU_SAMPLE_TYPES) { in off_cpu_write()
346 (unsigned long long)sample_type); in off_cpu_write()
350 if (sample_type & (PERF_SAMPLE_ID | PERF_SAMPLE_IDENTIFIER)) { in off_cpu_write()
365 if (sample_type & PERF_SAMPLE_IDENTIFIER) in off_cpu_write()
367 if (sample_type & PERF_SAMPLE_IP) in off_cpu_write()
369 if (sample_type & PERF_SAMPLE_TID) in off_cpu_write()
371 if (sample_type 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 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()
1737 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()
787 attr.sample_type |= PERF_SAMPLE_ADDR; in intel_bts_synth_events()
789 id, (u64)attr.sample_type); in intel_bts_synth_events()
797 bts->branches_sample_type = attr.sample_type; in intel_bts_synth_events()
804 __evsel__sample_size(attr.sample_type); in intel_bts_synth_events()
H A Dsession.c71 pr_err("non matching sample_type\n"); in perf_session__open()
508 bswap_field_64(sample_type); in perf_event__attr_swap()
990 u64 sample_type = __evlist__combined_sample_type(evlist); in evlist__print_tstamp() local
998 if ((sample_type & PERF_SAMPLE_CPU)) in evlist__print_tstamp()
1001 if (sample_type & PERF_SAMPLE_TIME) in evlist__print_tstamp()
1071 u64 sample_type; in dump_sample() local
1081 sample_type = evsel->core.attr.sample_type; in dump_sample()
1089 if (sample_type & PERF_SAMPLE_REGS_USER) in dump_sample()
1092 if (sample_type in dump_sample()
1253 u64 sample_type = evsel->core.attr.sample_type; evlist__deliver_sample() local
[all...]
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 in intel_pt_do_synth_pebs_sample()
[all...]
/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/tools/perf/tests/shell/attr/
H A Dtest-record-data7 # sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_TID | PERF_SAMPLE_TIME |
9 sample_type=33039
H A Dtest-record-group19 sample_type=327
17 sample_type=327
H A Dtest-record-group212 sample_type=87
22 sample_type=87
H A Dtest-record-group312 sample_type=87
23 sample_type=87
H A Dtest-record-group-sampling10 sample_type=343
23 sample_type=343
H A Dtest-record-group-sampling116 sample_type=343
38 sample_type=343
H A Dtest-record-group-sampling216 sample_type=87
44 sample_type=87
H A Dtest-record-raw7 sample_type=1415
H A Dtest-record-branch-any7 sample_type=2311
/linux/drivers/cpufreq/
H A Dcpufreq_ondemand.c177 int sample_type = dbs_info->sample_type; in od_dbs_update() local
180 dbs_info->sample_type = OD_NORMAL_SAMPLE; in od_dbs_update()
185 if (sample_type == OD_SUB_SAMPLE && policy_dbs->sample_delay_ns > 0) { in od_dbs_update()
195 dbs_info->sample_type = OD_SUB_SAMPLE; in od_dbs_update()
395 dbs_info->sample_type = OD_NORMAL_SAMPLE; in od_start()
/linux/tools/perf/python/
H A Dtracepoint.py25 # Simplify the sample_type and read_format of evsels
27 ev.sample_type = ev.sample_type & ~perf.SAMPLE_IP
/linux/arch/x86/events/intel/
H A Dds.c1389 u64 sample_type = attr->sample_type; in pebs_update_adaptive_cfg() local
1393 if (!(sample_type & ~(PERF_SAMPLE_IP|PERF_SAMPLE_TIME)) && in pebs_update_adaptive_cfg()
1397 if (sample_type & PERF_PEBS_MEMINFO_TYPE) in pebs_update_adaptive_cfg()
1406 gprs = ((sample_type & PERF_SAMPLE_REGS_INTR) && in pebs_update_adaptive_cfg()
1408 ((sample_type & PERF_SAMPLE_REGS_USER) && in pebs_update_adaptive_cfg()
1411 tsx_weight = (sample_type & PERF_SAMPLE_WEIGHT_TYPE) && in pebs_update_adaptive_cfg()
1418 if ((sample_type & PERF_SAMPLE_REGS_INTR) && in pebs_update_adaptive_cfg()
1422 if (sample_type & PERF_SAMPLE_BRANCH_STACK) { in pebs_update_adaptive_cfg()
1824 u64 sample_type; in setup_pebs_fixed_sample_data() local
2073 u64 sample_type, format_group; setup_pebs_adaptive_sample_data() local
[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.c369 /* For pipe mode, sample_type is not currently set */
373 u64 sample_type = evlist__combined_sample_type(session->evlist); in report__setup_sample_type() local
382 sample_type |= PERF_SAMPLE_CALLCHAIN; in report__setup_sample_type()
386 sample_type |= PERF_SAMPLE_BRANCH_STACK; in report__setup_sample_type()
388 if (!is_pipe && !(sample_type & PERF_SAMPLE_CALLCHAIN)) { in report__setup_sample_type()
414 if (!(sample_type & PERF_SAMPLE_CALLCHAIN)) { in report__setup_sample_type()
422 !(sample_type & PERF_SAMPLE_BRANCH_STACK)) { in report__setup_sample_type()
437 !(sample_type & PERF_SAMPLE_DATA_SRC)) { in report__setup_sample_type()
438 evsel->core.attr.sample_type |= PERF_SAMPLE_DATA_SRC; in report__setup_sample_type()
439 sample_type | in report__setup_sample_type()
1279 u64 sample_type; process_attr() local
[all...]
/linux/arch/s390/kernel/
H A Dperf_pai_ext.c313 a->sample_type |= PERF_SAMPLE_RAW; in paiext_event_init()
492 if (event->attr.sample_type & PERF_SAMPLE_TID) { in paiext_push_sample()
496 if (event->attr.sample_type & PERF_SAMPLE_TIME) in paiext_push_sample()
498 if (event->attr.sample_type & (PERF_SAMPLE_ID | PERF_SAMPLE_IDENTIFIER)) in paiext_push_sample()
500 if (event->attr.sample_type & PERF_SAMPLE_CPU) in paiext_push_sample()
502 if (event->attr.sample_type & PERF_SAMPLE_RAW) { in paiext_push_sample()

12345