[igt-dev] [PATCH i-g-t 8/8] tools/i915-perf-recorder: print out oa format

Lionel Landwerlin lionel.g.landwerlin at intel.com
Fri Apr 23 07:44:44 UTC 2021


Just so that we can tell how the HW is configured.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
 tools/i915-perf/i915_perf_recorder.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tools/i915-perf/i915_perf_recorder.c b/tools/i915-perf/i915_perf_recorder.c
index adc41c29f..3a8ee46a4 100644
--- a/tools/i915-perf/i915_perf_recorder.c
+++ b/tools/i915-perf/i915_perf_recorder.c
@@ -1001,8 +1001,9 @@ main(int argc, char *argv[])
 	}
 
 	ctx.oa_exponent = oa_exponent_for_period(ctx.timestamp_frequency, perf_period);
-	fprintf(stdout, "Opening perf stream with metric_id=%"PRIu64" oa_exponent=%u\n",
-		ctx.metric_set->perf_oa_metrics_set, ctx.oa_exponent);
+	fprintf(stdout, "Opening perf stream with metric_id=%"PRIu64" oa_exponent=%u oa_format=%u\n",
+		ctx.metric_set->perf_oa_metrics_set, ctx.oa_exponent,
+		ctx.metric_set->perf_oa_format);
 
 	ctx.perf_fd = perf_open(&ctx);
 	if (ctx.perf_fd < 0) {
-- 
2.27.0



More information about the igt-dev mailing list