105 Commits

Author SHA1 Message Date
Chris Wilson
8a8717eee3 overlay: Show power consumption without i915-pmu
The power metter was not showing up due to an erroneous check for a
failure to open the i915 perf interface.

Reported-by: Marius Vlad <marius.c.vlad@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-11-18 12:53:04 +00:00
Thomas Wood
2643793255 Fix comparison of unsigned integers
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-11-11 14:20:55 +00:00
Thomas Wood
1dcace3018 build: fix unused-result warnings
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-09-08 16:15:16 +01:00
Chris Wilson
9b73ce43fe overlay: Fix min frequency detection on BYT/BSW
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-08-16 12:13:29 +01:00
Chris Wilson
74a8068086 overlay: Handle execlists not setting the rings as active
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-08-08 21:31:54 +01:00
Chris Wilson
06aed34d38 overlay: Add Broadwell+ ids from kernel i915_pciids.h 2015-08-08 21:31:54 +01:00
Chris Wilson
44d444acaa overlay: Enable locale
Enabling locale allows us to use thousand separators and other such
human touches in the output.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-06-24 17:03:42 +01:00
Thomas Wood
87f15fc3da overlay: update .gitignore
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-06-11 14:48:47 +01:00
Chris Wilson
c5a6147a1b overlay: Fix parsing of gem-objects for '[k]' clients
Apparently '[]' are not non-whitespace characters and break '%s'.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-06-08 15:57:45 +01:00
Chris Wilson
263da26b9c intel-gpu-overlay: Improve error message for failure to open an output
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-04-26 10:17:18 +01:00
Chris Wilson
eb799b2994 overlay: Hide kworker threads in overview
The kworker threads are used for flip handling and other non-userspace
driver tasks. They are non-blocking and so do not impact upon how
userspace performs, but they do obscure that information in the
overview.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-12-21 13:56:04 +00:00
Chris Wilson
0be9766952 overlay: A couple of valgrind pleasers
Make sure we initialise values to keep valgrind happy

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-12-21 13:56:04 +00:00
Chris Wilson
7f9d14aa51 overlay: Negative modulus
Don't use a negative index into the array if the desired element is
negative, just wrap around properly into the ring for the chart.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-12-21 13:56:04 +00:00
Damien Lespiau
af79fce66d overlay: Fix compilation warning when not having xrandr
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-10-06 18:52:06 +01:00
Chris Wilson
b9c705f4da overlay: Baytrail needs a custom GPU frequency parser
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-11 23:39:36 +01:00
Chris Wilson
c864279de6 overlay: Parse /proc/interrupts in lieu of debugfs/i915_gem_interrupt
So the interrupt counter was removed from i915_gem_interrupt, and if we
do not have the perf API available, we therefore need to read it from
/proc/interrupts instead.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-04-30 18:44:48 +01:00
Chris Wilson
bff7ecde7b overlay: Use new i915_frequency_info in fallback code
Actually use the new location to get frequency information when perf is
not available.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-04-30 18:44:48 +01:00
Chris Wilson
5d607a744f intel-gpu-overlay: Update debugfs path for min/max frequency
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-04-07 12:07:46 +01:00
Chris Wilson
4d3e10d216 overlay: Some very raw usage information
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-09-22 19:01:31 +01:00
Rodrigo Vivi
564a1dd993 overlay: fix link error due to missing -lrt
CC: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
2013-09-16 15:52:34 -03:00
Damien Lespiau
25dfea28a5 overlay: Fix stale mention to x11-position.c
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-09-13 16:00:05 +01:00
Chris Wilson
59f134450d overlay: Increase idle timeout to 30s
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-29 13:33:58 +01:00
Chris Wilson
2b961d9573 overlay: Hide idle processes
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-29 13:33:58 +01:00
Chris Wilson
2f297ed2b7 overlay: Autohide Flip counter after a period of inactivity
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-29 13:33:58 +01:00
Chris Wilson
474ce5396e overlay: Monitor per-ring context switch rate
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-29 13:33:58 +01:00
Chris Wilson
75ef36713a overlay: Make it easier to renice
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-28 14:04:27 +01:00
Chris Wilson
9bebbbc49b overlay: Generate unique name for snapshots
Since we no longer increment the counter every frame, we need to use a
timestamp instead.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-28 14:04:27 +01:00
Chris Wilson
a18023f678 overlay: Add number of running processes to CPU display
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27 23:52:03 +01:00
Chris Wilson
11567e318e overlay: Include the core count in the cpu info line
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27 17:51:51 +01:00
Chris Wilson
c6b26c5a40 overlay: Scale the CPU busy value by the numer of active cores
Having 100% always mean one processor fully utilised is much easier to
understand (than having to remember how many cores are on each machine
and scale appropriately).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27 17:43:46 +01:00
Chris Wilson
177208b0d4 overlay: Tidy presentation of ring busy values
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27 17:43:46 +01:00
Chris Wilson
b1d2a78a5d overlay: Restore the correct default font size
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27 15:43:38 +01:00
Chris Wilson
65d2481900 overlay: read rc6 status from perf
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27 15:23:10 +01:00
Chris Wilson
ddcd1b2ee5 overlay: Add support for multi-monitor positioning
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27 14:26:22 +01:00
Chris Wilson
87b66f4cf0 overlay: Set the text color in case we do not have RC6
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27 14:26:22 +01:00
Chris Wilson
396fa1b3f5 overlay: improve alignment of some labels
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27 13:06:58 +01:00
Chris Wilson
d58aed18ee overlay: Read interrupts from perf
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27 12:31:13 +01:00
Chris Wilson
14614060b8 overlay: Read frequency from perf
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27 12:31:13 +01:00
Chris Wilson
1c3fd70357 overlay: Read power from perf_events
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27 12:31:13 +01:00
Chris Wilson
6ec1d2c0ae overlay: Align the process names in the memory table
And use a shade of gray to distinguish from the total instead.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-26 23:39:01 +01:00
Chris Wilson
04a4fae32e overlay: Trim the padding slightly
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-26 14:46:29 +01:00
Chris Wilson
908df374a9 overlay: Count number of semaphores used by each process
This required me to contract the per-process information considerably,
hopefully readability is not sacrificed too much.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-26 14:34:05 +01:00
Chris Wilson
1e65d5ac2f overlay: Allow simple positioning and resizing
Using window.size=<width>x<height> or window.size=<scale>% in
the config file, or --size=<scale>% or --size=<width>x<height>

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-25 23:44:35 +01:00
Chris Wilson
c9f0173764 overlay: Monitor interrupts
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-25 20:14:13 +01:00
Chris Wilson
39f9812315 overlay: Detach from terminal
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-25 15:18:39 +01:00
Chris Wilson
d929102591 overlay: Add a raw kms output
For when you don't have any display server, use brute force.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-25 13:34:31 +01:00
Chris Wilson
20a25f5eaf overlay: Draw the cpu busy line on top of the waits
By drawing it behind the waits, it is obscured by the translucent waits.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-25 13:34:31 +01:00
Chris Wilson
a932c73ab7 overlay: simplify types for object counts for 32/64bit porting
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-25 13:34:31 +01:00
Chris Wilson
68c63ddd36 overlay: Expose sampling period/frequency as a user parameter
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-25 13:34:31 +01:00
Chris Wilson
1b6480114e overlay: Fix power reading from debugfs
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-23 16:07:04 +01:00