intel_gpu_top: access hardware before running profiling command
authorEugeni Dodonov <eugeni.dodonov@intel.com>
Mon, 5 Sep 2011 23:04:17 +0000 (20:04 -0300)
committerEugeni Dodonov <eugeni.dodonov@intel.com>
Mon, 5 Sep 2011 23:04:17 +0000 (20:04 -0300)
commit15cb28218786ae80101ad0f6cc5a21c1ad9e8d3e
tree59003e4b713537061bafa7d4a33f202bcee15da4
parent8ad08546e5d6189d2c778b6175e97b486332d37e
intel_gpu_top: access hardware before running profiling command

Without this patch, intel_gpu_top will try to get access to the hardware
after running the profiling command in the background. In case such access
fails, the main process quits, but the background one will continue
running.

So let's move this test up, so it is done before we fork.

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