intel_gpu_top: support non-interactive mode
authorEugeni Dodonov <eugeni.dodonov@intel.com>
Mon, 5 Sep 2011 22:39:58 +0000 (19:39 -0300)
committerEugeni Dodonov <eugeni.dodonov@intel.com>
Mon, 5 Sep 2011 22:45:01 +0000 (19:45 -0300)
commitc2983f24e34936fd9e0d513922af70485d579e61
treea7e60bad9aafc3f2e2ee42568579c692b74e17b1
parent83047e9a5e7563bb7dd7085de5f27b55d3c2f16e
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>
man/intel_gpu_top.1
tools/intel_gpu_top.c