Symbol: sample_type
arch/powerpc/perf/core-book3s.c
2277
if (event->attr.sample_type & PERF_SAMPLE_IP)
arch/powerpc/perf/core-book3s.c
2300
(event->attr.sample_type & PERF_SAMPLE_IP) &&
arch/powerpc/perf/core-book3s.c
2311
if (mark_event && event->attr.sample_type & PERF_SAMPLE_DATA_SRC &&
arch/powerpc/perf/core-book3s.c
2328
if (event->attr.sample_type & PERF_SAMPLE_ADDR_TYPE)
arch/powerpc/perf/core-book3s.c
2331
if (event->attr.sample_type & PERF_SAMPLE_BRANCH_STACK) {
arch/powerpc/perf/core-book3s.c
2338
if (event->attr.sample_type & PERF_SAMPLE_DATA_SRC &&
arch/powerpc/perf/core-book3s.c
2344
if (event->attr.sample_type & PERF_SAMPLE_WEIGHT_TYPE &&
arch/powerpc/perf/core-book3s.c
2346
ppmu->get_mem_weight(&data.weight.full, event->attr.sample_type);
arch/powerpc/perf/core-book3s.c
604
event->attr.sample_type ||
arch/s390/kernel/perf_cpum_cf.c
1804
!(attr->sample_type & (PERF_SAMPLE_CPU | PERF_SAMPLE_RAW))) {
arch/s390/kernel/perf_cpum_cf.c
975
if (event->attr.sample_type & PERF_SAMPLE_CPU)
arch/s390/kernel/perf_cpum_cf.c
977
if (event->attr.sample_type & PERF_SAMPLE_RAW) {
arch/s390/kernel/perf_cpum_sf.c
831
if (event->attr.sample_type & PERF_SAMPLE_TID)
arch/s390/kernel/perf_cpum_sf.c
841
u64 sample_type = event->attr.sample_type;
arch/s390/kernel/perf_cpum_sf.c
843
return sample_type & (PERF_SAMPLE_CALLCHAIN | PERF_SAMPLE_REGS_USER |
arch/s390/kernel/perf_pai.c
409
a->sample_type |= PERF_SAMPLE_RAW;
arch/s390/kernel/perf_pai.c
630
if (event->attr.sample_type & PERF_SAMPLE_TID) {
arch/s390/kernel/perf_pai.c
634
if (event->attr.sample_type & PERF_SAMPLE_TIME)
arch/s390/kernel/perf_pai.c
636
if (event->attr.sample_type & (PERF_SAMPLE_ID | PERF_SAMPLE_IDENTIFIER))
arch/s390/kernel/perf_pai.c
638
if (event->attr.sample_type & PERF_SAMPLE_CPU) {
arch/s390/kernel/perf_pai.c
642
if (event->attr.sample_type & PERF_SAMPLE_RAW) {
arch/x86/events/amd/ibs.c
1274
static void perf_ibs_parse_ld_st_data(__u64 sample_type,
arch/x86/events/amd/ibs.c
1292
if (sample_type & PERF_SAMPLE_DATA_SRC) {
arch/x86/events/amd/ibs.c
1297
if (sample_type & PERF_SAMPLE_WEIGHT_TYPE && op_data3.dc_miss &&
arch/x86/events/amd/ibs.c
1301
if (sample_type & PERF_SAMPLE_WEIGHT_STRUCT) {
arch/x86/events/amd/ibs.c
1304
} else if (sample_type & PERF_SAMPLE_WEIGHT) {
arch/x86/events/amd/ibs.c
1310
if (sample_type & PERF_SAMPLE_ADDR && op_data3.dc_lin_addr_valid) {
arch/x86/events/amd/ibs.c
1315
if (sample_type & PERF_SAMPLE_PHYS_ADDR && op_data3.dc_phy_addr_valid) {
arch/x86/events/amd/ibs.c
1324
u64 sample_type = event->attr.sample_type;
arch/x86/events/amd/ibs.c
1327
sample_type & (PERF_SAMPLE_DATA_SRC |
arch/x86/events/amd/ibs.c
1337
if (event->attr.sample_type & PERF_SAMPLE_RAW ||
arch/x86/events/amd/ibs.c
1357
return unlikely((event->attr.sample_type & sample_type_mask) &&
arch/x86/events/amd/ibs.c
1371
return unlikely((event->attr.sample_type & PERF_SAMPLE_RAW) &&
arch/x86/events/amd/ibs.c
1497
if (event->attr.sample_type & PERF_SAMPLE_RAW) {
arch/x86/events/amd/ibs.c
1541
if ((event->attr.sample_type & PERF_SAMPLE_RAW) &&
arch/x86/events/amd/ibs.c
1546
if (event->attr.sample_type & PERF_SAMPLE_RAW) {
arch/x86/events/amd/ibs.c
1557
perf_ibs_parse_ld_st_data(event->attr.sample_type, &ibs_data, &data);
arch/x86/events/intel/core.c
4949
if (!(event->attr.sample_type & ~intel_pmu_large_pebs_flags(event)) &&
arch/x86/events/intel/core.c
4971
!(event->attr.sample_type & PERF_SAMPLE_READ))
arch/x86/events/intel/core.c
5054
if ((event->attr.sample_type & PERF_SAMPLE_READ) &&
arch/x86/events/intel/core.c
5221
(event->attr.sample_type & PERF_SAMPLE_DATA_SRC) &&
arch/x86/events/intel/core.c
5645
(event->attr.sample_type & PERF_SAMPLE_WEIGHT_TYPE) &&
arch/x86/events/intel/ds.c
1720
u64 sample_type = attr->sample_type;
arch/x86/events/intel/ds.c
1724
if (!(sample_type & ~(PERF_SAMPLE_IP|PERF_SAMPLE_TIME)) &&
arch/x86/events/intel/ds.c
1728
if (sample_type & PERF_PEBS_MEMINFO_TYPE)
arch/x86/events/intel/ds.c
1737
gprs = ((sample_type & PERF_SAMPLE_REGS_INTR) &&
arch/x86/events/intel/ds.c
1739
((sample_type & PERF_SAMPLE_REGS_USER) &&
arch/x86/events/intel/ds.c
1742
tsx_weight = (sample_type & PERF_SAMPLE_WEIGHT_TYPE) &&
arch/x86/events/intel/ds.c
1749
if ((sample_type & PERF_SAMPLE_REGS_INTR) &&
arch/x86/events/intel/ds.c
1753
if (sample_type & PERF_SAMPLE_BRANCH_STACK) {
arch/x86/events/intel/ds.c
2187
u64 sample_type;
arch/x86/events/intel/ds.c
2193
sample_type = event->attr.sample_type;
arch/x86/events/intel/ds.c
2201
if (fll && (sample_type & PERF_SAMPLE_WEIGHT_TYPE)) {
arch/x86/events/intel/ds.c
2209
if (sample_type & PERF_SAMPLE_DATA_SRC) {
arch/x86/events/intel/ds.c
2238
if (sample_type & PERF_SAMPLE_REGS_INTR) {
arch/x86/events/intel/ds.c
2291
if ((sample_type & PERF_SAMPLE_ADDR_TYPE) &&
arch/x86/events/intel/ds.c
2299
if ((sample_type & PERF_SAMPLE_WEIGHT_TYPE) && !fll) {
arch/x86/events/intel/ds.c
2303
if (sample_type & PERF_SAMPLE_TRANSACTION) {
arch/x86/events/intel/ds.c
2443
u64 sample_type, u64 ip,
arch/x86/events/intel/ds.c
2451
if (sample_type & PERF_SAMPLE_WEIGHT_STRUCT)
arch/x86/events/intel/ds.c
2458
u64 sample_type)
arch/x86/events/intel/ds.c
2465
if (sample_type & (PERF_SAMPLE_REGS_INTR | PERF_SAMPLE_REGS_USER))
arch/x86/events/intel/ds.c
2471
u64 sample_type, u64 latency,
arch/x86/events/intel/ds.c
2475
if (sample_type & PERF_SAMPLE_WEIGHT_TYPE) {
arch/x86/events/intel/ds.c
2485
if (sample_type & PERF_SAMPLE_WEIGHT)
arch/x86/events/intel/ds.c
2493
if (sample_type & PERF_SAMPLE_DATA_SRC) {
arch/x86/events/intel/ds.c
2498
if (sample_type & PERF_SAMPLE_ADDR_TYPE) {
arch/x86/events/intel/ds.c
2503
if (sample_type & PERF_SAMPLE_TRANSACTION) {
arch/x86/events/intel/ds.c
2518
u64 sample_type = event->attr.sample_type;
arch/x86/events/intel/ds.c
2542
__setup_pebs_basic_group(event, regs, data, sample_type,
arch/x86/events/intel/ds.c
2559
__setup_pebs_gpr_group(event, regs, gprs, sample_type);
arch/x86/events/intel/ds.c
2569
__setup_pebs_meminfo_group(event, data, sample_type, latency,
arch/x86/events/intel/ds.c
2636
u64 sample_type = event->attr.sample_type;
arch/x86/events/intel/ds.c
2663
if (sample_type & PERF_SAMPLE_WEIGHT_STRUCT)
arch/x86/events/intel/ds.c
2665
__setup_pebs_basic_group(event, regs, data, sample_type,
arch/x86/events/intel/ds.c
2685
sample_type);
arch/x86/events/intel/ds.c
2691
__setup_pebs_meminfo_group(event, data, sample_type,
arch/x86/kvm/vmx/pmu_intel.c
267
.sample_type = PERF_SAMPLE_BRANCH_STACK,
drivers/cpufreq/cpufreq_ondemand.c
154
int sample_type = dbs_info->sample_type;
drivers/cpufreq/cpufreq_ondemand.c
157
dbs_info->sample_type = OD_NORMAL_SAMPLE;
drivers/cpufreq/cpufreq_ondemand.c
162
if (sample_type == OD_SUB_SAMPLE && policy_dbs->sample_delay_ns > 0) {
drivers/cpufreq/cpufreq_ondemand.c
172
dbs_info->sample_type = OD_SUB_SAMPLE;
drivers/cpufreq/cpufreq_ondemand.c
367
dbs_info->sample_type = OD_NORMAL_SAMPLE;
drivers/cpufreq/cpufreq_ondemand.h
16
unsigned int sample_type:1;
drivers/net/phy/nxp-c45-tja11xx.c
1618
int silicon_version, sample_type;
drivers/net/phy/nxp-c45-tja11xx.c
1626
sample_type = FIELD_GET(TJA1120_DEV_ID3_SAMPLE_TYPE, ret);
drivers/net/phy/nxp-c45-tja11xx.c
1627
if (sample_type != DEVICE_ID3_SAMPLE_TYPE_R)
include/linux/perf_event.h
1380
if (!(event->attr.sample_type & PERF_SAMPLE_CALLCHAIN))
include/linux/perf_event.h
1400
if (!(event->attr.sample_type & PERF_SAMPLE_RAW))
include/linux/perf_event.h
1423
return event->attr.sample_type & PERF_SAMPLE_BRANCH_STACK;
include/uapi/linux/perf_event.h
415
__u64 sample_type;
kernel/bpf/stackmap.c
636
if (!(event->attr.sample_type & PERF_SAMPLE_CALLCHAIN))
kernel/bpf/stackmap.c
865
if (!(event->attr.sample_type & PERF_SAMPLE_CALLCHAIN))
kernel/events/core.c
10696
(!(event->attr.sample_type & PERF_SAMPLE_CALLCHAIN) ||
kernel/events/core.c
10960
if ((event->attr.sample_type & PERF_SAMPLE_PERIOD) && !event->attr.freq) {
kernel/events/core.c
13474
if (has_inherit_and_sample_read(attr) && !(attr->sample_type & PERF_SAMPLE_TID))
kernel/events/core.c
13554
if (event->attr.sample_type & PERF_SAMPLE_CALLCHAIN) {
kernel/events/core.c
13614
if (attr->sample_type & ~(PERF_SAMPLE_MAX-1))
kernel/events/core.c
13620
if (attr->sample_type & PERF_SAMPLE_BRANCH_STACK) {
kernel/events/core.c
13656
if (attr->sample_type & PERF_SAMPLE_REGS_USER) {
kernel/events/core.c
13662
if (attr->sample_type & PERF_SAMPLE_STACK_USER) {
kernel/events/core.c
13680
if (attr->sample_type & PERF_SAMPLE_REGS_INTR)
kernel/events/core.c
13684
if (attr->sample_type & PERF_SAMPLE_CGROUP)
kernel/events/core.c
13687
if ((attr->sample_type & PERF_SAMPLE_WEIGHT) &&
kernel/events/core.c
13688
(attr->sample_type & PERF_SAMPLE_WEIGHT_STRUCT))
kernel/events/core.c
13934
if ((attr.sample_type & PERF_SAMPLE_PHYS_ADDR)) {
kernel/events/core.c
13941
if (attr.sample_type & PERF_SAMPLE_REGS_INTR) {
kernel/events/core.c
1969
return attr->inherit && (attr->sample_type & PERF_SAMPLE_READ);
kernel/events/core.c
2051
static void __perf_event_header_size(struct perf_event *event, u64 sample_type)
kernel/events/core.c
2056
if (sample_type & PERF_SAMPLE_IP)
kernel/events/core.c
2059
if (sample_type & PERF_SAMPLE_ADDR)
kernel/events/core.c
2062
if (sample_type & PERF_SAMPLE_PERIOD)
kernel/events/core.c
2065
if (sample_type & PERF_SAMPLE_WEIGHT_TYPE)
kernel/events/core.c
2068
if (sample_type & PERF_SAMPLE_READ)
kernel/events/core.c
2071
if (sample_type & PERF_SAMPLE_DATA_SRC)
kernel/events/core.c
2074
if (sample_type & PERF_SAMPLE_TRANSACTION)
kernel/events/core.c
2077
if (sample_type & PERF_SAMPLE_PHYS_ADDR)
kernel/events/core.c
2080
if (sample_type & PERF_SAMPLE_CGROUP)
kernel/events/core.c
2083
if (sample_type & PERF_SAMPLE_DATA_PAGE_SIZE)
kernel/events/core.c
2086
if (sample_type & PERF_SAMPLE_CODE_PAGE_SIZE)
kernel/events/core.c
2101
__perf_event_header_size(event, event->attr.sample_type);
kernel/events/core.c
2107
u64 sample_type = event->attr.sample_type;
kernel/events/core.c
2110
if (sample_type & PERF_SAMPLE_TID)
kernel/events/core.c
2113
if (sample_type & PERF_SAMPLE_TIME)
kernel/events/core.c
2116
if (sample_type & PERF_SAMPLE_IDENTIFIER)
kernel/events/core.c
2119
if (sample_type & PERF_SAMPLE_ID)
kernel/events/core.c
2122
if (sample_type & PERF_SAMPLE_STREAM_ID)
kernel/events/core.c
2125
if (sample_type & PERF_SAMPLE_CPU)
kernel/events/core.c
8065
u64 sample_type)
kernel/events/core.c
8067
data->type = event->attr.sample_type;
kernel/events/core.c
8070
if (sample_type & PERF_SAMPLE_TID) {
kernel/events/core.c
8076
if (sample_type & PERF_SAMPLE_TIME)
kernel/events/core.c
8079
if (sample_type & (PERF_SAMPLE_ID | PERF_SAMPLE_IDENTIFIER))
kernel/events/core.c
8082
if (sample_type & PERF_SAMPLE_STREAM_ID)
kernel/events/core.c
8085
if (sample_type & PERF_SAMPLE_CPU) {
kernel/events/core.c
8097
__perf_event_header__init_id(data, event, event->attr.sample_type);
kernel/events/core.c
8104
u64 sample_type = data->type;
kernel/events/core.c
8106
if (sample_type & PERF_SAMPLE_TID)
kernel/events/core.c
8109
if (sample_type & PERF_SAMPLE_TIME)
kernel/events/core.c
8112
if (sample_type & PERF_SAMPLE_ID)
kernel/events/core.c
8115
if (sample_type & PERF_SAMPLE_STREAM_ID)
kernel/events/core.c
8118
if (sample_type & PERF_SAMPLE_CPU)
kernel/events/core.c
8121
if (sample_type & PERF_SAMPLE_IDENTIFIER)
kernel/events/core.c
8253
u64 sample_type = data->type;
kernel/events/core.c
8260
if (sample_type & PERF_SAMPLE_IDENTIFIER)
kernel/events/core.c
8263
if (sample_type & PERF_SAMPLE_IP)
kernel/events/core.c
8266
if (sample_type & PERF_SAMPLE_TID)
kernel/events/core.c
8269
if (sample_type & PERF_SAMPLE_TIME)
kernel/events/core.c
8272
if (sample_type & PERF_SAMPLE_ADDR)
kernel/events/core.c
8275
if (sample_type & PERF_SAMPLE_ID)
kernel/events/core.c
8278
if (sample_type & PERF_SAMPLE_STREAM_ID)
kernel/events/core.c
8281
if (sample_type & PERF_SAMPLE_CPU)
kernel/events/core.c
8284
if (sample_type & PERF_SAMPLE_PERIOD)
kernel/events/core.c
8287
if (sample_type & PERF_SAMPLE_READ)
kernel/events/core.c
8290
if (sample_type & PERF_SAMPLE_CALLCHAIN) {
kernel/events/core.c
8298
if (sample_type & PERF_SAMPLE_RAW) {
kernel/events/core.c
8331
if (sample_type & PERF_SAMPLE_BRANCH_STACK) {
kernel/events/core.c
8359
if (sample_type & PERF_SAMPLE_REGS_USER) {
kernel/events/core.c
8376
if (sample_type & PERF_SAMPLE_STACK_USER) {
kernel/events/core.c
8382
if (sample_type & PERF_SAMPLE_WEIGHT_TYPE)
kernel/events/core.c
8385
if (sample_type & PERF_SAMPLE_DATA_SRC)
kernel/events/core.c
8388
if (sample_type & PERF_SAMPLE_TRANSACTION)
kernel/events/core.c
8391
if (sample_type & PERF_SAMPLE_REGS_INTR) {
kernel/events/core.c
8408
if (sample_type & PERF_SAMPLE_PHYS_ADDR)
kernel/events/core.c
8411
if (sample_type & PERF_SAMPLE_CGROUP)
kernel/events/core.c
8414
if (sample_type & PERF_SAMPLE_DATA_PAGE_SIZE)
kernel/events/core.c
8417
if (sample_type & PERF_SAMPLE_CODE_PAGE_SIZE)
kernel/events/core.c
8420
if (sample_type & PERF_SAMPLE_AUX) {
kernel/events/core.c
8611
u64 sample_type = event->attr.sample_type;
kernel/events/core.c
8618
filtered_sample_type = sample_type;
kernel/events/core.c
8619
filtered_sample_type |= __cond_set(sample_type, PERF_SAMPLE_CODE_PAGE_SIZE,
kernel/events/core.c
8621
filtered_sample_type |= __cond_set(sample_type, PERF_SAMPLE_DATA_PAGE_SIZE |
kernel/events/core.c
8623
filtered_sample_type |= __cond_set(sample_type, PERF_SAMPLE_STACK_USER,
kernel/events/core.c
8629
data->type = event->attr.sample_type;
kernel/events/core.c
8663
if ((sample_type & ~data->sample_flags) & PERF_SAMPLE_REGS_USER) {
kernel/trace/trace_event_perf.c
71
if (p_event->attr.sample_type & PERF_SAMPLE_STACK_USER)
kernel/trace/trace_event_perf.c
76
if (!(p_event->attr.sample_type & PERF_SAMPLE_RAW))
samples/bpf/trace_event_user.c
262
.sample_type = PERF_SAMPLE_ADDR,
samples/bpf/tracex6_user.c
108
.sample_type = 0,
samples/bpf/tracex6_user.c
117
.sample_type = 0,
samples/bpf/tracex6_user.c
126
.sample_type = 0,
samples/bpf/tracex6_user.c
136
.sample_type = 0,
samples/bpf/tracex6_user.c
148
.sample_type = 0,
samples/bpf/tracex6_user.c
161
.sample_type = 0,
sound/pci/mixart/mixart.c
524
stream_param.sample_type = ST_INTEGER_8;
sound/pci/mixart/mixart.c
528
stream_param.sample_type = ST_INTEGER_16LE;
sound/pci/mixart/mixart.c
532
stream_param.sample_type = ST_INTEGER_16BE;
sound/pci/mixart/mixart.c
536
stream_param.sample_type = ST_INTEGER_24LE;
sound/pci/mixart/mixart.c
540
stream_param.sample_type = ST_INTEGER_24BE;
sound/pci/mixart/mixart.c
544
stream_param.sample_type = ST_FLOATING_POINT_32LE;
sound/pci/mixart/mixart.c
548
stream_param.sample_type = ST_FLOATING_POINT_32BE;
sound/pci/mixart/mixart.c
559
stream_param.sample_type, stream_param.sample_size, stream_param.sampling_freq, stream->channels);
sound/pci/mixart/mixart_core.h
364
u32 sample_type; /* use enum mixart_sample_type */
sound/soc/intel/avs/messages.h
714
u32 sample_type:8;
sound/soc/intel/avs/topology.c
369
audio_format->sample_type = le32_to_cpu(velem->value);
sound/soc/sof/ipc4-topology.c
1621
int sample_type;
sound/soc/sof/ipc4-topology.c
1637
sample_type = sof_ipc4_get_sample_type(sdev, params);
sound/soc/sof/ipc4-topology.c
1638
if (sample_type < 0)
sound/soc/sof/ipc4-topology.c
1639
return sample_type;
sound/soc/sof/ipc4-topology.c
1656
sample_valid_bits == valid_bits && sample_type == type)
sound/soc/sof/ipc4-topology.c
1664
params_channels(params), sample_type);
tools/bpf/bpftool/map_perf_ring.c
113
.sample_type = PERF_SAMPLE_RAW | PERF_SAMPLE_TIME,
tools/include/uapi/linux/perf_event.h
415
__u64 sample_type;
tools/lib/bpf/libbpf.c
14352
attr.sample_type = PERF_SAMPLE_RAW;
tools/lib/perf/evsel.c
564
return (evsel->attr.sample_type & PERF_SAMPLE_READ) &&
tools/lib/perf/evsel.c
565
(evsel->attr.sample_type & PERF_SAMPLE_TID) &&
tools/perf/arch/x86/tests/amd-ibs-period.c
244
attr->sample_type = PERF_SAMPLE_PERIOD;
tools/perf/arch/x86/tests/amd-ibs-period.c
259
attr->sample_type = PERF_SAMPLE_PERIOD;
tools/perf/arch/x86/tests/amd-ibs-via-core-pmu.c
34
attr.sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_TID;
tools/perf/bench/inject-buildid.c
150
event.attr.attr.sample_type = bench_sample_type;
tools/perf/builtin-c2c.c
2947
u64 sample_type = evlist__combined_sample_type(evlist);
tools/perf/builtin-c2c.c
2950
if ((sample_type & PERF_SAMPLE_REGS_USER) &&
tools/perf/builtin-c2c.c
2951
(sample_type & PERF_SAMPLE_STACK_USER)) {
tools/perf/builtin-c2c.c
2954
} else if (sample_type & PERF_SAMPLE_BRANCH_STACK)
tools/perf/builtin-c2c.c
2956
else if (sample_type & PERF_SAMPLE_CALLCHAIN)
tools/perf/builtin-inject.c
1248
perf_event__synthesize_sample(event_sw, evsel->core.attr.sample_type,
tools/perf/builtin-inject.c
1477
attr.sample_type |= PERF_SAMPLE_IDENTIFIER;
tools/perf/builtin-inject.c
1865
ret = perf_event__synthesize_id_sample(array, evsel->core.attr.sample_type, sample);
tools/perf/builtin-inject.c
2143
static int evsel__check_stype(struct evsel *evsel, u64 sample_type, const char *sample_msg)
tools/perf/builtin-inject.c
2148
if (!(attr->sample_type & sample_type)) {
tools/perf/builtin-inject.c
2589
evsel->core.attr.sample_type &= ~PERF_SAMPLE_AUX;
tools/perf/builtin-inject.c
2597
evsel->core.attr.sample_type |= PERF_SAMPLE_BRANCH_STACK;
tools/perf/builtin-inject.c
2658
return (attr->sample_type & dwarf_callchain_flags) == dwarf_callchain_flags;
tools/perf/builtin-inject.c
298
attr.sample_type &= ~PERF_SAMPLE_AUX;
tools/perf/builtin-inject.c
302
attr.sample_type |= PERF_SAMPLE_BRANCH_STACK;
tools/perf/builtin-inject.c
460
u64 orig_type = evsel->core.attr.sample_type;
tools/perf/builtin-inject.c
478
evsel->core.attr.sample_type |= PERF_SAMPLE_BRANCH_STACK;
tools/perf/builtin-inject.c
481
evsel->core.attr.sample_type &= ~PERF_SAMPLE_AUX;
tools/perf/builtin-inject.c
483
sz = perf_event__sample_event_size(sample, evsel->core.attr.sample_type,
tools/perf/builtin-inject.c
489
evsel->core.attr.sample_type = orig_type;
tools/perf/builtin-inject.c
499
err = perf_event__synthesize_sample(event_copy, evsel->core.attr.sample_type,
tools/perf/builtin-inject.c
503
evsel->core.attr.sample_type = orig_type;
tools/perf/builtin-inject.c
513
(evsel->core.attr.sample_type & PERF_SAMPLE_AUX)) {
tools/perf/builtin-inject.c
533
u64 sample_type = evsel->core.attr.sample_type;
tools/perf/builtin-inject.c
592
sample_type &= ~(PERF_SAMPLE_STACK_USER | PERF_SAMPLE_REGS_USER);
tools/perf/builtin-inject.c
594
sz = perf_event__sample_event_size(sample, sample_type,
tools/perf/builtin-inject.c
603
ret = perf_event__synthesize_sample(event_copy, sample_type,
tools/perf/builtin-record.c
1991
evsel->core.attr.sample_type, &sample);
tools/perf/builtin-report.c
1282
u64 sample_type;
tools/perf/builtin-report.c
1293
sample_type = evlist__combined_sample_type(*pevlist);
tools/perf/builtin-report.c
1295
callchain_param_setup(sample_type, perf_session__e_machine(session, /*e_flags=*/NULL));
tools/perf/builtin-report.c
369
u64 sample_type = evlist__combined_sample_type(session->evlist);
tools/perf/builtin-report.c
378
sample_type |= PERF_SAMPLE_CALLCHAIN;
tools/perf/builtin-report.c
382
sample_type |= PERF_SAMPLE_BRANCH_STACK;
tools/perf/builtin-report.c
384
if (!is_pipe && !(sample_type & PERF_SAMPLE_CALLCHAIN)) {
tools/perf/builtin-report.c
410
if (!(sample_type & PERF_SAMPLE_CALLCHAIN)) {
tools/perf/builtin-report.c
418
!(sample_type & PERF_SAMPLE_BRANCH_STACK)) {
tools/perf/builtin-report.c
433
!(sample_type & PERF_SAMPLE_DATA_SRC)) {
tools/perf/builtin-report.c
434
evsel->core.attr.sample_type |= PERF_SAMPLE_DATA_SRC;
tools/perf/builtin-report.c
435
sample_type |= PERF_SAMPLE_DATA_SRC;
tools/perf/builtin-report.c
439
if (!is_pipe && !(sample_type & PERF_SAMPLE_DATA_SRC)) {
tools/perf/builtin-report.c
446
callchain_param_setup(sample_type, perf_session__e_machine(session, /*e_flags=*/NULL));
tools/perf/builtin-script.c
1714
((evsel->core.attr.sample_type & PERF_SAMPLE_ADDR) &&
tools/perf/builtin-script.c
2722
if ((evsel->core.attr.sample_type & PERF_SAMPLE_ADDR) &&
tools/perf/builtin-script.c
2838
u64 sample_type;
tools/perf/builtin-script.c
2868
if (evsel->core.attr.sample_type) {
tools/perf/builtin-script.c
2878
sample_type = evlist__combined_sample_type(evlist);
tools/perf/builtin-script.c
2880
callchain_param_setup(sample_type, e_machine);
tools/perf/builtin-script.c
2884
(sample_type & PERF_SAMPLE_CALLCHAIN ||
tools/perf/builtin-script.c
2885
sample_type & PERF_SAMPLE_BRANCH_STACK ||
tools/perf/builtin-script.c
2886
(sample_type & PERF_SAMPLE_REGS_USER &&
tools/perf/builtin-script.c
2887
sample_type & PERF_SAMPLE_STACK_USER))) {
tools/perf/builtin-script.c
3860
u64 sample_type = evlist__combined_sample_type(session->evlist);
tools/perf/builtin-script.c
3862
callchain_param_setup(sample_type, perf_session__e_machine(session, /*e_flags=*/NULL));
tools/perf/builtin-script.c
443
static int evsel__do_check_stype(struct evsel *evsel, u64 sample_type, const char *sample_msg,
tools/perf/builtin-script.c
450
if (attr->sample_type & sample_type)
tools/perf/builtin-script.c
473
static int evsel__check_stype(struct evsel *evsel, u64 sample_type, const char *sample_msg,
tools/perf/builtin-script.c
476
return evsel__do_check_stype(evsel, sample_type, sample_msg, field, false);
tools/perf/builtin-script.c
514
!(evsel->core.attr.sample_type & (PERF_SAMPLE_IP|PERF_SAMPLE_ADDR))) {
tools/perf/builtin-script.c
526
!(evsel->core.attr.sample_type & (PERF_SAMPLE_IP|PERF_SAMPLE_ADDR))) {
tools/perf/builtin-stat.c
734
attr->sample_type = PERF_SAMPLE_IDENTIFIER;
tools/perf/builtin-timechart.c
589
if (evsel->core.attr.sample_type & PERF_SAMPLE_TIME) {
tools/perf/builtin-trace.c
3509
(sample->evsel->core.attr.sample_type & PERF_SAMPLE_TIME))
tools/perf/tests/bp_account.c
57
attr->sample_type = PERF_SAMPLE_IP;
tools/perf/tests/bp_signal.c
118
pe.sample_type = PERF_SAMPLE_IP;
tools/perf/tests/bp_signal_overflow.c
95
pe.sample_type = PERF_SAMPLE_IP;
tools/perf/tests/dlfilter-test.c
111
static int write_attr(struct test_data *td, u64 sample_type, u64 *id)
tools/perf/tests/dlfilter-test.c
117
.sample_type = sample_type,
tools/perf/tests/dlfilter-test.c
172
static int write_sample(struct test_data *td, u64 sample_type, u64 id, pid_t pid, pid_t tid)
tools/perf/tests/dlfilter-test.c
191
event->header.size = perf_event__sample_event_size(&sample, sample_type,
tools/perf/tests/dlfilter-test.c
194
err = perf_event__synthesize_sample(event, sample_type,
tools/perf/tests/dlfilter-test.c
326
u64 sample_type = TEST_SAMPLE_TYPE;
tools/perf/tests/dlfilter-test.c
371
err = write_attr(td, sample_type, &id);
tools/perf/tests/dlfilter-test.c
384
if (write_sample(td, sample_type, id, pid, tid) != TEST_OK) {
tools/perf/tests/parse-events.c
1035
evsel->core.attr.sample_type == PERF_TP_SAMPLE_TYPE,
tools/perf/tests/parse-events.c
116
PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type, evsel);
tools/perf/tests/parse-events.c
133
PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type,
tools/perf/tests/parse-events.c
683
TEST_ASSERT_EVSEL("wrong sample_type", PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type,
tools/perf/tests/parse-events.c
741
TEST_ASSERT_EVSEL("wrong time", !(PERF_SAMPLE_TIME & evsel->core.attr.sample_type), evsel);
tools/perf/tests/parse-events.c
753
TEST_ASSERT_EVSEL("wrong time", !(PERF_SAMPLE_TIME & evsel->core.attr.sample_type), evsel);
tools/perf/tests/sample-parsing.c
206
static int do_test(u64 sample_type, u64 sample_regs, u64 read_format)
tools/perf/tests/sample-parsing.c
212
.sample_type = sample_type,
tools/perf/tests/sample-parsing.c
292
if (sample_type & PERF_SAMPLE_REGS_USER)
tools/perf/tests/sample-parsing.c
295
if (sample_type & PERF_SAMPLE_REGS_INTR)
tools/perf/tests/sample-parsing.c
298
if (sample_type & PERF_SAMPLE_BRANCH_STACK)
tools/perf/tests/sample-parsing.c
313
sz = perf_event__sample_event_size(&sample, sample_type, read_format,
tools/perf/tests/sample-parsing.c
327
err = perf_event__synthesize_sample(event, sample_type, read_format,
tools/perf/tests/sample-parsing.c
331
"perf_event__synthesize_sample", sample_type, err);
tools/perf/tests/sample-parsing.c
346
evsel.sample_size = __evsel__sample_size(sample_type);
tools/perf/tests/sample-parsing.c
351
"evsel__parse_sample", sample_type, err);
tools/perf/tests/sample-parsing.c
355
if (!samples_same(&sample, &sample_out, sample_type, read_format, evsel.needs_swap)) {
tools/perf/tests/sample-parsing.c
357
sample_type);
tools/perf/tests/sample-parsing.c
361
if (sample_type == PERF_SAMPLE_BRANCH_STACK) {
tools/perf/tests/sample-parsing.c
363
evsel.sample_size = __evsel__sample_size(sample_type);
tools/perf/tests/sample-parsing.c
367
"evsel__parse_sample", sample_type, err);
tools/perf/tests/sample-parsing.c
371
if (!samples_same(&sample, &sample_out_endian, sample_type, read_format, evsel.needs_swap)) {
tools/perf/tests/sample-parsing.c
373
sample_type);
tools/perf/tests/sample-parsing.c
399
u64 sample_type;
tools/perf/tests/sample-parsing.c
415
for (sample_type = 1; sample_type != PERF_SAMPLE_MAX;
tools/perf/tests/sample-parsing.c
416
sample_type <<= 1) {
tools/perf/tests/sample-parsing.c
418
if (sample_type == PERF_SAMPLE_READ) {
tools/perf/tests/sample-parsing.c
420
err = do_test(sample_type, 0, rf[i]);
tools/perf/tests/sample-parsing.c
428
if (sample_type == PERF_SAMPLE_REGS_USER)
tools/perf/tests/sample-parsing.c
431
if (sample_type == PERF_SAMPLE_REGS_INTR)
tools/perf/tests/sample-parsing.c
434
err = do_test(sample_type, sample_regs, 0);
tools/perf/tests/sample-parsing.c
444
sample_type = (PERF_SAMPLE_MAX - 1) & ~PERF_SAMPLE_WEIGHT;
tools/perf/tests/sample-parsing.c
447
err = do_test(sample_type, sample_regs, rf[i]);
tools/perf/tests/sample-parsing.c
451
sample_type = (PERF_SAMPLE_MAX - 1) & ~PERF_SAMPLE_WEIGHT_STRUCT;
tools/perf/tests/sample-parsing.c
453
err = do_test(sample_type, sample_regs, rf[i]);
tools/perf/tests/sw-clock.c
42
.sample_type = PERF_SAMPLE_PERIOD,
tools/perf/tests/wp.c
54
attr->sample_type = PERF_SAMPLE_IP;
tools/perf/ui/browsers/scripts.c
41
if (attr->sample_type & PERF_SAMPLE_BRANCH_STACK)
tools/perf/ui/browsers/scripts.c
43
if (attr->sample_type & PERF_SAMPLE_REGS_INTR)
tools/perf/ui/browsers/scripts.c
45
if (attr->sample_type & PERF_SAMPLE_REGS_USER)
tools/perf/ui/browsers/scripts.c
47
if (attr->sample_type & PERF_SAMPLE_PHYS_ADDR)
tools/perf/util/arm-spe.c
1340
if ((evsel->core.attr.sample_type & PERF_SAMPLE_TIME))
tools/perf/util/arm-spe.c
1775
attr.sample_type = evsel->core.attr.sample_type &
tools/perf/util/arm-spe.c
1777
attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID |
tools/perf/util/arm-spe.c
1781
attr.sample_type &= ~(u64)PERF_SAMPLE_TIME;
tools/perf/util/arm-spe.c
1783
attr.sample_type |= PERF_SAMPLE_TIME;
tools/perf/util/arm-spe.c
1785
spe->sample_type = attr.sample_type;
tools/perf/util/arm-spe.c
1863
attr.sample_type |= PERF_SAMPLE_BRANCH_STACK;
tools/perf/util/arm-spe.c
525
ret = arm_spe__inject_event(spe, event, sample, spe->sample_type);
tools/perf/util/arm-spe.c
74
u64 sample_type;
tools/perf/util/aslr.c
1121
evsel->sample_size = __evsel__sample_size(sample_type);
tools/perf/util/aslr.c
1122
evsel->core.attr.sample_type = sample_type;
tools/perf/util/aslr.c
1131
evsel->core.attr.sample_type = orig_sample_type;
tools/perf/util/aslr.c
1144
evsel->core.attr.sample_type = orig_sample_type;
tools/perf/util/aslr.c
1210
if (attr_size >= (offsetof(struct perf_event_attr, sample_type) + sizeof(u64))) {
tools/perf/util/aslr.c
1211
event->attr.attr.sample_type &= ASLR_SUPPORTED_SAMPLE_TYPE;
tools/perf/util/aslr.c
1355
priv->orig_sample_type = evsel->core.attr.sample_type;
tools/perf/util/aslr.c
1373
evsel->core.attr.sample_type &= ASLR_SUPPORTED_SAMPLE_TYPE;
tools/perf/util/aslr.c
1376
evsel->sample_size = __evsel__sample_size(evsel->core.attr.sample_type);
tools/perf/util/aslr.c
1402
evsel->core.attr.sample_type = priv->orig_sample_type;
tools/perf/util/aslr.c
711
u64 sample_type;
tools/perf/util/aslr.c
742
orig_sample_type = evsel->core.attr.sample_type;
tools/perf/util/aslr.c
749
sample_type = orig_sample_type;
tools/perf/util/aslr.c
750
sample_type &= ~PERF_SAMPLE_REGS_USER;
tools/perf/util/aslr.c
751
sample_type &= ~PERF_SAMPLE_REGS_INTR;
tools/perf/util/aslr.c
752
sample_type &= ASLR_SUPPORTED_SAMPLE_TYPE;
tools/perf/util/bpf-filter.c
126
(evsel->core.attr.sample_type & (1 << (expr->term - PBF_TERM_SAMPLE_START))))
tools/perf/util/bpf_off_cpu.c
323
u64 sample_type, val, sid = 0;
tools/perf/util/bpf_off_cpu.c
343
sample_type = evsel->core.attr.sample_type;
tools/perf/util/bpf_off_cpu.c
345
if (sample_type & ~OFFCPU_SAMPLE_TYPES) {
tools/perf/util/bpf_off_cpu.c
347
(unsigned long long)sample_type);
tools/perf/util/bpf_off_cpu.c
351
if (sample_type & (PERF_SAMPLE_ID | PERF_SAMPLE_IDENTIFIER)) {
tools/perf/util/bpf_off_cpu.c
366
if (sample_type & PERF_SAMPLE_IDENTIFIER)
tools/perf/util/bpf_off_cpu.c
368
if (sample_type & PERF_SAMPLE_IP)
tools/perf/util/bpf_off_cpu.c
370
if (sample_type & PERF_SAMPLE_TID)
tools/perf/util/bpf_off_cpu.c
372
if (sample_type & PERF_SAMPLE_TIME)
tools/perf/util/bpf_off_cpu.c
374
if (sample_type & PERF_SAMPLE_CPU)
tools/perf/util/bpf_off_cpu.c
376
if (sample_type & PERF_SAMPLE_PERIOD)
tools/perf/util/bpf_off_cpu.c
378
if (sample_type & PERF_SAMPLE_RAW) {
tools/perf/util/bpf_off_cpu.c
411
if (sample_type & PERF_SAMPLE_CGROUP)
tools/perf/util/callchain.c
1746
void callchain_param_setup(u64 sample_type, uint16_t e_machine)
tools/perf/util/callchain.c
1749
if ((sample_type & PERF_SAMPLE_REGS_USER) &&
tools/perf/util/callchain.c
1750
(sample_type & PERF_SAMPLE_STACK_USER)) {
tools/perf/util/callchain.c
1753
} else if (sample_type & PERF_SAMPLE_BRANCH_STACK)
tools/perf/util/callchain.h
297
void callchain_param_setup(u64 sample_type, uint16_t e_machine);
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
375
enum cs_etm_sample_type sample_type)
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
391
packet_queue->packet_buffer[et].sample_type = sample_type;
tools/perf/util/cs-etm.c
1393
if (packet->sample_type == CS_ETM_DISCONTINUITY ||
tools/perf/util/cs-etm.c
1394
packet->sample_type == CS_ETM_EXCEPTION)
tools/perf/util/cs-etm.c
1404
if (packet->sample_type == CS_ETM_DISCONTINUITY)
tools/perf/util/cs-etm.c
1592
if (packet->sample_type == CS_ETM_DISCONTINUITY) {
tools/perf/util/cs-etm.c
1783
attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK;
tools/perf/util/cs-etm.c
1784
attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID |
tools/perf/util/cs-etm.c
1787
attr.sample_type &= ~(u64)PERF_SAMPLE_TIME;
tools/perf/util/cs-etm.c
1789
attr.sample_type |= PERF_SAMPLE_TIME;
tools/perf/util/cs-etm.c
1805
attr.sample_type |= PERF_SAMPLE_ADDR;
tools/perf/util/cs-etm.c
1809
etm->branches_sample_type = attr.sample_type;
tools/perf/util/cs-etm.c
1812
attr.sample_type &= ~(u64)PERF_SAMPLE_ADDR;
tools/perf/util/cs-etm.c
1816
attr.sample_type |= PERF_SAMPLE_BRANCH_STACK;
tools/perf/util/cs-etm.c
1832
etm->instructions_sample_type = attr.sample_type;
tools/perf/util/cs-etm.c
1857
tidq->prev_packet->sample_type == CS_ETM_RANGE &&
tools/perf/util/cs-etm.c
1948
if (tidq->prev_packet->sample_type == CS_ETM_DISCONTINUITY)
tools/perf/util/cs-etm.c
1952
if (tidq->prev_packet->sample_type == CS_ETM_RANGE &&
tools/perf/util/cs-etm.c
1981
if (tidq->prev_packet->sample_type == CS_ETM_RANGE)
tools/perf/util/cs-etm.c
1994
if (tidq->prev_packet->sample_type == CS_ETM_EMPTY)
tools/perf/util/cs-etm.c
1999
tidq->prev_packet->sample_type == CS_ETM_RANGE) {
tools/perf/util/cs-etm.c
2025
tidq->prev_packet->sample_type == CS_ETM_RANGE) {
tools/perf/util/cs-etm.c
2057
tidq->prev_packet->sample_type == CS_ETM_RANGE) {
tools/perf/util/cs-etm.c
2285
switch (packet->sample_type) {
tools/perf/util/cs-etm.c
2349
if (prev_packet->sample_type == CS_ETM_DISCONTINUITY)
tools/perf/util/cs-etm.c
2374
if (prev_packet->sample_type == CS_ETM_RANGE)
tools/perf/util/cs-etm.c
2413
if (prev_packet->sample_type == CS_ETM_RANGE)
tools/perf/util/cs-etm.c
2442
if (prev_packet->sample_type == CS_ETM_RANGE)
tools/perf/util/cs-etm.c
2514
switch (tidq->packet->sample_type) {
tools/perf/util/cs-etm.h
174
enum cs_etm_sample_type sample_type;
tools/perf/util/data-convert-bt.c
1113
u64 type = evsel->core.attr.sample_type;
tools/perf/util/data-convert-bt.c
607
u64 type = evsel->core.attr.sample_type;
tools/perf/util/data-convert-bt.c
777
if (evsel->core.attr.sample_type & PERF_SAMPLE_CPU)
tools/perf/util/data-convert-bt.c
815
unsigned long type = evsel->core.attr.sample_type;
tools/perf/util/data-convert-json.c
168
u64 sample_type = __evlist__combined_sample_type(sample->evsel->evlist);
tools/perf/util/data-convert-json.c
196
if ((sample_type & PERF_SAMPLE_CPU))
tools/perf/util/dlfilter.c
563
(evsel->core.attr.sample_type & PERF_SAMPLE_ADDR) &&
tools/perf/util/evlist.c
1264
evlist->combined_sample_type |= evsel->core.attr.sample_type;
tools/perf/util/evlist.c
1355
u64 sample_type = first->core.attr.sample_type;
tools/perf/util/evlist.c
1365
if ((sample_type & PERF_SAMPLE_READ) &&
tools/perf/util/evsel.c
1176
u64 type = evsel->core.attr.sample_type;
tools/perf/util/evsel.c
1207
prev_type = evsel_prev->core.attr.sample_type;
tools/perf/util/evsel.c
153
WRITE_ASS(sample_type, "llu");
tools/perf/util/evsel.c
1530
evsel->core.attr.sample_type & PERF_SAMPLE_RAW;
tools/perf/util/evsel.c
1811
evsel->core.attr.sample_type &= OFFCPU_SAMPLE_TYPES;
tools/perf/util/evsel.c
2507
(evsel->core.attr.sample_type & PERF_SAMPLE_READ))
tools/perf/util/evsel.c
2649
.sample_type = PERF_SAMPLE_BRANCH_STACK,
tools/perf/util/evsel.c
2788
attr.sample_type = PERF_SAMPLE_READ | PERF_SAMPLE_TID;
tools/perf/util/evsel.c
2794
attr.sample_type = 0;
tools/perf/util/evsel.c
2803
attr.sample_type = PERF_SAMPLE_WEIGHT_STRUCT;
tools/perf/util/evsel.c
2808
attr.sample_type = 0;
tools/perf/util/evsel.c
2810
attr.sample_type = PERF_SAMPLE_CODE_PAGE_SIZE;
tools/perf/util/evsel.c
2815
attr.sample_type = 0;
tools/perf/util/evsel.c
2817
attr.sample_type = PERF_SAMPLE_DATA_PAGE_SIZE;
tools/perf/util/evsel.c
2822
attr.sample_type = 0;
tools/perf/util/evsel.c
2903
(evsel->core.attr.sample_type & PERF_SAMPLE_READ) &&
tools/perf/util/evsel.c
2915
if ((evsel->core.attr.sample_type & PERF_SAMPLE_WEIGHT_STRUCT) &&
tools/perf/util/evsel.c
311
int __evsel__sample_size(u64 sample_type)
tools/perf/util/evsel.c
313
u64 mask = sample_type & PERF_SAMPLE_MASK;
tools/perf/util/evsel.c
3182
u64 type = evsel->core.attr.sample_type;
tools/perf/util/evsel.c
335
static int __perf_evsel__calc_id_pos(u64 sample_type)
tools/perf/util/evsel.c
339
if (sample_type & PERF_SAMPLE_IDENTIFIER)
tools/perf/util/evsel.c
3396
u64 type = evsel->core.attr.sample_type;
tools/perf/util/evsel.c
342
if (!(sample_type & PERF_SAMPLE_ID))
tools/perf/util/evsel.c
345
if (sample_type & PERF_SAMPLE_IP)
tools/perf/util/evsel.c
348
if (sample_type & PERF_SAMPLE_TID)
tools/perf/util/evsel.c
351
if (sample_type & PERF_SAMPLE_TIME)
tools/perf/util/evsel.c
354
if (sample_type & PERF_SAMPLE_ADDR)
tools/perf/util/evsel.c
368
static int __perf_evsel__calc_is_pos(u64 sample_type)
tools/perf/util/evsel.c
372
if (sample_type & PERF_SAMPLE_IDENTIFIER)
tools/perf/util/evsel.c
375
if (!(sample_type & PERF_SAMPLE_ID))
tools/perf/util/evsel.c
378
if (sample_type & PERF_SAMPLE_CPU)
tools/perf/util/evsel.c
3793
u64 type = evsel->core.attr.sample_type;
tools/perf/util/evsel.c
381
if (sample_type & PERF_SAMPLE_STREAM_ID)
tools/perf/util/evsel.c
3836
u64 sample_type = evsel->core.attr.sample_type;
tools/perf/util/evsel.c
3839
if (sample_type & PERF_SAMPLE_TID)
tools/perf/util/evsel.c
3842
if (sample_type & PERF_SAMPLE_TIME)
tools/perf/util/evsel.c
3845
if (sample_type & PERF_SAMPLE_ID)
tools/perf/util/evsel.c
3848
if (sample_type & PERF_SAMPLE_STREAM_ID)
tools/perf/util/evsel.c
3851
if (sample_type & PERF_SAMPLE_CPU)
tools/perf/util/evsel.c
3854
if (sample_type & PERF_SAMPLE_IDENTIFIER)
tools/perf/util/evsel.c
389
evsel->id_pos = __perf_evsel__calc_id_pos(evsel->core.attr.sample_type);
tools/perf/util/evsel.c
390
evsel->is_pos = __perf_evsel__calc_is_pos(evsel->core.attr.sample_type);
tools/perf/util/evsel.c
396
if (!(evsel->core.attr.sample_type & bit)) {
tools/perf/util/evsel.c
397
evsel->core.attr.sample_type |= bit;
tools/perf/util/evsel.c
406
if (evsel->core.attr.sample_type & bit) {
tools/perf/util/evsel.c
407
evsel->core.attr.sample_type &= ~bit;
tools/perf/util/evsel.c
4303
if (evsel->core.attr.sample_type & PERF_SAMPLE_BRANCH_STACK)
tools/perf/util/evsel.c
4344
if (evsel->core.attr.sample_type & PERF_SAMPLE_CODE_PAGE_SIZE && perf_missing_features.code_page_size)
tools/perf/util/evsel.c
4346
if (evsel->core.attr.sample_type & PERF_SAMPLE_DATA_PAGE_SIZE && perf_missing_features.data_page_size)
tools/perf/util/evsel.c
458
evsel->sample_size = __evsel__sample_size(attr->sample_type);
tools/perf/util/evsel.c
479
if (evsel__is_bpf_output(evsel) && !attr->sample_type) {
tools/perf/util/evsel.c
480
evsel->core.attr.sample_type = (PERF_SAMPLE_RAW | PERF_SAMPLE_TIME |
tools/perf/util/evsel.c
641
.sample_type = (PERF_SAMPLE_RAW | PERF_SAMPLE_TIME |
tools/perf/util/evsel.h
306
int __evsel__sample_size(u64 sample_type);
tools/perf/util/evsel.h
565
return evsel->core.attr.sample_type & PERF_SAMPLE_CALLCHAIN ||
tools/perf/util/evsel.h
575
return evsel->core.attr.sample_type & PERF_SAMPLE_BRANCH_STACK ||
tools/perf/util/header.c
2171
if (attr->sample_type & ~(PERF_SAMPLE_MAX-1)) {
tools/perf/util/header.c
2174
attr->sample_type);
tools/perf/util/header.c
2185
if ((attr->sample_type & PERF_SAMPLE_BRANCH_STACK) &&
tools/perf/util/intel-bts.c
768
attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK;
tools/perf/util/intel-bts.c
769
attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID |
tools/perf/util/intel-bts.c
771
attr.sample_type &= ~(u64)PERF_SAMPLE_TIME;
tools/perf/util/intel-bts.c
772
attr.sample_type &= ~(u64)PERF_SAMPLE_CPU;
tools/perf/util/intel-bts.c
786
attr.sample_type |= PERF_SAMPLE_ADDR;
tools/perf/util/intel-bts.c
788
id, (u64)attr.sample_type);
tools/perf/util/intel-bts.c
796
bts->branches_sample_type = attr.sample_type;
tools/perf/util/intel-bts.c
803
__evsel__sample_size(attr.sample_type);
tools/perf/util/intel-pt.c
1121
if (!(evsel->core.attr.sample_type & PERF_SAMPLE_TIME))
tools/perf/util/intel-pt.c
1183
if ((evsel->core.attr.sample_type & PERF_SAMPLE_AUX) &&
tools/perf/util/intel-pt.c
1226
if (!(evsel->core.attr.sample_type & PERF_SAMPLE_CALLCHAIN))
tools/perf/util/intel-pt.c
1264
if (!(evsel->core.attr.sample_type & PERF_SAMPLE_BRANCH_STACK))
tools/perf/util/intel-pt.c
2442
u64 sample_type = evsel->core.attr.sample_type;
tools/perf/util/intel-pt.c
2473
if (sample_type & PERF_SAMPLE_TIME) {
tools/perf/util/intel-pt.c
2484
if (sample_type & PERF_SAMPLE_CALLCHAIN &&
tools/perf/util/intel-pt.c
2492
if (sample_type & PERF_SAMPLE_REGS_INTR &&
tools/perf/util/intel-pt.c
2509
if ((sample_type | evsel->synth_sample_type) & PERF_SAMPLE_BRANCH_STACK) {
tools/perf/util/intel-pt.c
2524
if (sample_type & PERF_SAMPLE_ADDR && items->has_mem_access_address)
tools/perf/util/intel-pt.c
2527
if (sample_type & PERF_SAMPLE_WEIGHT_TYPE) {
tools/perf/util/intel-pt.c
2557
if (sample_type & PERF_SAMPLE_DATA_SRC) {
tools/perf/util/intel-pt.c
2569
if (sample_type & PERF_SAMPLE_TRANSACTION && items->has_tsx_aux_info) {
tools/perf/util/intel-pt.c
2581
sample_type | evsel->synth_sample_type);
tools/perf/util/intel-pt.c
3939
name, id, (u64)attr->sample_type);
tools/perf/util/intel-pt.c
3994
attr.sample_type = evsel->core.attr.sample_type & PERF_SAMPLE_MASK;
tools/perf/util/intel-pt.c
3995
attr.sample_type |= PERF_SAMPLE_IP | PERF_SAMPLE_TID |
tools/perf/util/intel-pt.c
3998
attr.sample_type &= ~(u64)PERF_SAMPLE_TIME;
tools/perf/util/intel-pt.c
4000
attr.sample_type |= PERF_SAMPLE_TIME;
tools/perf/util/intel-pt.c
4002
attr.sample_type &= ~(u64)PERF_SAMPLE_CPU;
tools/perf/util/intel-pt.c
4016
attr.sample_type |= PERF_SAMPLE_ADDR;
tools/perf/util/intel-pt.c
4021
pt->branches_sample_type = attr.sample_type;
tools/perf/util/intel-pt.c
4024
attr.sample_type &= ~(u64)PERF_SAMPLE_ADDR;
tools/perf/util/intel-pt.c
4028
attr.sample_type |= PERF_SAMPLE_CALLCHAIN;
tools/perf/util/intel-pt.c
4030
attr.sample_type |= PERF_SAMPLE_BRANCH_STACK;
tools/perf/util/intel-pt.c
4050
pt->instructions_sample_type = attr.sample_type;
tools/perf/util/intel-pt.c
4066
pt->cycles_sample_type = attr.sample_type;
tools/perf/util/intel-pt.c
4071
attr.sample_type &= ~(u64)PERF_SAMPLE_PERIOD;
tools/perf/util/intel-pt.c
4080
pt->transactions_sample_type = attr.sample_type;
tools/perf/util/intel-pt.c
4087
attr.sample_type |= PERF_SAMPLE_RAW;
tools/perf/util/intel-pt.c
4095
pt->ptwrites_sample_type = attr.sample_type;
tools/perf/util/intel-pt.c
4103
pt->pwr_events_sample_type = attr.sample_type;
tools/perf/util/intel-pt.c
4161
pt->evt_sample_type = attr.sample_type;
tools/perf/util/intel-pt.c
4172
pt->iflag_chg_sample_type = attr.sample_type;
tools/perf/util/jitdump.c
42
uint64_t sample_type;
tools/perf/util/jitdump.c
510
if (jd->sample_type & PERF_SAMPLE_TID) {
tools/perf/util/jitdump.c
514
if (jd->sample_type & PERF_SAMPLE_TIME)
tools/perf/util/jitdump.c
621
if (jd->sample_type & PERF_SAMPLE_TID) {
tools/perf/util/jitdump.c
625
if (jd->sample_type & PERF_SAMPLE_TIME)
tools/perf/util/jitdump.c
902
jd.sample_type = first->core.attr.sample_type;
tools/perf/util/machine.c
3038
if (!((evsel->core.attr.sample_type & PERF_SAMPLE_REGS_USER) &&
tools/perf/util/machine.c
3039
(evsel->core.attr.sample_type & PERF_SAMPLE_STACK_USER)))
tools/perf/util/perf-regs-arch/perf_regs_aarch64.c
112
.sample_type = PERF_SAMPLE_REGS_USER,
tools/perf/util/perf-regs-arch/perf_regs_powerpc.c
139
.sample_type = PERF_SAMPLE_REGS_INTR,
tools/perf/util/perf-regs-arch/perf_regs_x86.c
243
.sample_type = PERF_SAMPLE_REGS_INTR,
tools/perf/util/perf_api_probe.c
95
evsel->core.attr.sample_type |= PERF_SAMPLE_IDENTIFIER;
tools/perf/util/perf_event_attr_fprintf.c
338
PRINT_ATTRf(sample_type, p_sample_type);
tools/perf/util/powerpc-vpadtl.c
657
attr.sample_type = evsel->core.attr.sample_type;
tools/perf/util/python.c
1013
&sample_period, &attr.sample_type,
tools/perf/util/python.c
1241
evsel_attr_member_def(sample_type, T_ULONGLONG, "attribute sample_type."),
tools/perf/util/python.c
954
.sample_type = PERF_SAMPLE_PERIOD | PERF_SAMPLE_TID,
tools/perf/util/record.c
129
if (evsel->core.attr.sample_type == first->core.attr.sample_type)
tools/perf/util/record.c
91
attr->sample_type = read_sampler->core.attr.sample_type |
tools/perf/util/record.c
92
leader->core.attr.sample_type;
tools/perf/util/session.c
1492
u64 sample_type = __evlist__combined_sample_type(evlist);
tools/perf/util/session.c
1500
if ((sample_type & PERF_SAMPLE_CPU))
tools/perf/util/session.c
1503
if (sample_type & PERF_SAMPLE_TIME)
tools/perf/util/session.c
1574
u64 sample_type;
tools/perf/util/session.c
1582
sample_type = evsel->core.attr.sample_type;
tools/perf/util/session.c
1584
if (sample_type & (PERF_SAMPLE_REGS_USER | PERF_SAMPLE_REGS_INTR)) {
tools/perf/util/session.c
1600
if (sample_type & PERF_SAMPLE_REGS_USER)
tools/perf/util/session.c
1603
if (sample_type & PERF_SAMPLE_REGS_INTR)
tools/perf/util/session.c
1606
if (sample_type & PERF_SAMPLE_STACK_USER)
tools/perf/util/session.c
1609
if (sample_type & PERF_SAMPLE_WEIGHT_TYPE) {
tools/perf/util/session.c
1611
if (sample_type & PERF_SAMPLE_WEIGHT_STRUCT) {
tools/perf/util/session.c
1618
if (sample_type & PERF_SAMPLE_DATA_SRC)
tools/perf/util/session.c
1621
if (sample_type & PERF_SAMPLE_PHYS_ADDR)
tools/perf/util/session.c
1624
if (sample_type & PERF_SAMPLE_DATA_PAGE_SIZE)
tools/perf/util/session.c
1627
if (sample_type & PERF_SAMPLE_CODE_PAGE_SIZE)
tools/perf/util/session.c
1630
if (sample_type & PERF_SAMPLE_TRANSACTION)
tools/perf/util/session.c
1633
if (sample_type & PERF_SAMPLE_READ)
tools/perf/util/session.c
1802
u64 sample_type = evsel->core.attr.sample_type;
tools/perf/util/session.c
1807
if (!(sample_type & PERF_SAMPLE_READ))
tools/perf/util/session.c
2169
if ((evsel->core.attr.sample_type & PERF_SAMPLE_CPU) &&
tools/perf/util/session.c
3879
if (!(evsel->core.attr.sample_type & PERF_SAMPLE_CPU)) {
tools/perf/util/session.c
620
bswap_field_64(sample_type);
tools/perf/util/synthetic-events.c
2289
u64 sample_type = sample->evsel ? sample->evsel->core.attr.sample_type : 0;
tools/perf/util/synthetic-events.c
2315
ret = perf_event__synthesize_id_sample(array, sample_type, sample);
tools/perf/util/synthetic-events.c
2342
u64 sample_type = sample->evsel ? sample->evsel->core.attr.sample_type : 0;
tools/perf/util/synthetic-events.c
2379
ret = perf_event__synthesize_id_sample(array, sample_type, sample);
tools/power/x86/turbostat/turbostat.c
2610
attr.sample_type = PERF_SAMPLE_IDENTIFIER;
tools/testing/selftests/bpf/benchs/bench_ringbufs.c
457
attr.sample_type = PERF_SAMPLE_RAW;
tools/testing/selftests/bpf/prog_tests/get_branch_snapshot.c
42
attr.sample_type = PERF_SAMPLE_BRANCH_STACK;
tools/testing/selftests/bpf/prog_tests/get_stackid_cannot_attach.c
13
.sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_BRANCH_STACK,
tools/testing/selftests/bpf/prog_tests/get_stackid_cannot_attach.c
55
attr.sample_type |= PERF_SAMPLE_CALLCHAIN;
tools/testing/selftests/bpf/prog_tests/perf_branches.c
126
attr.sample_type = PERF_SAMPLE_BRANCH_STACK;
tools/testing/selftests/bpf/prog_tests/perf_event_stackmap.c
60
.sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_BRANCH_STACK |
tools/testing/selftests/bpf/prog_tests/perf_skip.c
67
attr.sample_type = PERF_SAMPLE_IP;
tools/testing/selftests/bpf/prog_tests/task_fd_query_tp.c
38
attr.sample_type = PERF_SAMPLE_RAW;
tools/testing/selftests/bpf/prog_tests/tp_attach_query.c
37
attr.sample_type = PERF_SAMPLE_RAW | PERF_SAMPLE_CALLCHAIN;
tools/testing/selftests/powerpc/pmu/event.c
39
e->attr.sample_type = PERF_SAMPLE_REGS_INTR;
tools/testing/selftests/powerpc/pmu/sampling_tests/bhrb_filter_map_test.c
59
event.attr.sample_type = PERF_SAMPLE_BRANCH_STACK;
tools/testing/selftests/powerpc/pmu/sampling_tests/bhrb_no_crash_wo_pmu_test.c
41
event.attr.sample_type = PERF_SAMPLE_BRANCH_STACK;
tools/testing/selftests/powerpc/pmu/sampling_tests/intr_regs_no_crash_wo_pmu_test.c
40
event.attr.sample_type = PERF_SAMPLE_REGS_INTR;
tools/testing/selftests/powerpc/pmu/sampling_tests/misc.c
115
event.attr.sample_type = PERF_SAMPLE_REGS_INTR;
tools/testing/selftests/powerpc/pmu/sampling_tests/misc.c
277
u64 type = event->attr.sample_type;
tools/testing/selftests/powerpc/pmu/sampling_tests/mmcra_bhrb_any_test.c
36
event.attr.sample_type |= PERF_SAMPLE_BRANCH_STACK;
tools/testing/selftests/powerpc/pmu/sampling_tests/mmcra_bhrb_cond_test.c
40
event.attr.sample_type |= PERF_SAMPLE_BRANCH_STACK;
tools/testing/selftests/powerpc/pmu/sampling_tests/mmcra_bhrb_disable_test.c
37
event.attr.sample_type |= PERF_SAMPLE_BRANCH_STACK;
tools/testing/selftests/powerpc/pmu/sampling_tests/mmcra_bhrb_ind_call_test.c
40
event.attr.sample_type |= PERF_SAMPLE_BRANCH_STACK;
tools/testing/selftests/resctrl/resctrl_val.c
55
imc_counters_config[i].pe.sample_type = PERF_SAMPLE_IDENTIFIER;
tools/testing/selftests/user_events/perf_test.c
182
pe.sample_type = PERF_SAMPLE_RAW;
tools/testing/selftests/user_events/perf_test.c
244
pe.sample_type = PERF_SAMPLE_RAW;