Home
last modified time | relevance | path

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

/linux-4.1.27/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 …]
Dsw-clock.c32 .sample_type = PERF_SAMPLE_PERIOD, in __test__sw_clock_freq()
Dbp_signal_overflow.c88 pe.sample_type = PERF_SAMPLE_IP; in test__bp_signal_overflow()
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()
434 PERF_TP_SAMPLE_TYPE == evsel->attr.sample_type); in test__checkevent_list()
672 PERF_TP_SAMPLE_TYPE == evsel->attr.sample_type); in test__group3()
/linux-4.1.27/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-raw7 sample_type=1415
Dtest-record-no-inherit6 sample_type=263
Dtest-record-count7 sample_type=7
Dtest-record-graph-fp6 sample_type=295
Dtest-record-branch-any7 sample_type=2311
Dtest-record-branch-filter-any7 sample_type=2311
Dtest-record-branch-filter-hv7 sample_type=2311
Dtest-record-no-delay7 sample_type=263
Dtest-record-branch-filter-any_ret7 sample_type=2311
Dtest-record-branch-filter-any_call7 sample_type=2311
Dtest-record-branch-filter-u7 sample_type=2311
Dtest-record-branch-filter-ind_call7 sample_type=2311
Dtest-record-branch-filter-k7 sample_type=2311
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.1.27/tools/perf/util/
Devsel.c85 int __perf_evsel__sample_size(u64 sample_type) in __perf_evsel__sample_size() argument
87 u64 mask = sample_type & PERF_SAMPLE_MASK; in __perf_evsel__sample_size()
109 static int __perf_evsel__calc_id_pos(u64 sample_type) in __perf_evsel__calc_id_pos() argument
113 if (sample_type & PERF_SAMPLE_IDENTIFIER) in __perf_evsel__calc_id_pos()
116 if (!(sample_type & PERF_SAMPLE_ID)) in __perf_evsel__calc_id_pos()
119 if (sample_type & PERF_SAMPLE_IP) in __perf_evsel__calc_id_pos()
122 if (sample_type & PERF_SAMPLE_TID) in __perf_evsel__calc_id_pos()
125 if (sample_type & PERF_SAMPLE_TIME) in __perf_evsel__calc_id_pos()
128 if (sample_type & PERF_SAMPLE_ADDR) in __perf_evsel__calc_id_pos()
142 static int __perf_evsel__calc_is_pos(u64 sample_type) in __perf_evsel__calc_is_pos() argument
[all …]
Dsession.c443 attr->sample_type = bswap_64(attr->sample_type); in perf_event__attr_swap()
694 u64 sample_type = __perf_evlist__combined_sample_type(evlist); in perf_evlist__print_tstamp() local
702 if ((sample_type & PERF_SAMPLE_CPU)) in perf_evlist__print_tstamp()
705 if (sample_type & PERF_SAMPLE_TIME) in perf_evlist__print_tstamp()
760 u64 sample_type; in dump_sample() local
769 sample_type = evsel->attr.sample_type; in dump_sample()
771 if (sample_type & PERF_SAMPLE_CALLCHAIN) in dump_sample()
774 if ((sample_type & PERF_SAMPLE_BRANCH_STACK) && !has_branch_callstack(evsel)) in dump_sample()
777 if (sample_type & PERF_SAMPLE_REGS_USER) in dump_sample()
780 if (sample_type & PERF_SAMPLE_REGS_INTR) in dump_sample()
[all …]
Drecord.c80 evsel->attr.sample_type |= PERF_SAMPLE_IDENTIFIER; in perf_probe_sample_identifier()
126 if (evsel->attr.sample_type == first->attr.sample_type) in perf_evlist__config()
Devlist.c1149 evlist->combined_sample_type |= evsel->attr.sample_type; in __perf_evlist__combined_sample_type()
1164 u64 sample_type = first->attr.sample_type; in perf_evlist__valid_read_format() local
1172 if ((sample_type & PERF_SAMPLE_READ) && in perf_evlist__valid_read_format()
1190 u64 sample_type; in perf_evlist__id_hdr_size() local
1196 sample_type = first->attr.sample_type; in perf_evlist__id_hdr_size()
1198 if (sample_type & PERF_SAMPLE_TID) in perf_evlist__id_hdr_size()
1201 if (sample_type & PERF_SAMPLE_TIME) in perf_evlist__id_hdr_size()
1204 if (sample_type & PERF_SAMPLE_ID) in perf_evlist__id_hdr_size()
1207 if (sample_type & PERF_SAMPLE_STREAM_ID) in perf_evlist__id_hdr_size()
1210 if (sample_type & PERF_SAMPLE_CPU) in perf_evlist__id_hdr_size()
[all …]
Ddata-convert-bt.c305 u64 type = evsel->attr.sample_type; in add_generic_values()
493 u64 type = evsel->attr.sample_type; in add_generic_types()
Devsel.h150 int __perf_evsel__sample_size(u64 sample_type);
Ddb-export.c327 if ((evsel->attr.sample_type & PERF_SAMPLE_ADDR) && in db_export__sample()
Dpython.c513 .sample_type = PERF_SAMPLE_PERIOD | PERF_SAMPLE_TID, in pyrf_evsel__init()
570 &sample_period, &attr.sample_type, in pyrf_evsel__init()
Dmachine.c1735 if (!((evsel->attr.sample_type & PERF_SAMPLE_REGS_USER) && in thread__resolve_callchain()
1736 (evsel->attr.sample_type & PERF_SAMPLE_STACK_USER))) in thread__resolve_callchain()
/linux-4.1.27/kernel/events/
Dcore.c1300 u64 sample_type = event->attr.sample_type; in perf_event__header_size() local
1305 if (sample_type & PERF_SAMPLE_IP) in perf_event__header_size()
1308 if (sample_type & PERF_SAMPLE_ADDR) in perf_event__header_size()
1311 if (sample_type & PERF_SAMPLE_PERIOD) in perf_event__header_size()
1314 if (sample_type & PERF_SAMPLE_WEIGHT) in perf_event__header_size()
1317 if (sample_type & PERF_SAMPLE_READ) in perf_event__header_size()
1320 if (sample_type & PERF_SAMPLE_DATA_SRC) in perf_event__header_size()
1323 if (sample_type & PERF_SAMPLE_TRANSACTION) in perf_event__header_size()
1332 u64 sample_type = event->attr.sample_type; in perf_event__id_header_size() local
1335 if (sample_type & PERF_SAMPLE_TID) in perf_event__id_header_size()
[all …]
/linux-4.1.27/arch/x86/kernel/cpu/
Dperf_event_intel_ds.c864 u64 sample_type; in __intel_pmu_pebs_event() local
871 sample_type = event->attr.sample_type; in __intel_pmu_pebs_event()
872 dsrc = sample_type & PERF_SAMPLE_DATA_SRC; in __intel_pmu_pebs_event()
884 if (fll && (sample_type & PERF_SAMPLE_WEIGHT)) in __intel_pmu_pebs_event()
917 if (sample_type & PERF_SAMPLE_REGS_INTR) { in __intel_pmu_pebs_event()
948 if ((sample_type & PERF_SAMPLE_ADDR) && in __intel_pmu_pebs_event()
954 if ((sample_type & PERF_SAMPLE_WEIGHT) && !fll) in __intel_pmu_pebs_event()
957 if (sample_type & PERF_SAMPLE_TRANSACTION) in __intel_pmu_pebs_event()
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()
/linux-4.1.27/tools/perf/
Dbuiltin-report.c205 u64 sample_type = perf_evlist__combined_sample_type(session->evlist); in report__setup_sample_type() local
208 if (!is_pipe && !(sample_type & PERF_SAMPLE_CALLCHAIN)) { in report__setup_sample_type()
233 if (!(sample_type & PERF_SAMPLE_CALLCHAIN)) { in report__setup_sample_type()
241 !(sample_type & PERF_SAMPLE_BRANCH_STACK)) { in report__setup_sample_type()
249 if ((sample_type & PERF_SAMPLE_REGS_USER) && in report__setup_sample_type()
250 (sample_type & PERF_SAMPLE_STACK_USER)) in report__setup_sample_type()
252 else if (sample_type & PERF_SAMPLE_BRANCH_STACK) in report__setup_sample_type()
Dbuiltin-inject.c321 perf_event__synthesize_sample(event_sw, evsel->attr.sample_type, in perf_inject__sched_stat()
334 u64 sample_type, const char *sample_msg) in perf_evsel__check_stype() argument
339 if (!(attr->sample_type & sample_type)) { in perf_evsel__check_stype()
Dbuiltin-script.c150 u64 sample_type, const char *sample_msg, in perf_evsel__check_stype() argument
157 if (attr->sample_type & sample_type) in perf_evsel__check_stype()
302 if (evsel->attr.sample_type & PERF_SAMPLE_CALLCHAIN) { in perf_session__check_output_opt()
326 if (attr->sample_type & PERF_SAMPLE_CALLCHAIN) { in perf_session__check_output_opt()
436 ((evsel->attr.sample_type & PERF_SAMPLE_ADDR) && in print_sample_bts()
Dbuiltin-timechart.c561 if (evsel->attr.sample_type & PERF_SAMPLE_TIME) { in process_sample_event()
/linux-4.1.27/drivers/cpufreq/
Dcpufreq_ondemand.c203 int delay = 0, sample_type = core_dbs_info->sample_type; in od_dbs_timer() local
213 core_dbs_info->sample_type = OD_NORMAL_SAMPLE; in od_dbs_timer()
214 if (sample_type == OD_SUB_SAMPLE) { in od_dbs_timer()
222 core_dbs_info->sample_type = OD_SUB_SAMPLE; in od_dbs_timer()
Dcpufreq_governor.h162 unsigned int sample_type:1; member
Dcpufreq_governor.c402 od_dbs_info->sample_type = OD_NORMAL_SAMPLE; in cpufreq_governor_dbs()
/linux-4.1.27/tools/perf/python/
Dtwatch.py24 sample_type = perf.SAMPLE_PERIOD | perf.SAMPLE_TID | perf.SAMPLE_CPU)
/linux-4.1.27/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.1.27/include/linux/i2c/
Dtwl4030-madc.h64 enum sample_type { enum
/linux-4.1.27/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.1.27/include/uapi/linux/
Dperf_event.h291 __u64 sample_type; member
/linux-4.1.27/samples/bpf/
Dbpf_load.c44 attr.sample_type = PERF_SAMPLE_RAW; in load_and_attach()
/linux-4.1.27/arch/powerpc/perf/
Dcore-book3s.c528 event->attr.sample_type || in ebb_event_check()
1978 if (event->attr.sample_type & PERF_SAMPLE_ADDR) in record_and_restart()
1981 if (event->attr.sample_type & PERF_SAMPLE_BRANCH_STACK) { in record_and_restart()
/linux-4.1.27/include/linux/
Dperf_event.h884 return event->attr.sample_type & PERF_SAMPLE_BRANCH_STACK; in has_branch_stack()