Age | Commit message (Collapse) | Author |
|
Signed-off-by: Eric Anholt <eric@anholt.net>
|
|
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>
|
|
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>
|
|
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>
|
|
This reverts commit 5e13b98da1e7e31cffba84fd257002357d5f2682.
We can print prettier graphs using unicode
Signed-off-by: Eric Anholt <eric@anholt.net>
|
|
|
|
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
|
|
|
|
|
|
(cherry-pick from Mesa commit 0af7e9170fd7c0d906652378b9f78fe2ba9725ad)
|
|
|
|
|
|
Not that we're really concerned about buffer-overrun attacks
against this utility, but still, good habits and clean code
are always preferred.
|
|
This is the case where debugfs is mounted, the dri/0 directory
exists but there's no i915_ringbuffer_info file. Point the user
toward upgrading the driver.
|
|
This helps for when the user makes a typo trying to pass a file
or directory name to intel_gpu_dump.
|
|
This is a nice opportunity to teach the user something, (and help our
users to actually succeed in creating useful bug reports for us).
|
|
|
|
|
|
|
|
|
|
This caught a bug with get_user_pages usage in the kernel, which would
result in zeroes being read out of the object when faulting in a new page.
|
|
Right now it requires a filename on the command line, (such as
/debug/dri/0/i915_batchbuffers). We plan to make it smarter in
the future by going out and collecting all the data it needs.
|
|
This comes from the 3D driver within mesa, with identically named files.
In its new life here it will become a standalone program.
|
|
|
|
|
|
|
|
|