| /Linux-v5.4/tools/perf/tests/ | 
| D | sample-parsing.c | 156 static int do_test(u64 sample_type, u64 sample_regs, u64 read_format)  in do_test()  argument162 				.sample_type = sample_type,  in do_test()
 227 	if (sample_type & PERF_SAMPLE_REGS_USER)  in do_test()
 230 	if (sample_type & PERF_SAMPLE_REGS_INTR)  in do_test()
 244 	sz = perf_event__sample_event_size(&sample, sample_type, read_format);  in do_test()
 257 	err = perf_event__synthesize_sample(event, sample_type, read_format,  in do_test()
 261 			 "perf_event__synthesize_sample", sample_type, err);  in do_test()
 276 	evsel.sample_size = __perf_evsel__sample_size(sample_type);  in do_test()
 281 			 "perf_evsel__parse_sample", sample_type, err);  in do_test()
 285 	if (!samples_same(&sample, &sample_out, sample_type, read_format)) {  in do_test()
 [all …]
 
 | 
| /Linux-v5.4/samples/bpf/ | 
| D | tracex6_user.c | 107 		.sample_type = 0,  in test_bpf_perf_event()116 		.sample_type = 0,  in test_bpf_perf_event()
 125 		.sample_type = 0,  in test_bpf_perf_event()
 135 		.sample_type = 0,  in test_bpf_perf_event()
 147 		.sample_type = 0,  in test_bpf_perf_event()
 160 		.sample_type = 0,  in test_bpf_perf_event()
 
 | 
| /Linux-v5.4/tools/perf/tests/attr/ | 
| D | test-record-data | 7 # sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_TID | PERF_SAMPLE_TIME |9 sample_type=33039
 
 | 
| D | test-record-group | 9 sample_type=32716 sample_type=327
 
 | 
| D | test-record-group1 | 9 sample_type=32717 sample_type=327
 
 | 
| D | test-record-group-sampling | 9 sample_type=34322 sample_type=343
 
 | 
| D | test-record-raw | 7 sample_type=1415
 | 
| D | test-record-graph-default | 7 sample_type=295
 | 
| D | test-record-no-inherit | 7 sample_type=263
 | 
| D | test-record-branch-any | 7 sample_type=2311
 | 
| D | test-record-branch-filter-any | 7 sample_type=2311
 | 
| /Linux-v5.4/tools/perf/ui/browsers/ | 
| D | scripts.c | 39 	if (attr->sample_type & PERF_SAMPLE_BRANCH_STACK)  in attr_to_script()41 	if (attr->sample_type & PERF_SAMPLE_REGS_INTR)  in attr_to_script()
 43 	if (attr->sample_type & PERF_SAMPLE_REGS_USER)  in attr_to_script()
 45 	if (attr->sample_type & PERF_SAMPLE_PHYS_ADDR)  in attr_to_script()
 
 | 
| /Linux-v5.4/arch/x86/events/intel/ | 
| D | ds.c | 968 	u64 sample_type = attr->sample_type;  in pebs_update_adaptive_cfg()  local972 	if (!(sample_type & ~(PERF_SAMPLE_IP|PERF_SAMPLE_TIME)) &&  in pebs_update_adaptive_cfg()
 976 	if (sample_type & PERF_PEBS_MEMINFO_TYPE)  in pebs_update_adaptive_cfg()
 985 	gprs = (sample_type & PERF_SAMPLE_REGS_INTR) &&  in pebs_update_adaptive_cfg()
 988 	tsx_weight = (sample_type & PERF_SAMPLE_WEIGHT) &&  in pebs_update_adaptive_cfg()
 995 	if ((sample_type & PERF_SAMPLE_REGS_INTR) &&  in pebs_update_adaptive_cfg()
 999 	if (sample_type & PERF_SAMPLE_BRANCH_STACK) {  in pebs_update_adaptive_cfg()
 1350 	u64 sample_type;  in setup_pebs_fixed_sample_data()  local
 1356 	sample_type = event->attr.sample_type;  in setup_pebs_fixed_sample_data()
 1366 	if (fll && (sample_type & PERF_SAMPLE_WEIGHT))  in setup_pebs_fixed_sample_data()
 [all …]
 
 | 
| /Linux-v5.4/tools/perf/util/ | 
| D | cs-etm.c | 924 	if (packet->sample_type == CS_ETM_DISCONTINUITY)  in cs_etm__first_executed_instr()934 	if (packet->sample_type == CS_ETM_DISCONTINUITY)  in cs_etm__last_executed_instr()
 1092 	if (packet->sample_type == CS_ETM_DISCONTINUITY) {  in cs_etm__copy_insn()
 1284 	attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK;  in cs_etm__synth_events()
 1285 	attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID |  in cs_etm__synth_events()
 1288 		attr.sample_type &= ~(u64)PERF_SAMPLE_TIME;  in cs_etm__synth_events()
 1290 		attr.sample_type |= PERF_SAMPLE_TIME;  in cs_etm__synth_events()
 1309 		attr.sample_type |= PERF_SAMPLE_ADDR;  in cs_etm__synth_events()
 1314 		etm->branches_sample_type = attr.sample_type;  in cs_etm__synth_events()
 1317 		attr.sample_type &= ~(u64)PERF_SAMPLE_ADDR;  in cs_etm__synth_events()
 [all …]
 
 | 
| D | evsel.c | 105 int __perf_evsel__sample_size(u64 sample_type)  in __perf_evsel__sample_size()  argument107 	u64 mask = sample_type & PERF_SAMPLE_MASK;  in __perf_evsel__sample_size()
 129 static int __perf_evsel__calc_id_pos(u64 sample_type)  in __perf_evsel__calc_id_pos()  argument
 133 	if (sample_type & PERF_SAMPLE_IDENTIFIER)  in __perf_evsel__calc_id_pos()
 136 	if (!(sample_type & PERF_SAMPLE_ID))  in __perf_evsel__calc_id_pos()
 139 	if (sample_type & PERF_SAMPLE_IP)  in __perf_evsel__calc_id_pos()
 142 	if (sample_type & PERF_SAMPLE_TID)  in __perf_evsel__calc_id_pos()
 145 	if (sample_type & PERF_SAMPLE_TIME)  in __perf_evsel__calc_id_pos()
 148 	if (sample_type & PERF_SAMPLE_ADDR)  in __perf_evsel__calc_id_pos()
 162 static int __perf_evsel__calc_is_pos(u64 sample_type)  in __perf_evsel__calc_is_pos()  argument
 [all …]
 
 | 
| D | evlist.c | 1103 		evlist->combined_sample_type |= evsel->core.attr.sample_type;  in __perf_evlist__combined_sample_type()1128 	u64 sample_type = first->core.attr.sample_type;  in perf_evlist__valid_read_format()  local
 1136 	if ((sample_type & PERF_SAMPLE_READ) &&  in perf_evlist__valid_read_format()
 1148 	u64 sample_type;  in perf_evlist__id_hdr_size()  local
 1154 	sample_type = first->core.attr.sample_type;  in perf_evlist__id_hdr_size()
 1156 	if (sample_type & PERF_SAMPLE_TID)  in perf_evlist__id_hdr_size()
 1159        if (sample_type & PERF_SAMPLE_TIME)  in perf_evlist__id_hdr_size()
 1162 	if (sample_type & PERF_SAMPLE_ID)  in perf_evlist__id_hdr_size()
 1165 	if (sample_type & PERF_SAMPLE_STREAM_ID)  in perf_evlist__id_hdr_size()
 1168 	if (sample_type & PERF_SAMPLE_CPU)  in perf_evlist__id_hdr_size()
 [all …]
 
 | 
| D | record.c | 87 	evsel->core.attr.sample_type |= PERF_SAMPLE_IDENTIFIER;  in perf_probe_sample_identifier()177 			if (evsel->core.attr.sample_type == first->core.attr.sample_type)  in perf_evlist__config()
 
 | 
| D | intel-bts.c | 785 	attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK;  in intel_bts_synth_events()786 	attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID |  in intel_bts_synth_events()
 788 	attr.sample_type &= ~(u64)PERF_SAMPLE_TIME;  in intel_bts_synth_events()
 789 	attr.sample_type &= ~(u64)PERF_SAMPLE_CPU;  in intel_bts_synth_events()
 805 		attr.sample_type |= PERF_SAMPLE_ADDR;  in intel_bts_synth_events()
 807 			 id, (u64)attr.sample_type);  in intel_bts_synth_events()
 815 		bts->branches_sample_type = attr.sample_type;  in intel_bts_synth_events()
 822 				__perf_evsel__sample_size(attr.sample_type);  in intel_bts_synth_events()
 
 | 
| D | intel-pt.c | 795 		if (!(evsel->core.attr.sample_type & PERF_SAMPLE_TIME))  in intel_pt_timeless_decoding()1707 	u64 sample_type = evsel->core.attr.sample_type;  in intel_pt_synth_pebs_sample()  local
 1739 	if (sample_type & PERF_SAMPLE_TIME) {  in intel_pt_synth_pebs_sample()
 1750 	if (sample_type & PERF_SAMPLE_CALLCHAIN &&  in intel_pt_synth_pebs_sample()
 1758 	if (sample_type & PERF_SAMPLE_REGS_INTR &&  in intel_pt_synth_pebs_sample()
 1774 	if (sample_type & PERF_SAMPLE_BRANCH_STACK) {  in intel_pt_synth_pebs_sample()
 1794 	if (sample_type & PERF_SAMPLE_ADDR && items->has_mem_access_address)  in intel_pt_synth_pebs_sample()
 1797 	if (sample_type & PERF_SAMPLE_WEIGHT) {  in intel_pt_synth_pebs_sample()
 1810 	if (sample_type & PERF_SAMPLE_TRANSACTION && items->has_tsx_aux_info) {  in intel_pt_synth_pebs_sample()
 1821 	return intel_pt_deliver_synth_event(pt, ptq, event, &sample, sample_type);  in intel_pt_synth_pebs_sample()
 [all …]
 
 | 
| D | session.c | 740 	bswap_field_64(sample_type);  in perf_event__attr_swap()1155 	u64 sample_type = __perf_evlist__combined_sample_type(evlist);  in perf_evlist__print_tstamp()  local
 1163 	if ((sample_type & PERF_SAMPLE_CPU))  in perf_evlist__print_tstamp()
 1166 	if (sample_type & PERF_SAMPLE_TIME)  in perf_evlist__print_tstamp()
 1223 	u64 sample_type;  in dump_sample()  local
 1232 	sample_type = evsel->core.attr.sample_type;  in dump_sample()
 1237 	if (sample_type & PERF_SAMPLE_BRANCH_STACK)  in dump_sample()
 1240 	if (sample_type & PERF_SAMPLE_REGS_USER)  in dump_sample()
 1243 	if (sample_type & PERF_SAMPLE_REGS_INTR)  in dump_sample()
 1246 	if (sample_type & PERF_SAMPLE_STACK_USER)  in dump_sample()
 [all …]
 
 | 
| D | jitdump.c | 39 	uint64_t	 sample_type;  member470 	if (jd->sample_type & PERF_SAMPLE_TID) {  in jit_repipe_code_load()
 474 	if (jd->sample_type & PERF_SAMPLE_TIME)  in jit_repipe_code_load()
 562 	if (jd->sample_type & PERF_SAMPLE_TID) {  in jit_repipe_code_move()
 566 	if (jd->sample_type & PERF_SAMPLE_TIME)  in jit_repipe_code_move()
 781 	jd.sample_type = first->core.attr.sample_type;  in jit_process()
 
 | 
| /Linux-v5.4/drivers/cpufreq/ | 
| D | cpufreq_ondemand.c | 175 	int sample_type = dbs_info->sample_type;  in od_dbs_update()  local178 	dbs_info->sample_type = OD_NORMAL_SAMPLE;  in od_dbs_update()
 183 	if (sample_type == OD_SUB_SAMPLE && policy_dbs->sample_delay_ns > 0) {  in od_dbs_update()
 193 		dbs_info->sample_type = OD_SUB_SAMPLE;  in od_dbs_update()
 392 	dbs_info->sample_type = OD_NORMAL_SAMPLE;  in od_start()
 
 | 
| D | cpufreq_ondemand.h | 16 	unsigned int sample_type:1;  member
 | 
| /Linux-v5.4/kernel/events/ | 
| D | core.c | 1727 static void __perf_event_header_size(struct perf_event *event, u64 sample_type)  in __perf_event_header_size()  argument1732 	if (sample_type & PERF_SAMPLE_IP)  in __perf_event_header_size()
 1735 	if (sample_type & PERF_SAMPLE_ADDR)  in __perf_event_header_size()
 1738 	if (sample_type & PERF_SAMPLE_PERIOD)  in __perf_event_header_size()
 1741 	if (sample_type & PERF_SAMPLE_WEIGHT)  in __perf_event_header_size()
 1744 	if (sample_type & PERF_SAMPLE_READ)  in __perf_event_header_size()
 1747 	if (sample_type & PERF_SAMPLE_DATA_SRC)  in __perf_event_header_size()
 1750 	if (sample_type & PERF_SAMPLE_TRANSACTION)  in __perf_event_header_size()
 1753 	if (sample_type & PERF_SAMPLE_PHYS_ADDR)  in __perf_event_header_size()
 1767 	__perf_event_header_size(event, event->attr.sample_type);  in perf_event__header_size()
 [all …]
 
 | 
| /Linux-v5.4/arch/s390/kernel/ | 
| D | perf_cpum_cf_diag.c | 248 			    event, event->cpu, attr->config, attr->sample_type,  in cf_diag_event_init()261 	    !(attr->sample_type & (PERF_SAMPLE_CPU | PERF_SAMPLE_RAW))) {  in cf_diag_event_init()
 500 	if (event->attr.sample_type & PERF_SAMPLE_CPU)  in cf_diag_push_sample()
 502 	if (event->attr.sample_type & PERF_SAMPLE_RAW) {  in cf_diag_push_sample()
 513 			    event->attr.sample_type, raw.size, overflow);  in cf_diag_push_sample()
 
 |