intel_gpu_top: support non-interactive mode

This patch adds support for non-interactive mode, invoked by running with
'-o output' switch. In this case, no interactive output is being
performed, but the execution statistics are being saved into the output
file.

The output file is generated in both human and gnuplot-readable format.

Unlike interactive mode, where non-supported pipes and non-active
registers are skipped, the content of such pipes and registers is recorded
into the log file to simplify parsing and standardize the list of columns.

Also, unlike interactive mode, the registers are not sorted according to
the usage - this way, their variation over time can be analysed offline.

Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
This commit is contained in:
Eugeni Dodonov
2011-09-05 19:39:58 -03:00
parent 83047e9a5e
commit c2983f24e3
2 changed files with 109 additions and 38 deletions
+3
View File
@@ -16,6 +16,9 @@ privilege to map the graphics device.
.B -s [samples per second]
number of samples to acquire per second
.TP
.B -o [output file]
run non-interactively and collect usage statistics to [file]
.TP
.B -h
show usage notes
.PP