Lines Matching defs:counter
190 * BO containing OA counter snapshots at query Begin/End time.
256 * report counter snapshots for a specific counter set/profile in a
628 * The counter overflow period is derived from the EuActive counter
629 * which reads a counter that increments by the number of clock
632 * 2^(number of bits in A counter) / (n_eus * max_intel_freq * 2)
637 * ensure we cannot see more than 1 counter overflow, otherwise we
649 DBG("A counter overflow period: %"PRIu64"ns, %"PRIu64"ms (n_eus=%"PRIu64")\n",
714 const struct intel_perf_query_counter *counter = &query->counters[i];
716 assert(counter->data_type == INTEL_PERF_COUNTER_DATA_TYPE_UINT64);
719 counter->pipeline_stat.reg, 8,
720 offset_in_bytes + counter->offset);
767 * buffer commands and is used to capture begin/end counter snapshots isn't
775 * Begin/End counter snapshots with what's running across other parts of the
802 * GPU before we capture our first counter snapshot...
811 * which will generate counter reports for a specific counter set with a
813 * require a different counter set or format unless we get an opportunity
925 * finished before taking our query end counter readings.
1248 * Accumulate raw OA counter values based on deltas between pairs of
1258 * These periodic snapshots help to ensure we handle counter overflow
1260 * overflows of a counter between snapshots. For Gfx8+ the i915 perf
1489 const struct intel_perf_query_counter *counter = &queryinfo->counters[i];
1492 size_t counter_size = intel_perf_query_counter_get_size(counter);
1495 switch (counter->data_type) {
1497 out_uint64 = (uint64_t *)(data + counter->offset);
1499 counter->oa_counter_read_uint64(perf_cfg, queryinfo,
1503 out_float = (float *)(data + counter->offset);
1505 counter->oa_counter_read_float(perf_cfg, queryinfo,
1510 unreachable("unexpected counter data type");
1513 if (counter->offset + counter_size > written)
1514 written = counter->offset + counter_size;
1537 const struct intel_perf_query_counter *counter = &queryinfo->counters[i];
1540 if (counter->pipeline_stat.numerator !=
1541 counter->pipeline_stat.denominator) {
1542 value *= counter->pipeline_stat.numerator;
1543 value /= counter->pipeline_stat.denominator;