intel_gpu_top: initialize monitoring statistics at startup
authorEugeni Dodonov <eugeni.dodonov@intel.com>
Mon, 5 Sep 2011 19:33:04 +0000 (16:33 -0300)
committerEugeni Dodonov <eugeni.dodonov@intel.com>
Mon, 5 Sep 2011 22:13:58 +0000 (19:13 -0300)
commit431fe7803d37f344275fdaceb57c1fbaeee8541c
tree139b952bfed549f4a56a31d599ab168e303dd70d
parent4b0a15e45d1823888cfed9a76e54036658ab8e61
intel_gpu_top: initialize monitoring statistics at startup

This patch initializes the last_stats[] for registers prior to starting
the monitoring itself. This way, the first measure will already contain
the difference from the previous value instead of non-initialized value.

Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
man/intel_gpu_top.1
tools/intel_gpu_top.c