Skip to contentSkip to conversation

igt/scripts: trace.pl to parse the i915 tracepoints

RFC Superseded Tvrtko Ursulin 3 participants 3 messages Feb 22, 2017 Kbuild

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

RFC 1/1 igt/scripts: trace.pl to parse the i915 tracepoints

From: Tvrtko Ursulin <[email protected]>

Given a log file created via perf with some interesting trace events enabled, this tool can generate the timeline graph of requests getting queued, their dependencies resolved, sent to the GPU for executing and finally completed.

This can be useful when analyzing certain classes of performance issues. More help is available in the tool itself.

The tool will also calculate some overall per engine statistics, like total time engine was idle and similar.

---
A bit rough around the edges but works for the majority of traces I was feeding into it.

Wheter or not we want to add this to IGT I am not sure.

---
 scripts/Makefile.am |   2 +-
 scripts/trace.pl    | 806 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 807 insertions(+), 1 deletion(-)
 create mode 100755 scripts/trace.pl
scripts/Makefile.am +1 -1
index 85d4a5cf4e5c..641715294936 100644
@@ -1,2 +1,2 @@
-dist_noinst_SCRIPTS = intel-gfx-trybot who.sh run-tests.sh
+dist_noinst_SCRIPTS = intel-gfx-trybot who.sh run-tests.sh trace.pl
 noinst_PYTHON = throttle.py
scripts/trace.pl new file +806 -0

806 lines not on this page · raw message

Signature · 6 lines
2.9.3

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw
Quoted 13 lines · Tvrtko Ursulin

From: Tvrtko Ursulin <[email protected]>

Given a log file created via perf with some interesting trace events enabled, this tool can generate the timeline graph of requests getting queued, their dependencies resolved, sent to the GPU for executing and finally completed.

This can be useful when analyzing certain classes of performance issues. More help is available in the tool itself.

The tool will also calculate some overall per engine statistics, like total time engine was idle and similar.

Quoted 6 lines

---
A bit rough around the edges but works for the majority of traces I was feeding into it.

Wheter or not we want to add this to IGT I am not sure.

It has my vote.
-Chris

Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#2 lore raw
Quoted 19 lines · Chris Wilson
Quoted 18 lines · Tvrtko Ursulin

From: Tvrtko Ursulin <[email protected]>

Given a log file created via perf with some interesting trace events enabled, this tool can generate the timeline graph of requests getting queued, their dependencies resolved, sent to the GPU for executing and finally completed.

This can be useful when analyzing certain classes of performance issues. More help is available in the tool itself.

The tool will also calculate some overall per engine statistics, like total time engine was idle and similar.

---
A bit rough around the edges but works for the majority of traces I was feeding into it.

Quoted 5 lines
Quoted 1 line

Wheter or not we want to add this to IGT I am not sure.

It has my vote.
-Chris

Definitely, this will be valuable - good starting point for undergoing core perf validation efforts.

Thanks for sharing,
Krzysztof

--------------------------------------------------------------------

Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.

Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx