include/uapi/linux/perf_event.h
416
__u64 read_format;
kernel/events/core.c
13617
if (attr->read_format & ~(PERF_FORMAT_MAX-1))
kernel/events/core.c
2021
static int __perf_event_read_size(u64 read_format, int nr_siblings)
kernel/events/core.c
2027
if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED)
kernel/events/core.c
2030
if (read_format & PERF_FORMAT_TOTAL_TIME_RUNNING)
kernel/events/core.c
2033
if (read_format & PERF_FORMAT_ID)
kernel/events/core.c
2036
if (read_format & PERF_FORMAT_LOST)
kernel/events/core.c
2039
if (read_format & PERF_FORMAT_GROUP) {
kernel/events/core.c
2099
__perf_event_read_size(event->attr.read_format,
kernel/events/core.c
2146
if (__perf_event_read_size(event->attr.read_format,
kernel/events/core.c
2150
if (__perf_event_read_size(group_leader->attr.read_format,
kernel/events/core.c
2165
if (__perf_event_read_size(sibling->attr.read_format,
kernel/events/core.c
6076
u64 read_format, u64 *values)
kernel/events/core.c
6122
if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED) {
kernel/events/core.c
6127
if (read_format & PERF_FORMAT_TOTAL_TIME_RUNNING) {
kernel/events/core.c
6136
if (read_format & PERF_FORMAT_ID)
kernel/events/core.c
6138
if (read_format & PERF_FORMAT_LOST)
kernel/events/core.c
6143
if (read_format & PERF_FORMAT_ID)
kernel/events/core.c
6145
if (read_format & PERF_FORMAT_LOST)
kernel/events/core.c
6155
u64 read_format, char __user *buf)
kernel/events/core.c
6172
ret = __perf_read_group_add(leader, read_format, values);
kernel/events/core.c
6177
ret = __perf_read_group_add(child, read_format, values);
kernel/events/core.c
6197
u64 read_format, char __user *buf)
kernel/events/core.c
6204
if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED)
kernel/events/core.c
6206
if (read_format & PERF_FORMAT_TOTAL_TIME_RUNNING)
kernel/events/core.c
6208
if (read_format & PERF_FORMAT_ID)
kernel/events/core.c
6210
if (read_format & PERF_FORMAT_LOST)
kernel/events/core.c
6238
u64 read_format = event->attr.read_format;
kernel/events/core.c
6253
if (read_format & PERF_FORMAT_GROUP)
kernel/events/core.c
6254
ret = perf_read_group(event, read_format, buf);
kernel/events/core.c
6256
ret = perf_read_one(event, read_format, buf);
kernel/events/core.c
8137
u64 read_format = event->attr.read_format;
kernel/events/core.c
8142
if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED) {
kernel/events/core.c
8146
if (read_format & PERF_FORMAT_TOTAL_TIME_RUNNING) {
kernel/events/core.c
8150
if (read_format & PERF_FORMAT_ID)
kernel/events/core.c
8152
if (read_format & PERF_FORMAT_LOST)
kernel/events/core.c
8163
u64 read_format = event->attr.read_format;
kernel/events/core.c
8177
if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED)
kernel/events/core.c
8180
if (read_format & PERF_FORMAT_TOTAL_TIME_RUNNING)
kernel/events/core.c
8187
if (read_format & PERF_FORMAT_ID)
kernel/events/core.c
8189
if (read_format & PERF_FORMAT_LOST)
kernel/events/core.c
8201
if (read_format & PERF_FORMAT_ID)
kernel/events/core.c
8203
if (read_format & PERF_FORMAT_LOST)
kernel/events/core.c
8230
u64 read_format = event->attr.read_format;
kernel/events/core.c
8239
if (read_format & PERF_FORMAT_TOTAL_TIMES)
kernel/events/core.c
8242
if (event->attr.read_format & PERF_FORMAT_GROUP)
samples/bpf/tracex6_user.c
107
.read_format = 0,
samples/bpf/tracex6_user.c
116
.read_format = 0,
samples/bpf/tracex6_user.c
125
.read_format = 0,
samples/bpf/tracex6_user.c
135
.read_format = 0,
samples/bpf/tracex6_user.c
147
.read_format = 0,
samples/bpf/tracex6_user.c
160
.read_format = 0,
tools/include/uapi/linux/perf_event.h
416
__u64 read_format;
tools/lib/perf/evlist.c
329
return first->attr.read_format;
tools/lib/perf/evlist.c
394
if (!(evsel->attr.read_format & PERF_FORMAT_ID) ||
tools/lib/perf/evlist.c
398
if (evsel->attr.read_format & PERF_FORMAT_TOTAL_TIME_ENABLED)
tools/lib/perf/evlist.c
400
if (evsel->attr.read_format & PERF_FORMAT_TOTAL_TIME_RUNNING)
tools/lib/perf/evlist.c
622
if (evsel->attr.read_format & PERF_FORMAT_ID) {
tools/lib/perf/evlist.c
738
if ((evsel->attr.read_format & PERF_FORMAT_ID) &&
tools/lib/perf/evsel.c
308
u64 read_format = evsel->attr.read_format;
tools/lib/perf/evsel.c
313
if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED)
tools/lib/perf/evsel.c
316
if (read_format & PERF_FORMAT_TOTAL_TIME_RUNNING)
tools/lib/perf/evsel.c
319
if (read_format & PERF_FORMAT_ID)
tools/lib/perf/evsel.c
322
if (read_format & PERF_FORMAT_LOST)
tools/lib/perf/evsel.c
325
if (read_format & PERF_FORMAT_GROUP) {
tools/lib/perf/evsel.c
340
u64 read_format = evsel->attr.read_format;
tools/lib/perf/evsel.c
360
if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED)
tools/lib/perf/evsel.c
362
if (read_format & PERF_FORMAT_TOTAL_TIME_RUNNING)
tools/lib/perf/evsel.c
367
if (read_format & PERF_FORMAT_ID)
tools/lib/perf/evsel.c
369
if (read_format & PERF_FORMAT_LOST)
tools/lib/perf/evsel.c
383
u64 read_format = evsel->attr.read_format;
tools/lib/perf/evsel.c
388
if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED)
tools/lib/perf/evsel.c
391
if (read_format & PERF_FORMAT_TOTAL_TIME_RUNNING)
tools/lib/perf/evsel.c
394
if (read_format & PERF_FORMAT_ID)
tools/lib/perf/evsel.c
397
if (read_format & PERF_FORMAT_LOST)
tools/lib/perf/evsel.c
406
u64 read_format = evsel->attr.read_format;
tools/lib/perf/evsel.c
414
if (read_format & PERF_FORMAT_GROUP)
tools/lib/perf/evsel.c
418
!(read_format & (PERF_FORMAT_ID | PERF_FORMAT_LOST)) &&
tools/lib/perf/tests/test-evlist.c
449
.read_format = PERF_FORMAT_TOTAL_TIME_ENABLED |
tools/lib/perf/tests/test-evsel.c
216
if (attr->read_format & PERF_FORMAT_TOTAL_TIME_ENABLED)
tools/lib/perf/tests/test-evsel.c
218
if (attr->read_format & PERF_FORMAT_TOTAL_TIME_RUNNING)
tools/lib/perf/tests/test-evsel.c
220
if (attr->read_format & PERF_FORMAT_ID)
tools/lib/perf/tests/test-evsel.c
222
if (attr->read_format & PERF_FORMAT_LOST)
tools/lib/perf/tests/test-evsel.c
237
attr->read_format |= PERF_FORMAT_GROUP;
tools/lib/perf/tests/test-evsel.c
241
attr->read_format &= ~PERF_FORMAT_GROUP;
tools/lib/perf/tests/test-evsel.c
262
if (attr->read_format & PERF_FORMAT_TOTAL_TIME_ENABLED)
tools/lib/perf/tests/test-evsel.c
264
if (attr->read_format & PERF_FORMAT_TOTAL_TIME_RUNNING)
tools/lib/perf/tests/test-evsel.c
266
if (attr->read_format & PERF_FORMAT_ID)
tools/lib/perf/tests/test-evsel.c
268
if (attr->read_format & PERF_FORMAT_LOST)
tools/lib/perf/tests/test-evsel.c
275
if (attr->read_format & PERF_FORMAT_TOTAL_TIME_ENABLED)
tools/lib/perf/tests/test-evsel.c
277
if (attr->read_format & PERF_FORMAT_TOTAL_TIME_RUNNING)
tools/lib/perf/tests/test-evsel.c
279
if (attr->read_format & PERF_FORMAT_ID)
tools/lib/perf/tests/test-evsel.c
281
if (attr->read_format & PERF_FORMAT_LOST)
tools/lib/perf/tests/test-evsel.c
323
attr.read_format = test_formats[i];
tools/lib/perf/tests/test-evsel.c
340
attr.read_format = test_formats[i];
tools/perf/builtin-inject.c
1249
evsel->core.attr.read_format,
tools/perf/builtin-inject.c
484
evsel->core.attr.read_format,
tools/perf/builtin-inject.c
500
evsel->core.attr.read_format,
tools/perf/builtin-inject.c
595
evsel->core.attr.read_format,
tools/perf/builtin-inject.c
604
evsel->core.attr.read_format,
tools/perf/builtin-stat.c
549
return STAT_RECORD || counter->core.attr.read_format & PERF_FORMAT_ID;
tools/perf/builtin-stat.c
714
attr->read_format = PERF_FORMAT_TOTAL_TIME_ENABLED |
tools/perf/builtin-stat.c
723
attr->read_format |= PERF_FORMAT_ID|PERF_FORMAT_GROUP;
tools/perf/tests/event-times.c
182
evsel->core.attr.read_format |=
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
213
.read_format = read_format,
tools/perf/tests/sample-parsing.c
304
if (read_format & PERF_FORMAT_GROUP) {
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
355
if (!samples_same(&sample, &sample_out, sample_type, read_format, evsel.needs_swap)) {
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
383
if (ret && read_format)
tools/perf/tests/sample-parsing.c
384
pr_debug("read_format %#"PRIx64"\n", read_format);
tools/perf/tests/sample-parsing.c
45
u64 type, u64 read_format, bool needs_swap)
tools/perf/tests/sample-parsing.c
79
if (read_format & PERF_FORMAT_GROUP)
tools/perf/tests/sample-parsing.c
83
if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED)
tools/perf/tests/sample-parsing.c
85
if (read_format & PERF_FORMAT_TOTAL_TIME_RUNNING)
tools/perf/tests/sample-parsing.c
88
if (read_format & PERF_FORMAT_GROUP) {
tools/perf/tests/sample-parsing.c
91
if (read_format & PERF_FORMAT_LOST)
tools/perf/tests/sample-parsing.c
96
if (read_format & PERF_FORMAT_LOST)
tools/perf/ui/browsers/scripts.c
39
if (attr->read_format & PERF_FORMAT_GROUP)
tools/perf/util/arm-spe.c
1793
attr.read_format = evsel->core.attr.read_format;
tools/perf/util/aslr.c
836
if ((evsel->core.attr.read_format & PERF_FORMAT_GROUP) == 0) {
tools/perf/util/aslr.c
838
if (evsel->core.attr.read_format & PERF_FORMAT_TOTAL_TIME_ENABLED)
tools/perf/util/aslr.c
840
if (evsel->core.attr.read_format & PERF_FORMAT_TOTAL_TIME_RUNNING)
tools/perf/util/aslr.c
842
if (evsel->core.attr.read_format & PERF_FORMAT_ID)
tools/perf/util/aslr.c
844
if (evsel->core.attr.read_format & PERF_FORMAT_LOST)
tools/perf/util/aslr.c
855
if (evsel->core.attr.read_format & PERF_FORMAT_TOTAL_TIME_ENABLED)
tools/perf/util/aslr.c
857
if (evsel->core.attr.read_format & PERF_FORMAT_TOTAL_TIME_RUNNING)
tools/perf/util/aslr.c
861
if (evsel->core.attr.read_format & PERF_FORMAT_ID)
tools/perf/util/aslr.c
863
if (evsel->core.attr.read_format & PERF_FORMAT_LOST)
tools/perf/util/cs-etm.c
1797
attr.read_format = evsel->core.attr.read_format;
tools/perf/util/evlist.c
1354
u64 read_format = first->core.attr.read_format;
tools/perf/util/evlist.c
1358
if (read_format != pos->core.attr.read_format) {
tools/perf/util/evlist.c
1360
read_format, (u64)pos->core.attr.read_format);
tools/perf/util/evlist.c
1366
!(read_format & PERF_FORMAT_ID)) {
tools/perf/util/evlist.c
412
if ((pos->core.attr.read_format & PERF_FORMAT_GROUP) &&
tools/perf/util/evsel.c
154
WRITE_ASS(read_format, "llu");
tools/perf/util/evsel.c
1572
attr->read_format = PERF_FORMAT_LOST;
tools/perf/util/evsel.c
1591
attr->read_format |= PERF_FORMAT_GROUP;
tools/perf/util/evsel.c
1599
evsel->core.attr.read_format |=
tools/perf/util/evsel.c
1625
evsel->core.attr.read_format |=
tools/perf/util/evsel.c
1734
evsel->core.attr.read_format |=
tools/perf/util/evsel.c
1781
evsel->core.attr.read_format |= PERF_FORMAT_ID;
tools/perf/util/evsel.c
2142
u64 read_format = leader->core.attr.read_format;
tools/perf/util/evsel.c
2150
if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED)
tools/perf/util/evsel.c
2153
if (read_format & PERF_FORMAT_TOTAL_TIME_RUNNING)
tools/perf/util/evsel.c
2156
if (read_format & PERF_FORMAT_ID)
tools/perf/util/evsel.c
2159
if (read_format & PERF_FORMAT_LOST)
tools/perf/util/evsel.c
2162
if (read_format & PERF_FORMAT_GROUP) {
tools/perf/util/evsel.c
2173
u64 read_format = leader->core.attr.read_format;
tools/perf/util/evsel.c
2182
if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED)
tools/perf/util/evsel.c
2185
if (read_format & PERF_FORMAT_TOTAL_TIME_RUNNING)
tools/perf/util/evsel.c
2189
sample_read_group__for_each(v, nr, read_format) {
tools/perf/util/evsel.c
2196
if (read_format & PERF_FORMAT_LOST)
tools/perf/util/evsel.c
2208
u64 read_format = leader->core.attr.read_format;
tools/perf/util/evsel.c
2212
if (!(read_format & PERF_FORMAT_ID))
tools/perf/util/evsel.c
2270
if (evsel->core.attr.read_format & PERF_FORMAT_GROUP)
tools/perf/util/evsel.c
2512
evsel->core.attr.read_format &= ~PERF_FORMAT_LOST;
tools/perf/util/evsel.c
2533
evsel->core.attr.read_format &= ~(PERF_FORMAT_GROUP|PERF_FORMAT_ID);
tools/perf/util/evsel.c
2796
attr.read_format = PERF_FORMAT_LOST;
tools/perf/util/evsel.c
2801
attr.read_format = 0;
tools/perf/util/evsel.c
2885
attr.read_format = PERF_FORMAT_GROUP;
tools/perf/util/evsel.c
2891
attr.read_format = 0;
tools/perf/util/evsel.c
2911
if ((evsel->core.attr.read_format & PERF_FORMAT_LOST) &&
tools/perf/util/evsel.c
2940
if (evsel->core.attr.inherit && (evsel->core.attr.read_format & PERF_FORMAT_GROUP) &&
tools/perf/util/evsel.c
3511
u64 read_format = evsel->core.attr.read_format;
tools/perf/util/evsel.c
3514
if (read_format & PERF_FORMAT_GROUP)
tools/perf/util/evsel.c
3521
if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED) {
tools/perf/util/evsel.c
3527
if (read_format & PERF_FORMAT_TOTAL_TIME_RUNNING) {
tools/perf/util/evsel.c
3534
if (read_format & PERF_FORMAT_GROUP) {
tools/perf/util/evsel.c
3541
sz = data->read.group.nr * sample_read_value_size(read_format);
tools/perf/util/evsel.c
3551
if (read_format & PERF_FORMAT_LOST) {
tools/perf/util/evsel.c
422
evsel->core.attr.read_format |= PERF_FORMAT_ID;
tools/perf/util/header.c
2178
if (attr->read_format & ~(PERF_FORMAT_MAX-1)) {
tools/perf/util/header.c
2181
attr->read_format);
tools/perf/util/intel-bts.c
779
attr.read_format = evsel->core.attr.read_format;
tools/perf/util/intel-pt.c
4009
attr.read_format = evsel->core.attr.read_format;
tools/perf/util/perf_event_attr_fprintf.c
339
PRINT_ATTRf(read_format, p_read_format);
tools/perf/util/python.c
1014
&attr.read_format, &disabled, &inherit,
tools/perf/util/python.c
1242
evsel_attr_member_def(read_format, T_ULONGLONG, "attribute read_format."),
tools/perf/util/sample.h
49
static inline size_t sample_read_value_size(u64 read_format)
tools/perf/util/sample.h
52
if (read_format & PERF_FORMAT_LOST)
tools/perf/util/sample.h
58
static inline struct sample_read_value *next_sample_read_value(struct sample_read_value *v, u64 read_format)
tools/perf/util/sample.h
60
return (void *)v + sample_read_value_size(read_format);
tools/perf/util/scripting-engines/trace-event-python.c
638
u64 read_format)
tools/perf/util/scripting-engines/trace-event-python.c
647
if (read_format & PERF_FORMAT_LOST)
tools/perf/util/scripting-engines/trace-event-python.c
655
u64 read_format = sample->evsel->core.attr.read_format;
tools/perf/util/scripting-engines/trace-event-python.c
659
if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED) {
tools/perf/util/scripting-engines/trace-event-python.c
664
if (read_format & PERF_FORMAT_TOTAL_TIME_RUNNING) {
tools/perf/util/scripting-engines/trace-event-python.c
669
if (read_format & PERF_FORMAT_GROUP)
tools/perf/util/scripting-engines/trace-event-python.c
677
if (read_format & PERF_FORMAT_GROUP) {
tools/perf/util/scripting-engines/trace-event-python.c
681
sample_read_group__for_each(v, sample->read.group.nr, read_format) {
tools/perf/util/scripting-engines/trace-event-python.c
682
PyObject *t = get_sample_value_as_tuple(v, read_format);
tools/perf/util/scripting-engines/trace-event-python.c
688
read_format);
tools/perf/util/session.c
1507
static void sample_read__printf(struct perf_sample *sample, u64 read_format)
tools/perf/util/session.c
1511
if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED)
tools/perf/util/session.c
1515
if (read_format & PERF_FORMAT_TOTAL_TIME_RUNNING)
tools/perf/util/session.c
1519
if (read_format & PERF_FORMAT_GROUP) {
tools/perf/util/session.c
1524
sample_read_group__for_each(value, sample->read.group.nr, read_format) {
tools/perf/util/session.c
1528
if (read_format & PERF_FORMAT_LOST)
tools/perf/util/session.c
1535
if (read_format & PERF_FORMAT_LOST)
tools/perf/util/session.c
1634
sample_read__printf(sample, evsel->core.attr.read_format);
tools/perf/util/session.c
1653
u64 read_format;
tools/perf/util/session.c
1666
read_format = evsel->core.attr.read_format;
tools/perf/util/session.c
1675
if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED) {
tools/perf/util/session.c
1681
if (read_format & PERF_FORMAT_TOTAL_TIME_RUNNING) {
tools/perf/util/session.c
1687
if (read_format & PERF_FORMAT_ID) {
tools/perf/util/session.c
1693
if (read_format & PERF_FORMAT_LOST) {
tools/perf/util/session.c
1776
u64 read_format,
tools/perf/util/session.c
1786
sample_read_group__for_each(v, sample->read.group.nr, read_format) {
tools/perf/util/session.c
1803
u64 read_format = evsel->core.attr.read_format;
tools/perf/util/session.c
1811
if (read_format & PERF_FORMAT_GROUP)
tools/perf/util/session.c
1813
machine, read_format, per_thread);
tools/perf/util/session.c
621
bswap_field_64(read_format);
tools/perf/util/session.c
637
if (bswap_safe(read_format, 1))
tools/perf/util/session.c
638
swap_bitfield((u8 *) (&attr->read_format + 1),
tools/perf/util/synthetic-events.c
1458
size_t perf_event__sample_event_size(const struct perf_sample *sample, u64 type, u64 read_format,
tools/perf/util/synthetic-events.c
1492
if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED)
tools/perf/util/synthetic-events.c
1494
if (read_format & PERF_FORMAT_TOTAL_TIME_RUNNING)
tools/perf/util/synthetic-events.c
1497
if (read_format & PERF_FORMAT_GROUP) {
tools/perf/util/synthetic-events.c
1498
sz = sample_read_value_size(read_format);
tools/perf/util/synthetic-events.c
1502
if (read_format & PERF_FORMAT_LOST)
tools/perf/util/synthetic-events.c
1596
static __u64 *copy_read_group_values(__u64 *array, __u64 read_format,
tools/perf/util/synthetic-events.c
1599
size_t sz = sample_read_value_size(read_format);
tools/perf/util/synthetic-events.c
1602
sample_read_group__for_each(v, sample->read.group.nr, read_format) {
tools/perf/util/synthetic-events.c
1610
int perf_event__synthesize_sample(union perf_event *event, u64 type, u64 read_format,
tools/perf/util/synthetic-events.c
1673
if (read_format & PERF_FORMAT_GROUP)
tools/perf/util/synthetic-events.c
1679
if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED) {
tools/perf/util/synthetic-events.c
1684
if (read_format & PERF_FORMAT_TOTAL_TIME_RUNNING) {
tools/perf/util/synthetic-events.c
1690
if (read_format & PERF_FORMAT_GROUP) {
tools/perf/util/synthetic-events.c
1691
array = copy_read_group_values(array, read_format,
tools/perf/util/synthetic-events.c
1697
if (read_format & PERF_FORMAT_LOST) {
tools/perf/util/synthetic-events.h
100
u64 read_format, u64 branch_sample_type);
tools/perf/util/synthetic-events.h
82
int perf_event__synthesize_sample(union perf_event *event, u64 type, u64 read_format,
tools/power/x86/turbostat/turbostat.c
2596
static long open_perf_counter(int cpu, unsigned int type, unsigned int config, int group_fd, __u64 read_format)
tools/power/x86/turbostat/turbostat.c
2611
attr.read_format = read_format;
tools/testing/selftests/net/bench/page_pool/time_bench.c
77
perf_conf.read_format = PERF_FORMAT;
tools/testing/selftests/powerpc/pmu/event.c
35
e->attr.read_format = PERF_FORMAT_TOTAL_TIME_ENABLED | \
tools/testing/selftests/powerpc/utils.c
539
event_attr->read_format = PERF_FORMAT_GROUP;
tools/testing/selftests/resctrl/resctrl_val.c
56
imc_counters_config[i].pe.read_format =