22 Commits

Author SHA1 Message Date
Chris Wilson
d9ec63b1a0 intel_gpu_top: Include BLT ring
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-01-07 19:59:00 +00:00
Chris Wilson
5503ac9e19 intel_gpu_top: Wake the GT power well to read gen6 ring registers
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-01-07 19:58:55 +00:00
Eric Anholt
19b412b37c intel_gpu_top: Print stats regs on Ironlake as well. 2010-12-16 16:47:03 -08:00
Chris Wilson
8a4fc850a8 intel_gpu_top: Sample BSD rings as well as render
Show how busy the GPU is when decoding video as well as rendering.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-10-01 22:23:16 +01:00
Eric Anholt
74c8c8d612 intel_gpu_top: Fix the "limit printing to terminal height" again. 2010-07-19 08:28:10 -07:00
Chris Wilson
95374225e8 Enable compilation on non-Intel, non-DRM systems.
A few of the tools can be performed post-mortem from a different system,
so it is useful to be able to compile those tools on those foreign
systems. Obviously, any program to interact with the PCI device or talk
to GEM will fail on a non-Intel system.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-04-08 12:17:31 +01:00
Eric Anholt
bcaea4da89 intel_gpu_top: Print stats lines even when there's no done bit on the line. 2010-02-25 12:48:00 -08:00
Eric Anholt
9271e2256d intel_gpu_top: Print the vertex/primitive statistics on gen4+.
This requires that the window be much wider.  I'm not sure how we
really want to lay out this interface usably, but so far giant windows
are working well enough for me.
2010-02-25 12:34:31 -08:00
Shuang He
7f63b95c06 intel_gpu_top: Fix broken clock reporting.
Signed-off-by: Eric Anholt <eric@anholt.net>
2009-12-15 12:53:39 -08:00
Kenneth Graunke
b4b8aafc61 Limit printing to terminal height in intel_gpu_top.
When using intel_gpu_top in a small terminal, the most important
information (ring idle/busy units) scrolls off the top of the screen.
This patch limits the number of lines printed to the terminal height
so that the most idle units (at the bottom) are truncated instead.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
2009-12-10 14:02:25 -08:00
Eric Anholt
3904b7c6a2 intel_gpu_top: Move instdone bit definitions to lib to share with _dump. 2009-06-30 18:04:50 -07:00
Eric Anholt
a18af8ed43 Add more 965 INSTDONE bits.
This shows off the units that are stuck busy in the ut2004 hang.
2009-06-23 17:18:52 -07:00
Eric Anholt
49c564ec2f Make the precentage bars fit in 80 columns.
Signed-off-by: Eric Anholt <eric@anholt.net>
2009-06-09 11:31:52 -07:00
Robert Bragg
8c7be93544 A pedantic addition of a format string to a printf call
The printf used to clear the screen didn't have a format string, this
adds one to avoid a compiler warning.

Signed-off-by: Eric Anholt <eric@anholt.net>
2009-06-09 11:31:37 -07:00
Robert Bragg
700e45a522 Adds unicode bars for quickly visualizing the busy percentages
It can be a bit easier to digest the percentages with bar graphs than by
scanning continually changing numbers.

Signed-off-by: Eric Anholt <eric@anholt.net>
2009-06-09 11:31:30 -07:00
Robert Bragg
2f0c0aa8ae Increases the sample frequency from 100/sec to 10,000/sec
For a typical vsync locked application running at 60fps, sampling at just
under twice a frame doesn't seem to give very stable lists of relevent hardware
units because there are a number of units involved that may not be sampled one
second to the next.

This bumps the sample rate to 10,000 instead which is ~ 170 samples per
frame so we tend to hit all the units involved.

It also changes the report threshold to a sample count >= 1, so you don't
see as many units with a percentage of 0.

Signed-off-by: Eric Anholt <eric@anholt.net>
2009-06-09 11:31:24 -07:00
Robert Bragg
2a50faae7e Revert "intel_gpu_top:print a visual clue on how big a certain use is"
This reverts commit 5e13b98da1e7e31cffba84fd257002357d5f2682.

We can print prettier graphs using unicode

Signed-off-by: Eric Anholt <eric@anholt.net>
2009-06-09 11:31:15 -07:00
Eric Anholt
114763f419 intel_gpu_top: Print GPU clock information, which seems interesting. 2009-06-04 14:39:41 +00:00
Arjan van de Ven
5e13b98da1 intel_gpu_top:print a visual clue on how big a certain use is
humans are pretty bad at reading percentages quicky; this patch adds a
histogram capability to make it more visually clear as to which lines are
big ticket items
2009-06-04 14:07:48 +00:00
Eric Anholt
7583e811a5 intel_gpu_top: Add ring information. 2009-04-27 09:39:05 -07:00
Eric Anholt
3ba49a9295 intel_gpu_top: Add more 965 bits. 2009-03-27 13:13:47 -07:00
Eric Anholt
fbbf124f8d Port intel_idle from 2D driver as intel_gpu_top with a better interface. 2009-03-27 12:27:55 -07:00