/linux-4.4.14/tools/perf/tests/ |
D | sample-parsing.c | 145 static int do_test(u64 sample_type, u64 sample_regs, u64 read_format) in do_test() argument 150 .sample_type = sample_type, in do_test() 213 if (sample_type & PERF_SAMPLE_REGS_USER) in do_test() 216 if (sample_type & PERF_SAMPLE_REGS_INTR) in do_test() 230 sz = perf_event__sample_event_size(&sample, sample_type, read_format); in do_test() 243 err = perf_event__synthesize_sample(event, sample_type, read_format, in do_test() 247 "perf_event__synthesize_sample", sample_type, err); in do_test() 262 evsel.sample_size = __perf_evsel__sample_size(sample_type); in do_test() 267 "perf_evsel__parse_sample", sample_type, err); in do_test() 271 if (!samples_same(&sample, &sample_out, sample_type, read_format)) { in do_test() [all …]
|
D | bp_signal_overflow.c | 88 pe.sample_type = PERF_SAMPLE_IP; in test__bp_signal_overflow()
|
D | sw-clock.c | 32 .sample_type = PERF_SAMPLE_PERIOD, in __test__sw_clock_freq()
|
D | bp_signal.c | 75 pe.sample_type = PERF_SAMPLE_IP; in bp_event()
|
D | attr.c | 94 WRITE_ASS(sample_type, "llu"); in store_event()
|
D | parse-events.c | 23 PERF_TP_SAMPLE_TYPE == evsel->attr.sample_type); in test__checkevent_tracepoint() 39 PERF_TP_SAMPLE_TYPE == evsel->attr.sample_type); in test__checkevent_tracepoint_multi() 442 PERF_TP_SAMPLE_TYPE == evsel->attr.sample_type); in test__checkevent_list() 496 TEST_ASSERT_VAL("wrong callgraph", !(PERF_SAMPLE_CALLCHAIN & evsel->attr.sample_type)); in test__checkevent_pmu_partial_time_callgraph() 497 TEST_ASSERT_VAL("wrong time", !(PERF_SAMPLE_TIME & evsel->attr.sample_type)); in test__checkevent_pmu_partial_time_callgraph() 509 TEST_ASSERT_VAL("wrong callgraph", !(PERF_SAMPLE_CALLCHAIN & evsel->attr.sample_type)); in test__checkevent_pmu_partial_time_callgraph() 510 TEST_ASSERT_VAL("wrong time", !(PERF_SAMPLE_TIME & evsel->attr.sample_type)); in test__checkevent_pmu_partial_time_callgraph() 713 PERF_TP_SAMPLE_TYPE == evsel->attr.sample_type); in test__group3()
|
/linux-4.4.14/tools/perf/tests/attr/ |
D | test-record-data | 8 # sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_TID | PERF_SAMPLE_TIME | 10 sample_type=33039
|
D | test-record-group | 8 sample_type=327 15 sample_type=327
|
D | test-record-group1 | 8 sample_type=327 16 sample_type=327
|
D | test-record-group-sampling | 8 sample_type=343 21 sample_type=343
|
D | test-record-graph-default | 6 sample_type=295
|
D | test-record-no-inherit | 6 sample_type=263
|
D | test-record-raw | 7 sample_type=1415
|
D | test-record-branch-any | 7 sample_type=2311
|
D | test-record-graph-fp | 6 sample_type=295
|
D | test-record-count | 7 sample_type=7
|
D | test-record-branch-filter-hv | 7 sample_type=2311
|
D | test-record-branch-filter-u | 7 sample_type=2311
|
D | test-record-branch-filter-k | 7 sample_type=2311
|
D | test-record-branch-filter-ind_call | 7 sample_type=2311
|
D | test-record-branch-filter-any | 7 sample_type=2311
|
D | test-record-branch-filter-any_ret | 7 sample_type=2311
|
D | test-record-branch-filter-any_call | 7 sample_type=2311
|
D | test-record-no-delay | 7 sample_type=263
|
D | test-record-graph-dwarf | 6 sample_type=12583
|
D | test-record-C0 | 13 sample_type=391
|
D | base-stat | 11 sample_type=0
|
D | base-record | 11 sample_type=263
|
/linux-4.4.14/tools/perf/util/ |
D | evsel.c | 87 int __perf_evsel__sample_size(u64 sample_type) in __perf_evsel__sample_size() argument 89 u64 mask = sample_type & PERF_SAMPLE_MASK; in __perf_evsel__sample_size() 111 static int __perf_evsel__calc_id_pos(u64 sample_type) in __perf_evsel__calc_id_pos() argument 115 if (sample_type & PERF_SAMPLE_IDENTIFIER) in __perf_evsel__calc_id_pos() 118 if (!(sample_type & PERF_SAMPLE_ID)) in __perf_evsel__calc_id_pos() 121 if (sample_type & PERF_SAMPLE_IP) in __perf_evsel__calc_id_pos() 124 if (sample_type & PERF_SAMPLE_TID) in __perf_evsel__calc_id_pos() 127 if (sample_type & PERF_SAMPLE_TIME) in __perf_evsel__calc_id_pos() 130 if (sample_type & PERF_SAMPLE_ADDR) in __perf_evsel__calc_id_pos() 144 static int __perf_evsel__calc_is_pos(u64 sample_type) in __perf_evsel__calc_is_pos() argument [all …]
|
D | record.c | 80 evsel->attr.sample_type |= PERF_SAMPLE_IDENTIFIER; in perf_probe_sample_identifier() 169 if (evsel->attr.sample_type == first->attr.sample_type) in perf_evlist__config()
|
D | session.c | 536 bswap_field_64(sample_type); in perf_event__attr_swap() 850 u64 sample_type = __perf_evlist__combined_sample_type(evlist); in perf_evlist__print_tstamp() local 858 if ((sample_type & PERF_SAMPLE_CPU)) in perf_evlist__print_tstamp() 861 if (sample_type & PERF_SAMPLE_TIME) in perf_evlist__print_tstamp() 916 u64 sample_type; in dump_sample() local 925 sample_type = evsel->attr.sample_type; in dump_sample() 927 if (sample_type & PERF_SAMPLE_CALLCHAIN) in dump_sample() 930 if ((sample_type & PERF_SAMPLE_BRANCH_STACK) && !has_branch_callstack(evsel)) in dump_sample() 933 if (sample_type & PERF_SAMPLE_REGS_USER) in dump_sample() 936 if (sample_type & PERF_SAMPLE_REGS_INTR) in dump_sample() [all …]
|
D | intel-bts.c | 789 attr.sample_type = evsel->attr.sample_type & PERF_SAMPLE_MASK; in intel_bts_synth_events() 790 attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | in intel_bts_synth_events() 792 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; in intel_bts_synth_events() 793 attr.sample_type &= ~(u64)PERF_SAMPLE_CPU; in intel_bts_synth_events() 809 attr.sample_type |= PERF_SAMPLE_ADDR; in intel_bts_synth_events() 811 id, (u64)attr.sample_type); in intel_bts_synth_events() 819 bts->branches_sample_type = attr.sample_type; in intel_bts_synth_events() 826 __perf_evsel__sample_size(attr.sample_type); in intel_bts_synth_events()
|
D | intel-pt.c | 610 if (!(evsel->attr.sample_type & PERF_SAMPLE_TIME)) in intel_pt_timeless_decoding() 1847 attr.sample_type = evsel->attr.sample_type & PERF_SAMPLE_MASK; in intel_pt_synth_events() 1848 attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID | in intel_pt_synth_events() 1851 attr.sample_type &= ~(u64)PERF_SAMPLE_TIME; in intel_pt_synth_events() 1853 attr.sample_type |= PERF_SAMPLE_TIME; in intel_pt_synth_events() 1855 attr.sample_type &= ~(u64)PERF_SAMPLE_CPU; in intel_pt_synth_events() 1877 attr.sample_type |= PERF_SAMPLE_CALLCHAIN; in intel_pt_synth_events() 1879 attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; in intel_pt_synth_events() 1881 id, (u64)attr.sample_type); in intel_pt_synth_events() 1889 pt->instructions_sample_type = attr.sample_type; in intel_pt_synth_events() [all …]
|
D | evlist.c | 1323 evlist->combined_sample_type |= evsel->attr.sample_type; in __perf_evlist__combined_sample_type() 1348 u64 sample_type = first->attr.sample_type; in perf_evlist__valid_read_format() local 1356 if ((sample_type & PERF_SAMPLE_READ) && in perf_evlist__valid_read_format() 1374 u64 sample_type; in perf_evlist__id_hdr_size() local 1380 sample_type = first->attr.sample_type; in perf_evlist__id_hdr_size() 1382 if (sample_type & PERF_SAMPLE_TID) in perf_evlist__id_hdr_size() 1385 if (sample_type & PERF_SAMPLE_TIME) in perf_evlist__id_hdr_size() 1388 if (sample_type & PERF_SAMPLE_ID) in perf_evlist__id_hdr_size() 1391 if (sample_type & PERF_SAMPLE_STREAM_ID) in perf_evlist__id_hdr_size() 1394 if (sample_type & PERF_SAMPLE_CPU) in perf_evlist__id_hdr_size() [all …]
|
D | data-convert-bt.c | 359 u64 type = evsel->attr.sample_type; in add_generic_values() 530 if (evsel->attr.sample_type & PERF_SAMPLE_CPU) in get_sample_cpu() 749 u64 type = evsel->attr.sample_type; in add_generic_types()
|
D | evsel.h | 186 int __perf_evsel__sample_size(u64 sample_type);
|
D | db-export.c | 332 if ((evsel->attr.sample_type & PERF_SAMPLE_ADDR) && in db_export__sample()
|
D | python.c | 559 .sample_type = PERF_SAMPLE_PERIOD | PERF_SAMPLE_TID, in pyrf_evsel__init() 618 &sample_period, &attr.sample_type, in pyrf_evsel__init()
|
D | machine.c | 1884 if (!((evsel->attr.sample_type & PERF_SAMPLE_REGS_USER) && in thread__resolve_callchain() 1885 (evsel->attr.sample_type & PERF_SAMPLE_STACK_USER))) in thread__resolve_callchain()
|
D | hist.c | 1168 use_callchain = evsel->attr.sample_type & PERF_SAMPLE_CALLCHAIN; in hists__output_resort()
|
/linux-4.4.14/tools/perf/ |
D | builtin-report.c | 221 u64 sample_type = perf_evlist__combined_sample_type(session->evlist); in report__setup_sample_type() local 228 sample_type |= PERF_SAMPLE_CALLCHAIN; in report__setup_sample_type() 231 sample_type |= PERF_SAMPLE_BRANCH_STACK; in report__setup_sample_type() 233 if (!is_pipe && !(sample_type & PERF_SAMPLE_CALLCHAIN)) { in report__setup_sample_type() 258 if (!(sample_type & PERF_SAMPLE_CALLCHAIN)) { in report__setup_sample_type() 266 !(sample_type & PERF_SAMPLE_BRANCH_STACK)) { in report__setup_sample_type() 274 if ((sample_type & PERF_SAMPLE_REGS_USER) && in report__setup_sample_type() 275 (sample_type & PERF_SAMPLE_STACK_USER)) in report__setup_sample_type() 277 else if (sample_type & PERF_SAMPLE_BRANCH_STACK) in report__setup_sample_type()
|
D | builtin-inject.c | 465 perf_event__synthesize_sample(event_sw, evsel->attr.sample_type, in perf_inject__sched_stat() 478 u64 sample_type, const char *sample_msg) in perf_evsel__check_stype() argument 483 if (!(attr->sample_type & sample_type)) { in perf_evsel__check_stype() 539 if ((evsel->attr.sample_type & COMPAT_MASK) == in ok_to_remove() 540 (evsel_to_remove->attr.sample_type & COMPAT_MASK)) in ok_to_remove()
|
D | builtin-script.c | 162 u64 sample_type, const char *sample_msg, in perf_evsel__do_check_stype() argument 170 if (attr->sample_type & sample_type) in perf_evsel__do_check_stype() 194 u64 sample_type, const char *sample_msg, in perf_evsel__check_stype() argument 197 return perf_evsel__do_check_stype(evsel, sample_type, sample_msg, field, in perf_evsel__check_stype() 334 if (evsel->attr.sample_type & PERF_SAMPLE_CALLCHAIN) { in perf_session__check_output_opt() 358 if (attr->sample_type & PERF_SAMPLE_CALLCHAIN) { in perf_session__check_output_opt() 560 ((evsel->attr.sample_type & PERF_SAMPLE_ADDR) && in print_sample_bts() 769 if (evsel->attr.sample_type) in process_attr() 1685 u64 sample_type = perf_evlist__combined_sample_type(session->evlist); in script__setup_sample_type() local 1688 if ((sample_type & PERF_SAMPLE_REGS_USER) && in script__setup_sample_type() [all …]
|
D | builtin-timechart.c | 562 if (evsel->attr.sample_type & PERF_SAMPLE_TIME) { in process_sample_event()
|
/linux-4.4.14/kernel/events/ |
D | core.c | 1281 static void __perf_event_header_size(struct perf_event *event, u64 sample_type) in __perf_event_header_size() argument 1286 if (sample_type & PERF_SAMPLE_IP) in __perf_event_header_size() 1289 if (sample_type & PERF_SAMPLE_ADDR) in __perf_event_header_size() 1292 if (sample_type & PERF_SAMPLE_PERIOD) in __perf_event_header_size() 1295 if (sample_type & PERF_SAMPLE_WEIGHT) in __perf_event_header_size() 1298 if (sample_type & PERF_SAMPLE_READ) in __perf_event_header_size() 1301 if (sample_type & PERF_SAMPLE_DATA_SRC) in __perf_event_header_size() 1304 if (sample_type & PERF_SAMPLE_TRANSACTION) in __perf_event_header_size() 1318 __perf_event_header_size(event, event->attr.sample_type); in perf_event__header_size() 1324 u64 sample_type = event->attr.sample_type; in perf_event__id_header_size() local [all …]
|
/linux-4.4.14/drivers/cpufreq/ |
D | cpufreq_ondemand.c | 202 int delay = 0, sample_type = dbs_info->sample_type; in od_dbs_timer() local 208 dbs_info->sample_type = OD_NORMAL_SAMPLE; in od_dbs_timer() 209 if (sample_type == OD_SUB_SAMPLE) { in od_dbs_timer() 217 dbs_info->sample_type = OD_SUB_SAMPLE; in od_dbs_timer()
|
D | cpufreq_governor.h | 166 unsigned int sample_type:1; member
|
D | cpufreq_governor.c | 472 od_dbs_info->sample_type = OD_NORMAL_SAMPLE; in cpufreq_governor_start()
|
/linux-4.4.14/arch/x86/kernel/cpu/ |
D | perf_event_intel_ds.c | 995 u64 sample_type; in setup_pebs_sample_data() local 1002 sample_type = event->attr.sample_type; in setup_pebs_sample_data() 1003 dsrc = sample_type & PERF_SAMPLE_DATA_SRC; in setup_pebs_sample_data() 1015 if (fll && (sample_type & PERF_SAMPLE_WEIGHT)) in setup_pebs_sample_data() 1048 if (sample_type & PERF_SAMPLE_REGS_INTR) { in setup_pebs_sample_data() 1079 if ((sample_type & PERF_SAMPLE_ADDR) && in setup_pebs_sample_data() 1085 if ((sample_type & PERF_SAMPLE_WEIGHT) && !fll) in setup_pebs_sample_data() 1088 if (sample_type & PERF_SAMPLE_TRANSACTION) in setup_pebs_sample_data()
|
D | perf_event_amd_ibs.c | 555 if (event->attr.sample_type & PERF_SAMPLE_RAW) in perf_ibs_handle_irq() 568 if (event->attr.sample_type & PERF_SAMPLE_RAW) { in perf_ibs_handle_irq() 593 if (event->attr.sample_type & PERF_SAMPLE_RAW) { in perf_ibs_handle_irq()
|
D | perf_event_intel.c | 2518 if (!(event->attr.sample_type & in intel_pmu_hw_config()
|
/linux-4.4.14/tools/perf/python/ |
D | twatch.py | 26 sample_type = perf.SAMPLE_PERIOD | perf.SAMPLE_TID | perf.SAMPLE_CPU)
|
/linux-4.4.14/samples/bpf/ |
D | tracex6_user.c | 28 .sample_type = 0, in test_bpf_perf_event()
|
D | trace_output_user.c | 156 .sample_type = PERF_SAMPLE_RAW, in test_bpf_perf_event()
|
D | bpf_load.c | 58 attr.sample_type = PERF_SAMPLE_RAW; in load_and_attach()
|
/linux-4.4.14/sound/pci/mixart/ |
D | mixart.c | 537 stream_param.sample_type = ST_INTEGER_8; in mixart_set_format() 541 stream_param.sample_type = ST_INTEGER_16LE; in mixart_set_format() 545 stream_param.sample_type = ST_INTEGER_16BE; in mixart_set_format() 549 stream_param.sample_type = ST_INTEGER_24LE; in mixart_set_format() 553 stream_param.sample_type = ST_INTEGER_24BE; in mixart_set_format() 557 stream_param.sample_type = ST_FLOATING_POINT_32LE; in mixart_set_format() 561 stream_param.sample_type = ST_FLOATING_POINT_32BE; in mixart_set_format() 572 … stream_param.sample_type, stream_param.sample_size, stream_param.sampling_freq, stream->channels); in mixart_set_format()
|
D | mixart_core.h | 369 u32 sample_type; /* use enum mixart_sample_type */ member
|
/linux-4.4.14/include/linux/i2c/ |
D | twl4030-madc.h | 64 enum sample_type { enum
|
/linux-4.4.14/tools/perf/arch/x86/tests/ |
D | intel-cqm.c | 76 pe.sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_READ; in test__intel_cqm_count_nmi_context()
|
/linux-4.4.14/kernel/trace/ |
D | trace_event_perf.c | 62 if (p_event->attr.sample_type & PERF_SAMPLE_STACK_USER) in perf_trace_event_perm() 67 if (!(p_event->attr.sample_type & PERF_SAMPLE_RAW)) in perf_trace_event_perm()
|
/linux-4.4.14/sound/soc/intel/skylake/ |
D | skl-topology.h | 99 u8 sample_type; member
|
/linux-4.4.14/include/uapi/linux/ |
D | perf_event.h | 296 __u64 sample_type; member
|
/linux-4.4.14/arch/powerpc/perf/ |
D | core-book3s.c | 528 event->attr.sample_type || in ebb_event_check() 2002 if (event->attr.sample_type & PERF_SAMPLE_ADDR) in record_and_restart() 2005 if (event->attr.sample_type & PERF_SAMPLE_BRANCH_STACK) { in record_and_restart()
|
/linux-4.4.14/tools/perf/Documentation/ |
D | intel-pt.txt | 198 sample_type IP|TID|TIME|CPU|IDENTIFIER 577 sample_type IP|TID|TIME|CPU|IDENTIFIER 596 sample_type IP|TID|TIME|CPU|PERIOD|RAW|IDENTIFIER 612 sample_type IP|TID|TIME|IDENTIFIER
|
/linux-4.4.14/include/linux/ |
D | perf_event.h | 1022 return event->attr.sample_type & PERF_SAMPLE_BRANCH_STACK; in has_branch_stack()
|