Searched refs:read_format (Results 1 - 25 of 37) sorted by last modified time

12

/linux-master/tools/power/x86/turbostat/
H A Dturbostat.c1558 static long open_perf_counter(int cpu, unsigned int type, unsigned int config, int group_fd, __u64 read_format) argument
1573 attr.read_format = read_format;
/linux-master/tools/perf/util/
H A Dsession.c140 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 Dpython.c830 "read_format",
882 &attr.read_format, &disabled, &inherit,
H A Devsel.c253 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 Dsynthetic-events.c1445 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 Devlist.c1266 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 Dstat.c753 attr->read_format = PERF_FORMAT_TOTAL_TIME_ENABLED |
762 attr->read_format |= PERF_FORMAT_ID|PERF_FORMAT_GROUP;
H A Dsample.h45 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 Dperf_event_attr_fprintf.c273 PRINT_ATTRf(read_format, p_read_format);
H A Dcs-etm.c1663 attr.read_format = evsel->core.attr.read_format;
H A Dintel-pt.c3758 attr.read_format = evsel->core.attr.read_format;
/linux-master/tools/perf/util/scripting-engines/
H A Dtrace-event-python.c664 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/perf/ui/browsers/
H A Dscripts.c37 if (attr->read_format & PERF_FORMAT_GROUP)
/linux-master/tools/perf/
H A Dbuiltin-stat.c522 return STAT_RECORD || counter->core.attr.read_format & PERF_FORMAT_ID;
H A Dbuiltin-inject.c850 evsel->core.attr.read_format, &sample_sw);
/linux-master/tools/lib/perf/
H A Devlist.c244 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) &&
H A Devsel.c294 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...]
/linux-master/tools/testing/selftests/resctrl/
H A Dresctrl_val.c79 imc_counters_config[i][j].pe.read_format =
H A Dcache.c13 pea->read_format = PERF_FORMAT_GROUP;
/linux-master/kernel/events/
H A Dcore.c1817 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/tests/
H A Dattr.c106 WRITE_ASS(read_format, "llu");
/linux-master/tools/lib/perf/tests/
H A Dtest-evlist.c449 .read_format = PERF_FORMAT_TOTAL_TIME_ENABLED |
H A Dtest-evsel.c216 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/include/uapi/linux/
H A Dperf_event.h342 * 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
/linux-master/include/uapi/linux/
H A Dperf_event.h342 * 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

Completed in 428 milliseconds

12