/linux-master/tools/lib/perf/tests/ |
H A D | test-evsel.c | 216 if (attr->read_format & PERF_FORMAT_TOTAL_TIME_ENABLED) 218 if (attr->read_format & PERF_FORMAT_TOTAL_TIME_RUNNING) 220 if (attr->read_format & PERF_FORMAT_ID) 222 if (attr->read_format & PERF_FORMAT_LOST) 237 attr->read_format |= PERF_FORMAT_GROUP; 241 attr->read_format &= ~PERF_FORMAT_GROUP; 262 if (attr->read_format & PERF_FORMAT_TOTAL_TIME_ENABLED) 264 if (attr->read_format & PERF_FORMAT_TOTAL_TIME_RUNNING) 266 if (attr->read_format & PERF_FORMAT_ID) 268 if (attr->read_format [all...] |
/linux-master/tools/perf/tests/ |
H A D | sample-parsing.c | 45 u64 type, u64 read_format, bool needs_swap) 79 if (read_format & PERF_FORMAT_GROUP) 83 if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED) 85 if (read_format & PERF_FORMAT_TOTAL_TIME_RUNNING) 88 if (read_format & PERF_FORMAT_GROUP) { 91 if (read_format & PERF_FORMAT_LOST) 96 if (read_format & PERF_FORMAT_LOST) 196 static int do_test(u64 sample_type, u64 sample_regs, u64 read_format) argument 203 .read_format = read_format, 43 samples_same(const struct perf_sample *s1, const struct perf_sample *s2, u64 type, u64 read_format, bool needs_swap) argument [all...] |
H A D | event-times.c | 184 evsel->core.attr.read_format |=
|
H A D | attr.c | 106 WRITE_ASS(read_format, "llu");
|
/linux-master/tools/perf/util/ |
H A D | sample.h | 45 static inline size_t sample_read_value_size(u64 read_format) argument 48 if (read_format & PERF_FORMAT_LOST) 54 static inline struct sample_read_value *next_sample_read_value(struct sample_read_value *v, u64 read_format) argument 56 return (void *)v + sample_read_value_size(read_format);
|
H A D | evsel.c | 253 evsel->core.attr.read_format |= PERF_FORMAT_ID; 1139 attr->read_format = PERF_FORMAT_LOST; 1158 attr->read_format |= PERF_FORMAT_GROUP; 1184 evsel->core.attr.read_format |= 1290 evsel->core.attr.read_format |= 1337 evsel->core.attr.read_format |= PERF_FORMAT_ID; 1541 u64 read_format = leader->core.attr.read_format; local 1550 if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED) 1553 if (read_format 1576 u64 read_format = leader->core.attr.read_format; local 1605 u64 read_format = evsel->core.attr.read_format; local 2443 u64 read_format = evsel->core.attr.read_format; local [all...] |
H A D | synthetic-events.h | 65 int perf_event__synthesize_sample(union perf_event *event, u64 type, u64 read_format, const struct perf_sample *sample); 79 size_t perf_event__sample_event_size(const struct perf_sample *sample, u64 type, u64 read_format);
|
H A D | synthetic-events.c | 1445 size_t perf_event__sample_event_size(const struct perf_sample *sample, u64 type, u64 read_format) argument 1478 if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED) 1480 if (read_format & PERF_FORMAT_TOTAL_TIME_RUNNING) 1483 if (read_format & PERF_FORMAT_GROUP) { 1484 sz = sample_read_value_size(read_format); 1488 if (read_format & PERF_FORMAT_LOST) 1574 static __u64 *copy_read_group_values(__u64 *array, __u64 read_format, argument 1577 size_t sz = sample_read_value_size(read_format); 1580 sample_read_group__for_each(v, sample->read.group.nr, read_format) { 1588 int perf_event__synthesize_sample(union perf_event *event, u64 type, u64 read_format, argument [all...] |
H A D | session.c | 140 pr_err("non matching read_format\n"); 808 bswap_field_64(read_format); 821 * After read_format are bitfields. Check read_format because 824 if (bswap_safe(read_format, 1)) 825 swap_bitfield((u8 *) (&attr->read_format + 1), 1292 static void sample_read__printf(struct perf_sample *sample, u64 read_format) argument 1296 if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED) 1300 if (read_format & PERF_FORMAT_TOTAL_TIME_RUNNING) 1304 if (read_format 1416 u64 read_format; local 1504 deliver_sample_group(struct evlist *evlist, struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine, u64 read_format) argument 1530 u64 read_format = evsel->core.attr.read_format; local [all...] |
H A D | evlist.c | 1266 u64 read_format = first->core.attr.read_format; local 1270 if (read_format != pos->core.attr.read_format) { 1272 read_format, (u64)pos->core.attr.read_format); 1278 !(read_format & PERF_FORMAT_ID)) {
|
H A D | stat.c | 753 attr->read_format = PERF_FORMAT_TOTAL_TIME_ENABLED | 762 attr->read_format |= PERF_FORMAT_ID|PERF_FORMAT_GROUP;
|
/linux-master/tools/lib/perf/ |
H A D | evsel.c | 294 u64 read_format = evsel->attr.read_format; local 299 if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED) 302 if (read_format & PERF_FORMAT_TOTAL_TIME_RUNNING) 305 if (read_format & PERF_FORMAT_ID) 308 if (read_format & PERF_FORMAT_LOST) 311 if (read_format & PERF_FORMAT_GROUP) { 326 u64 read_format = evsel->attr.read_format; local 346 if (read_format 369 u64 read_format = evsel->attr.read_format; local 392 u64 read_format = evsel->attr.read_format; local [all...] |
H A D | evlist.c | 244 return first->attr.read_format; 309 if (!(evsel->attr.read_format & PERF_FORMAT_ID) || 313 if (evsel->attr.read_format & PERF_FORMAT_TOTAL_TIME_ENABLED) 315 if (evsel->attr.read_format & PERF_FORMAT_TOTAL_TIME_RUNNING) 537 if (evsel->attr.read_format & PERF_FORMAT_ID) { 653 if ((evsel->attr.read_format & PERF_FORMAT_ID) &&
|
/linux-master/tools/lib/perf/Documentation/examples/ |
H A D | counting.c | 29 .read_format = PERF_FORMAT_TOTAL_TIME_ENABLED|PERF_FORMAT_TOTAL_TIME_RUNNING, 35 .read_format = PERF_FORMAT_TOTAL_TIME_ENABLED|PERF_FORMAT_TOTAL_TIME_RUNNING,
|
/linux-master/samples/bpf/ |
H A D | tracex6_user.c | 107 .read_format = 0, 116 .read_format = 0, 125 .read_format = 0, 135 .read_format = 0, 147 .read_format = 0, 160 .read_format = 0,
|
/linux-master/tools/perf/arch/x86/tests/ |
H A D | intel-cqm.c | 77 pe.read_format = PERF_FORMAT_GROUP;
|
H A D | sample-parsing.c | 45 .read_format = 0,
|
/linux-master/tools/testing/selftests/resctrl/ |
H A D | cache.c | 13 pea->read_format = PERF_FORMAT_GROUP;
|
/linux-master/tools/testing/selftests/powerpc/pmu/ |
H A D | event.c | 35 e->attr.read_format = PERF_FORMAT_TOTAL_TIME_ENABLED | \
|
/linux-master/tools/perf/ui/browsers/ |
H A D | scripts.c | 37 if (attr->read_format & PERF_FORMAT_GROUP)
|
/linux-master/kernel/events/ |
H A D | core.c | 1817 static int __perf_event_read_size(u64 read_format, int nr_siblings) argument 1823 if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED) 1826 if (read_format & PERF_FORMAT_TOTAL_TIME_RUNNING) 1829 if (read_format & PERF_FORMAT_ID) 1832 if (read_format & PERF_FORMAT_LOST) 1835 if (read_format & PERF_FORMAT_GROUP) { 1895 __perf_event_read_size(event->attr.read_format, 1933 * depends on per-event read_format, also (re)check the existing events. 1942 if (__perf_event_read_size(event->attr.read_format, 1946 if (__perf_event_read_size(group_leader->attr.read_format, 5488 __perf_read_group_add(struct perf_event *leader, u64 read_format, u64 *values) argument 5567 perf_read_group(struct perf_event *event, u64 read_format, char __user *buf) argument 5609 perf_read_one(struct perf_event *event, u64 read_format, char __user *buf) argument 5651 u64 read_format = event->attr.read_format; local 7199 u64 read_format = event->attr.read_format; local 7225 u64 read_format = event->attr.read_format; local 7289 u64 read_format = event->attr.read_format; local [all...] |
/linux-master/tools/perf/util/scripting-engines/ |
H A D | trace-event-python.c | 664 u64 read_format) 673 if (read_format & PERF_FORMAT_LOST) 683 u64 read_format = evsel->core.attr.read_format; local 687 if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED) { 692 if (read_format & PERF_FORMAT_TOTAL_TIME_RUNNING) { 697 if (read_format & PERF_FORMAT_GROUP) 705 if (read_format & PERF_FORMAT_GROUP) { 709 sample_read_group__for_each(v, sample->read.group.nr, read_format) { 710 PyObject *t = get_sample_value_as_tuple(v, read_format); 663 get_sample_value_as_tuple(struct sample_read_value *value, u64 read_format) argument [all...] |
/linux-master/tools/kvm/kvm_stat/ |
H A D | kvm_stat | 416 ('read_format', ctypes.c_uint64), 428 self.read_format = PERF_FORMAT_GROUP 453 struct read_format { 462 read_format = 'xxxxxxxx' + 'Q' * len(self.events) 464 struct.unpack(read_format,
|
/linux-master/tools/testing/selftests/powerpc/ |
H A D | utils.c | 539 event_attr->read_format = PERF_FORMAT_GROUP;
|
/linux-master/include/uapi/linux/ |
H A D | perf_event.h | 342 * as specified by attr.read_format: 344 * struct read_format { 412 __u64 read_format; member in struct:perf_event_attr 941 * struct read_format values; 967 * { struct read_format values; } && PERF_SAMPLE_READ
|