Home
last modified time | relevance | path

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

/linux-4.4.14/tools/perf/tests/
Dsample-parsing.c145 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 …]
Dbp_signal_overflow.c88 pe.sample_type = PERF_SAMPLE_IP; in test__bp_signal_overflow()
Dsw-clock.c32 .sample_type = PERF_SAMPLE_PERIOD, in __test__sw_clock_freq()
Dbp_signal.c75 pe.sample_type = PERF_SAMPLE_IP; in bp_event()
Dattr.c94 WRITE_ASS(sample_type, "llu"); in store_event()
Dparse-events.c23 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/
Dtest-record-data8 # sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_TID | PERF_SAMPLE_TIME |
10 sample_type=33039
Dtest-record-group8 sample_type=327
15 sample_type=327
Dtest-record-group18 sample_type=327
16 sample_type=327
Dtest-record-group-sampling8 sample_type=343
21 sample_type=343
Dtest-record-graph-default6 sample_type=295
Dtest-record-no-inherit6 sample_type=263
Dtest-record-raw7 sample_type=1415
Dtest-record-branch-any7 sample_type=2311
Dtest-record-graph-fp6 sample_type=295
Dtest-record-count7 sample_type=7
Dtest-record-branch-filter-hv7 sample_type=2311
Dtest-record-branch-filter-u7 sample_type=2311
Dtest-record-branch-filter-k7 sample_type=2311
Dtest-record-branch-filter-ind_call7 sample_type=2311
Dtest-record-branch-filter-any7 sample_type=2311
Dtest-record-branch-filter-any_ret7 sample_type=2311
Dtest-record-branch-filter-any_call7 sample_type=2311
Dtest-record-no-delay7 sample_type=263
Dtest-record-graph-dwarf6 sample_type=12583
Dtest-record-C013 sample_type=391
Dbase-stat11 sample_type=0
Dbase-record11 sample_type=263
/linux-4.4.14/tools/perf/util/
Devsel.c87 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 …]
Drecord.c80 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()
Dsession.c536 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 …]
Dintel-bts.c789 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()
Dintel-pt.c610 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 …]
Devlist.c1323 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 …]
Ddata-convert-bt.c359 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()
Devsel.h186 int __perf_evsel__sample_size(u64 sample_type);
Ddb-export.c332 if ((evsel->attr.sample_type & PERF_SAMPLE_ADDR) && in db_export__sample()
Dpython.c559 .sample_type = PERF_SAMPLE_PERIOD | PERF_SAMPLE_TID, in pyrf_evsel__init()
618 &sample_period, &attr.sample_type, in pyrf_evsel__init()
Dmachine.c1884 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()
Dhist.c1168 use_callchain = evsel->attr.sample_type & PERF_SAMPLE_CALLCHAIN; in hists__output_resort()
/linux-4.4.14/tools/perf/
Dbuiltin-report.c221 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()
Dbuiltin-inject.c465 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()
Dbuiltin-script.c162 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 …]
Dbuiltin-timechart.c562 if (evsel->attr.sample_type & PERF_SAMPLE_TIME) { in process_sample_event()
/linux-4.4.14/kernel/events/
Dcore.c1281 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/
Dcpufreq_ondemand.c202 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()
Dcpufreq_governor.h166 unsigned int sample_type:1; member
Dcpufreq_governor.c472 od_dbs_info->sample_type = OD_NORMAL_SAMPLE; in cpufreq_governor_start()
/linux-4.4.14/arch/x86/kernel/cpu/
Dperf_event_intel_ds.c995 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()
Dperf_event_amd_ibs.c555 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()
Dperf_event_intel.c2518 if (!(event->attr.sample_type & in intel_pmu_hw_config()
/linux-4.4.14/tools/perf/python/
Dtwatch.py26 sample_type = perf.SAMPLE_PERIOD | perf.SAMPLE_TID | perf.SAMPLE_CPU)
/linux-4.4.14/samples/bpf/
Dtracex6_user.c28 .sample_type = 0, in test_bpf_perf_event()
Dtrace_output_user.c156 .sample_type = PERF_SAMPLE_RAW, in test_bpf_perf_event()
Dbpf_load.c58 attr.sample_type = PERF_SAMPLE_RAW; in load_and_attach()
/linux-4.4.14/sound/pci/mixart/
Dmixart.c537 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()
Dmixart_core.h369 u32 sample_type; /* use enum mixart_sample_type */ member
/linux-4.4.14/include/linux/i2c/
Dtwl4030-madc.h64 enum sample_type { enum
/linux-4.4.14/tools/perf/arch/x86/tests/
Dintel-cqm.c76 pe.sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_READ; in test__intel_cqm_count_nmi_context()
/linux-4.4.14/kernel/trace/
Dtrace_event_perf.c62 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/
Dskl-topology.h99 u8 sample_type; member
/linux-4.4.14/include/uapi/linux/
Dperf_event.h296 __u64 sample_type; member
/linux-4.4.14/arch/powerpc/perf/
Dcore-book3s.c528 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/
Dintel-pt.txt198 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/
Dperf_event.h1022 return event->attr.sample_type & PERF_SAMPLE_BRANCH_STACK; in has_branch_stack()