| /linux/tools/perf/tests/ |
| H A D | sample-parsing.c | 224 static int do_test(u64 sample_type, u64 sample_regs, u64 read_format) in do_test() 227 .sample_type = sample_type, in do_test() 312 if (sample_type & PERF_SAMPLE_REGS_USER) in do_test() 315 if (sample_type & PERF_SAMPLE_REGS_INTR) in do_test() 318 if (sample_type & PERF_SAMPLE_BRANCH_STACK) in do_test() 344 sz = perf_event__sample_event_size(&sample, sample_type, read_format, in do_test() 358 err = perf_event__synthesize_sample(event, sample_type, read_format, in do_test() 361 pr_debug("%s failed for sample_type %#"PRIx64", error %d\n", in do_test() 362 "perf_event__synthesize_sample", sample_type, er in do_test() 206 do_test(u64 sample_type,u64 sample_regs,u64 read_format) do_test() argument 398 u64 sample_type; test__sample_parsing() local [all...] |
| H A D | dlfilter-test.c | 111 static int write_attr(struct test_data *td, u64 sample_type, u64 *id) in write_attr() argument 117 .sample_type = sample_type, in write_attr() 172 static int write_sample(struct test_data *td, u64 sample_type, u64 id, pid_t pid, pid_t tid) in write_sample() argument 191 event->header.size = perf_event__sample_event_size(&sample, sample_type, in write_sample() 194 err = perf_event__synthesize_sample(event, sample_type, in write_sample() 326 u64 sample_type = TEST_SAMPLE_TYPE; in test__dlfilter_test() 371 err = write_attr(td, sample_type, &id); in test__dlfilter_test() 384 if (write_sample(td, sample_type, id, pid, tid) != TEST_OK) { in test__dlfilter_test() 322 u64 sample_type = TEST_SAMPLE_TYPE; test__dlfilter_test() local
|
| /linux/tools/perf/util/ |
| H A D | bpf_off_cpu.c | 325 u64 sample_type, val, sid = 0; in off_cpu_write() 345 sample_type = evsel->core.attr.sample_type; in off_cpu_write() 347 if (sample_type & ~OFFCPU_SAMPLE_TYPES) { in off_cpu_write() 349 (unsigned long long)sample_type); in off_cpu_write() 353 if (sample_type & (PERF_SAMPLE_ID | PERF_SAMPLE_IDENTIFIER)) { in off_cpu_write() 368 if (sample_type & PERF_SAMPLE_IDENTIFIER) in off_cpu_write() 370 if (sample_type & PERF_SAMPLE_IP) in off_cpu_write() 372 if (sample_type & PERF_SAMPLE_TID) in off_cpu_write() 374 if (sample_type in off_cpu_write() 323 u64 sample_type, val, sid = 0; off_cpu_write() local [all...] |
| H A D | record.c | 86 * 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 D | evsel.c | 159 WRITE_ASS(sample_type, "llu"); in store_event() 317 int __evsel__sample_size(u64 sample_type) in __perf_evsel__calc_is_pos() 319 u64 mask = sample_type & PERF_SAMPLE_MASK; in __perf_evsel__calc_is_pos() 335 * @sample_type: sample type in evsel__calc_id_pos() 341 static int __perf_evsel__calc_id_pos(u64 sample_type) in __evsel__set_sample_bit() 345 if (sample_type & PERF_SAMPLE_IDENTIFIER) in __evsel__set_sample_bit() 348 if (!(sample_type & PERF_SAMPLE_ID)) in __evsel__reset_sample_bit() 351 if (sample_type & PERF_SAMPLE_IP) in __evsel__reset_sample_bit() 354 if (sample_type & PERF_SAMPLE_TID) in __evsel__reset_sample_bit() 357 if (sample_type in __evsel__reset_sample_bit() 256 __evsel__sample_size(u64 sample_type) __evsel__sample_size() argument 280 __perf_evsel__calc_id_pos(u64 sample_type) __perf_evsel__calc_id_pos() argument 313 __perf_evsel__calc_is_pos(u64 sample_type) __perf_evsel__calc_is_pos() argument 3636 u64 sample_type = evsel->core.attr.sample_type; evsel__id_hdr_size() local [all...] |
| H A D | cs-etm.c | 1404 if (packet->sample_type == CS_ETM_DISCONTINUITY || in cs_etm__update_last_branch_rb() 1405 packet->sample_type == CS_ETM_EXCEPTION) in cs_etm__update_last_branch_rb() 1415 if (packet->sample_type == CS_ETM_DISCONTINUITY) in cs_etm__update_last_branch_rb() 1568 if (packet->sample_type == CS_ETM_DISCONTINUITY) { in cs_etm__synth_instruction_sample() 1603 if (packet->sample_type == CS_ETM_RANGE && in cs_etm__synth_instruction_sample() 1827 attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK; in cs_etm__sample() 1828 attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | in cs_etm__sample() 1831 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; in cs_etm__sample() 1833 attr.sample_type | in cs_etm__sample() [all...] |
| H A D | intel-bts.c | 768 attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK; in intel_bts_synth_events() 769 attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | in intel_bts_synth_events() 771 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; in intel_bts_synth_events() 772 attr.sample_type &= ~(u64)PERF_SAMPLE_CPU; in intel_bts_synth_events() 786 attr.sample_type |= PERF_SAMPLE_ADDR; in intel_bts_synth_events() 788 id, (u64)attr.sample_type); in intel_bts_synth_events() 796 bts->branches_sample_type = attr.sample_type; in intel_bts_synth_events() 803 __evsel__sample_size(attr.sample_type); in intel_bts_synth_events()
|
| H A D | session.c | 77 pr_err("non matching sample_type\n"); in perf_session__open() 625 bswap_field_64(sample_type); in perf_event__cpu_map_swap() 1599 u64 sample_type = __evlist__combined_sample_type(evlist); in perf_session__process_user_event() 1607 if ((sample_type & PERF_SAMPLE_CPU)) in perf_session__process_user_event() 1610 if (sample_type & PERF_SAMPLE_TIME) in perf_session__process_user_event() 1681 u64 sample_type; in perf_session__process_user_event() 1689 sample_type = evsel->core.attr.sample_type; in perf_session__process_user_event() 1691 if (sample_type & (PERF_SAMPLE_REGS_USER | PERF_SAMPLE_REGS_INTR)) { in perf_session__process_user_event() 1707 if (sample_type in perf_session__deliver_synth_event() 1035 u64 sample_type = __evlist__combined_sample_type(evlist); evlist__print_tstamp() local 1116 u64 sample_type; dump_sample() local 1319 u64 sample_type = evsel->core.attr.sample_type; evlist__deliver_sample() local [all...] |
| H A D | intel-pt.c | 1121 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() 2444 u64 sample_type = evsel->core.attr.sample_type; in intel_pt_do_synth_pebs_sample() 2475 if (sample_type & PERF_SAMPLE_TIME) { in intel_pt_do_synth_pebs_sample() 2486 if (sample_type & PERF_SAMPLE_CALLCHAIN && in intel_pt_do_synth_pebs_sample() 2494 if (sample_type & PERF_SAMPLE_REGS_INTR && in intel_pt_do_synth_pebs_sample() 2511 if ((sample_type | evse in intel_pt_do_synth_pebs_sample() 2422 u64 sample_type = evsel->core.attr.sample_type; intel_pt_do_synth_pebs_sample() local [all...] |
| H A D | jitdump.c | 45 uint64_t sample_type; 565 * sample_type, so they cannot be written through a fixed struct: in jit_repipe_code_move() 571 if (jd->sample_type & PERF_SAMPLE_TID) { in jit_repipe_code_move() 578 if (jd->sample_type & PERF_SAMPLE_TIME) { in jit_repipe_code_move() 692 * sample_type, so they cannot be written through a fixed struct: in jit_repipe_unwinding_info() 698 if (jd->sample_type & PERF_SAMPLE_TID) { in jit_repipe_unwinding_info() 705 if (jd->sample_type & PERF_SAMPLE_TIME) { in jit_process_dump() 1020 * track sample_type to compute id_all layout 1024 jd.sample_type = first->core.attr.sample_type; 42 uint64_t sample_type; global() member [all...] |
| H A D | arm-spe.c | 74 u64 sample_type; member 525 ret = arm_spe__inject_event(spe, event, sample, spe->sample_type); in arm_spe__synth_branch_sample() 1341 if ((evsel->core.attr.sample_type & PERF_SAMPLE_TIME)) in arm_spe_process_queues() 1780 attr.sample_type = evsel->core.attr.sample_type & in arm_spe_synth_events() 1782 attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | in arm_spe_synth_events() 1786 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; in arm_spe_synth_events() 1788 attr.sample_type |= PERF_SAMPLE_TIME; in arm_spe_synth_events() 1790 spe->sample_type = attr.sample_type; in arm_spe_synth_events() [all...] |
| /linux/arch/x86/events/ |
| H A D | perf_event.h | 150 static inline bool __event_needs_xmm(struct perf_event *event, u64 sample_type) in __event_needs_xmm() argument 156 if ((sample_type & PERF_SAMPLE_REGS_USER) && in __event_needs_xmm() 157 (event->attr.sample_type & PERF_SAMPLE_REGS_USER) && in __event_needs_xmm() 161 if ((sample_type & PERF_SAMPLE_REGS_INTR) && in __event_needs_xmm() 162 (event->attr.sample_type & PERF_SAMPLE_REGS_INTR) && in __event_needs_xmm() 166 if ((sample_type & PERF_SAMPLE_REGS_USER) && in __event_needs_xmm() 167 (event->attr.sample_type & PERF_SAMPLE_REGS_USER) && in __event_needs_xmm() 171 if ((sample_type & PERF_SAMPLE_REGS_INTR) && in __event_needs_xmm() 172 (event->attr.sample_type & PERF_SAMPLE_REGS_INTR) && in __event_needs_xmm() 186 static inline bool __event_needs_ymm(struct perf_event *event, u64 sample_type) in __event_needs_ymm() argument [all …]
|
| H A D | core.c | 678 if (((event->attr.sample_type & PERF_SAMPLE_REGS_INTR) && in event_simd_regs_validate() 680 ((event->attr.sample_type & PERF_SAMPLE_REGS_USER) && in event_simd_regs_validate() 778 if (event->attr.sample_type & (PERF_SAMPLE_REGS_INTR | PERF_SAMPLE_REGS_USER)) { in x86_pmu_hw_config() 2066 static u64 get_simd_sample_mask(struct perf_event *event, u64 sample_type) in get_simd_sample_mask() argument 2070 if (__event_needs_xmm(event, sample_type)) in get_simd_sample_mask() 2072 if (__event_needs_ymm(event, sample_type)) in get_simd_sample_mask() 2074 if (__event_needs_low16_zmm(event, sample_type)) in get_simd_sample_mask() 2076 if (__event_needs_high16_zmm(event, sample_type)) in get_simd_sample_mask() 2078 if (__event_needs_opmask(event, sample_type)) in get_simd_sample_mask() 2080 if (__event_needs_egprs(event, sample_type)) in get_simd_sample_mask() 2094 u64 sample_type = event->attr.sample_type; x86_pmu_sample_xregs() local 2138 u64 sample_type = event->attr.sample_type; x86_pmu_update_perf_regs() local [all...] |
| /linux/samples/bpf/ |
| H A D | tracex6_user.c | 108 .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 D | ds.c | 1704 u64 sample_type = attr->sample_type; in pebs_update_adaptive_cfg() local 1709 if (!(sample_type & ~(PERF_SAMPLE_IP|PERF_SAMPLE_TIME)) && in pebs_update_adaptive_cfg() 1713 if (sample_type & PERF_PEBS_MEMINFO_TYPE) in pebs_update_adaptive_cfg() 1725 gprs = ((sample_type & PERF_SAMPLE_REGS_INTR) && in pebs_update_adaptive_cfg() 1727 ((sample_type & PERF_SAMPLE_REGS_USER) && in pebs_update_adaptive_cfg() 1730 tsx_weight = (sample_type & PERF_SAMPLE_WEIGHT_TYPE) && in pebs_update_adaptive_cfg() 1737 if (sample_type & (PERF_SAMPLE_REGS_INTR | PERF_SAMPLE_REGS_USER)) { in pebs_update_adaptive_cfg() 1752 if (sample_type & PERF_SAMPLE_BRANCH_STACK) { in pebs_update_adaptive_cfg() 2189 u64 sample_type; in setup_pebs_fixed_sample_data() local 2195 sample_type = event->attr.sample_type; in setup_pebs_fixed_sample_data() [all …]
|
| /linux/drivers/cpufreq/ |
| H A D | cpufreq_ondemand.c | 154 int sample_type = dbs_info->sample_type; in od_dbs_update() local 157 dbs_info->sample_type = OD_NORMAL_SAMPLE; in od_dbs_update() 162 if (sample_type == OD_SUB_SAMPLE && policy_dbs->sample_delay_ns > 0) { in od_dbs_update() 172 dbs_info->sample_type = OD_SUB_SAMPLE; in od_dbs_update() 367 dbs_info->sample_type = OD_NORMAL_SAMPLE; in od_start()
|
| /linux/tools/perf/ui/browsers/ |
| H A D | scripts.c | 48 if (attr->sample_type & PERF_SAMPLE_BRANCH_STACK) in attr_to_script() 50 if (attr->sample_type & PERF_SAMPLE_REGS_INTR) 52 if (attr->sample_type & PERF_SAMPLE_REGS_USER) in add_script_option() 54 if (attr->sample_type & PERF_SAMPLE_PHYS_ADDR) in add_script_option()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | get_stackid_cannot_attach.c | 13 .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 D | builtin-report.c | 368 /* For pipe mode, sample_type is not currently set */ in process_read_event() 372 u64 sample_type = evlist__combined_sample_type(session->evlist); in report__setup_sample_type() 381 sample_type |= PERF_SAMPLE_CALLCHAIN; in report__setup_sample_type() 385 sample_type |= PERF_SAMPLE_BRANCH_STACK; in report__setup_sample_type() 387 if (!is_pipe && !(sample_type & PERF_SAMPLE_CALLCHAIN)) { in report__setup_sample_type() 413 if (!(sample_type & PERF_SAMPLE_CALLCHAIN)) { in report__setup_sample_type() 421 !(sample_type & PERF_SAMPLE_BRANCH_STACK)) { in report__setup_sample_type() 436 !(sample_type & PERF_SAMPLE_DATA_SRC)) { in report__setup_sample_type() 437 evsel->core.attr.sample_type |= PERF_SAMPLE_DATA_SRC; in report__setup_sample_type() 438 sample_type | in report__setup_sample_type() 374 u64 sample_type = evlist__combined_sample_type(session->evlist); report__setup_sample_type() local 1286 u64 sample_type; process_attr() local [all...] |
| /linux/kernel/events/ |
| H A D | core.c | 1979 return attr->inherit && (attr->sample_type & PERF_SAMPLE_READ); in list_add_event() 2061 static void __perf_event_header_size(struct perf_event *event, u64 sample_type) in __perf_event_header_size() 2066 if (sample_type & PERF_SAMPLE_IP) in __perf_event_header_size() 2069 if (sample_type & PERF_SAMPLE_ADDR) in __perf_event_header_size() 2072 if (sample_type & PERF_SAMPLE_PERIOD) in __perf_event_header_size() 2075 if (sample_type & PERF_SAMPLE_WEIGHT_TYPE) in __perf_event_header_size() 2078 if (sample_type & PERF_SAMPLE_READ) in __perf_event_header_size() 2081 if (sample_type & PERF_SAMPLE_DATA_SRC) in __perf_event_header_size() 2084 if (sample_type & PERF_SAMPLE_TRANSACTION) in __perf_event_header_size() 2087 if (sample_type in __perf_event_header_size() 2051 __perf_event_header_size(struct perf_event * event,u64 sample_type) __perf_event_header_size() argument 2107 u64 sample_type = event->attr.sample_type; perf_event__id_header_size() local 8180 __perf_event_header__init_id(struct perf_sample_data * data,struct perf_event * event,u64 sample_type) __perf_event_header__init_id() argument 8224 u64 sample_type = data->type; __perf_event__output_id_sample() local 8373 u64 sample_type = data->type; perf_output_sample() local 8768 u64 sample_type = event->attr.sample_type; perf_prepare_sample() local [all...] |
| /linux/tools/perf/Documentation/ |
| H A D | intel-hybrid.txt | 91 sample_type IDENTIFIER 104 sample_type IDENTIFIER 143 sample_type IDENTIFIER 157 sample_type IDENTIFIER
|
| /linux/tools/testing/selftests/powerpc/pmu/sampling_tests/ |
| H A D | intr_regs_no_crash_wo_pmu_test.c | 40 event.attr.sample_type = PERF_SAMPLE_REGS_INTR; in intr_regs_no_crash_wo_pmu_test()
|
| H A D | bhrb_no_crash_wo_pmu_test.c | 41 event.attr.sample_type = PERF_SAMPLE_BRANCH_STACK; in bhrb_no_crash_wo_pmu_test()
|
| /linux/sound/pci/mixart/ |
| H A D | mixart.c | 524 stream_param.sample_type = ST_INTEGER_8; in mixart_set_format() 528 stream_param.sample_type = ST_INTEGER_16LE; in mixart_set_format() 532 stream_param.sample_type = ST_INTEGER_16BE; in mixart_set_format() 536 stream_param.sample_type = ST_INTEGER_24LE; in mixart_set_format() 540 stream_param.sample_type = ST_INTEGER_24BE; in mixart_set_format() 544 stream_param.sample_type = ST_FLOATING_POINT_32LE; in mixart_set_format() 548 stream_param.sample_type = ST_FLOATING_POINT_32BE; in mixart_set_format() 558 "set SNDRV_PCM_FORMAT sample_type(%d) sample_size(%d) freq(%d) channels(%d)\n", in mixart_set_format() 559 stream_param.sample_type, stream_param.sample_size, stream_param.sampling_freq, stream->channels); in mixart_set_format()
|
| /linux/arch/s390/kernel/ |
| H A D | perf_pai.c | 447 a->sample_type |= PERF_SAMPLE_RAW; in pai_event_init() 676 if (event->attr.sample_type & PERF_SAMPLE_TID) { in pai_push_sample() 680 if (event->attr.sample_type & PERF_SAMPLE_TIME) in pai_push_sample() 682 if (event->attr.sample_type & (PERF_SAMPLE_ID | PERF_SAMPLE_IDENTIFIER)) in pai_push_sample() 684 if (event->attr.sample_type & PERF_SAMPLE_CPU) { in pai_push_sample() 688 if (event->attr.sample_type & PERF_SAMPLE_RAW) { in pai_push_sample()
|