intel_gpu_top: suport command line parameters and variable samples per
authorEugeni Dodonov <eugeni.dodonov@intel.com>
Mon, 5 Sep 2011 19:23:11 +0000 (16:23 -0300)
committerEugeni Dodonov <eugeni.dodonov@intel.com>
Mon, 5 Sep 2011 22:11:45 +0000 (19:11 -0300)
commit09e4b0cd26e800c203c1de071b83d879a09bb0dc
treef2b79c76e91baeb955d80de8a6b7a14727f23d5a
parent6194c75c8f438d13f6535d70009658851929f39e
intel_gpu_top: suport command line parameters and variable samples per
second

This patch adds support for getopt, and adds two default parameters to it:
-h to show usage notes; and -s to allow user to define number of samples
to acquire per second.

Manpage documentation is also adjusted accordingly.

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