Lines Matching defs:report

124  *   and while we could pull a report out of the OA buffer we can't
125 * trigger a report from the cpu on demand.
127 * Related to being report based; the OA counters are configured in HW as a
132 * OA unit report format used to capture all counters in a set, or specify a
148 * With the OA unit's report formats, counters are packed together as 32
149 * or 40bit values, with the largest report size being 256 bytes.
173 * ring buffer. To include more than the OA report we'd have to copy the
174 * report into an intermediate larger buffer. I'd been considering allowing a
188 * majority of the OA driver ran in atomic context, including all OA report
225 * by checking for a zeroed report-id field in tail reports, we want to account
231 * report with its first 2 dwords not 0 meaning its previous report is
234 * first dword is the reason for this report while the second is the timestamp,
266 * overflow in OA report timestamps.
298 /* XXX: beware if future OA HW adds new report formats that the current
334 * @oa_format: An OA unit HW report format
505 /* Walk the stream backward until we find a report with dword 0
508 * bytes long, we can't tell whether a report has fully landed
509 * in memory before the first 2 dwords of the following report
527 DRM_NOTE("unlanded report(s) head=0x%x "
550 * @type: The kind of status to report to userspace
579 * append_oa_sample - Copies single OA report into userspace read() buffer.
584 * @report: A single OA report to (optionally) include as part of the sample
599 const u8 *report)
616 if (copy_to_user(buf, report, report_size))
681 * only be incremented by multiples of the report size (notably also
695 u8 *report = oa_buf_base + head;
696 u32 *report32 = (void *)report;
701 * All the report sizes factor neatly into the buffer
702 * size so we never expect to see a report split
712 "Spurious OA head ptr: non-integral report offset\n");
718 * triggered this specific report (mostly timer
722 * check that the report isn't invalid before copying
731 DRM_NOTE("Skipping spurious, invalid OA report\n");
778 * identify a switch before any 'context switch' report.
795 report);
976 * only be incremented by multiples of the report size (notably also
990 u8 *report = oa_buf_base + head;
991 u32 *report32 = (void *)report;
993 /* All the report sizes factor neatly into the buffer
994 * size so we never expect to see a report split
1004 "Spurious OA head ptr: non-integral report offset\n");
1008 /* The report-ID field for periodic samples includes
1010 * the report and is never expected to be zero so we
1011 * can check that the report isn't invalid before
1016 DRM_NOTE("Skipping spurious, invalid OA report\n");
1020 ret = append_oa_sample(stream, buf, count, offset, report);
1091 * which will start to report a near-empty buffer after an
1394 DRM_NOTE("%d spurious OA report notices suppressed due to ratelimiting\n",
1438 * report-id field to make sure it's non-zero which relies on
2845 DRM_DEBUG("Only OA report sampling supported\n");
2865 DRM_DEBUG("OA report format not specified\n");
3030 * oabuffer has >= 1 report we don't immediately know whether
3048 /* We allow the poll checking to sometimes report false positive EPOLLIN
3049 * events where we might actually report EAGAIN on read() if there's
3604 DRM_DEBUG("Out-of-range OA report format %llu\n",
3609 DRM_DEBUG("Unsupported OA report format %llu\n",