summaryrefslogtreecommitdiff
path: root/overlay/overlay.c
AgeCommit message (Collapse)Author
2018-06-06intel_gpu_overlay: Update for class:instance engine tracepointsTvrtko Ursulin
A miminal hack to parse the new tracepoint format and invent new "ring id's" based on engine class and instance. v2: * Make it a bit more future proof. (Lionel, Chris) * Some assorted fixups to show forgotten engines. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
2018-02-01overlay: add missing foreground optionLionel Landwerlin
It seems we handle -f but we forgot to list it. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-11-21overlay: Fix compiler warning when compiling with recent gcc.Maarten Lankhorst
[1/316] Compiling C object 'overlay/intel-gpu-overlay@exe/overlay.c.o'. ../overlay/overlay.c: In function ‘show_gem_objects’: ../overlay/overlay.c:798:31: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 160 [-Wformat-truncation=] snprintf(buf, sizeof(buf), "%s %ldMB, %ld objects", ^~ ../overlay/overlay.c:798:30: note: using the range [-9223372036854775808, 9223372036854775807] for directive argument snprintf(buf, sizeof(buf), "%s %ldMB, %ld objects", ^~~~~~~~~~~~~~~~~~~~~~~ ../overlay/overlay.c:798:30: note: using the range [-9223372036854775808, 9223372036854775807] for directive argument ../overlay/overlay.c:798:3: note: ‘snprintf’ output between 16 and 309 bytes into a destination of size 160 snprintf(buf, sizeof(buf), "%s %ldMB, %ld objects", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ comm->name, comm->bytes >> 20, comm->count); Might as well give it the 309 bytes it wants, plus on more. :-) Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-05-10overlay: Fixup new layout of tracepointsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-07-22overlay: Fix -G (--geometry) parsingChris Wilson
For shortops to getops_long() you have to remember to specify them. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-09-08build: fix unused-result warningsThomas Wood
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-06-24overlay: Enable localeChris Wilson
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-04-26intel-gpu-overlay: Improve error message for failure to open an outputChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-12-21overlay: Hide kworker threads in overviewChris Wilson
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>
2013-09-22overlay: Some very raw usage informationChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-29overlay: Increase idle timeout to 30sChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-29overlay: Hide idle processesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-29overlay: Autohide Flip counter after a period of inactivityChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-29overlay: Monitor per-ring context switch rateChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-28overlay: Make it easier to reniceChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-28overlay: Generate unique name for snapshotsChris Wilson
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-27overlay: Add number of running processes to CPU displayChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27overlay: Include the core count in the cpu info lineChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27overlay: Scale the CPU busy value by the numer of active coresChris Wilson
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-27overlay: Restore the correct default font sizeChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27overlay: read rc6 status from perfChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27overlay: Set the text color in case we do not have RC6Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27overlay: improve alignment of some labelsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27overlay: Read power from perf_eventsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-26overlay: Align the process names in the memory tableChris Wilson
And use a shade of gray to distinguish from the total instead. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-26overlay: Trim the padding slightlyChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-26overlay: Count number of semaphores used by each processChris Wilson
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-25overlay: Allow simple positioning and resizingChris Wilson
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-25overlay: Monitor interruptsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-25overlay: Detach from terminalChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-25overlay: Add a raw kms outputChris Wilson
For when you don't have any display server, use brute force. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-25overlay: Draw the cpu busy line on top of the waitsChris Wilson
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-25overlay: simplify types for object counts for 32/64bit portingChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-25overlay: Expose sampling period/frequency as a user parameterChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-22overlay: Replace debug ticker with hostnameChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-22overlay: Double buffer the x11 windowChris Wilson
For pleasant remote transport. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-22overlay: Rudiments of config files and option parsingChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-22overlay: Fill the blank charts with error messagesChris Wilson
Instead of showing nothing, show a "space left intentionally blank" message. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-21overlay: Put a faint outline around each chartChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-21overlay: Fade the graphs behind the textChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-20overlay: Fix display of rc6 statesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-20overlay: Add copyright statementsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-20overlay: Take a snapshot on SIGUSR1Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-20overlay: use rc6_enable to drop useless informationChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-20overlay: Add graph for GPU power consumptionChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-20overlay: Add rc6 residencyChris Wilson
Not much point at the moment since we use forcewake to continuously probe the GPU busyness. But that will eventually change to a more power-efficient in-kernel. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-19overlay: Wrap the colour index around the rgba arrayChris Wilson
And stop assigning colours beyond the end of the array. Still needs a better method for colour assignment, big list of good colours & ida? Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-19overlay: Add missing include "debugfs.h"Chris Wilson
Later versions of gcc are apparently stricter. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-19overlay: Auatomatically mount debugfsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-19overlay: Tweak label locations to include baseline offset.Chris Wilson
Still approximately, too lazy to query the metrics. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>