summaryrefslogtreecommitdiff
path: root/overlay/gpu-perf.c
AgeCommit message (Collapse)Author
2019-01-28overlay: Write out the assumption for kernel-provided dataPetri Latvala
The code assumes (correctly) that perf_event_header's size is non-zero. Write that out so static analysis also knows it. Signed-off-by: Petri Latvala <petri.latvala@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
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-03-16intel-gpu-overlay: Update for renamed tracepointsTvrtko Ursulin
Request tracepoints have been renames so update the tool to be able to find them. v2: Only support new names. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-12-22overlay: parse tracepoints from sysfs to figure out fields' locationLionel Landwerlin
With changes going to drm-tip, the tracepoints field locations are going to change. This change introduces a tracepoint parser (using a peg parser) which lets us figure out field positions on the fly. v2: Fix automake build (Lionel) v3: Make overlay build conditional on peg (Petri) Make wait_end callback more readable (Chris) Drop tracepoint_id(), instead parsing from format file (Lionel) v4: Fix existing configure.ac issue with overlay build (Petri) v5: Silence unused function (Lionel) v6: Fix missing double quote in v4 (Lionel) Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Chris Wilson <chris@chris-wilson.co.uk> For the build system changes: Acked-by: Petri Latvala <petri.latvala@intel.com>
2017-11-22intel-gpu-overlay: Move local perf implementation to a libraryTvrtko Ursulin
Idea is to avoid duplication across multiple users in upcoming patches. v2: Commit message and use a separate library instead of piggy- backing to libintel_tools. (Chris Wilson) v3: Add Petri's meson build recipe. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: Petri Latvala <petri.latvala@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-05-10overlay: Convert to per-context seqno trackingChris Wilson
Signed-off-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>
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-08-29overlay: Monitor per-ring context switch rateChris 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: 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-23overlay: Search for right debugfs pathChris 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-22overlay: Remove busy estimationChris Wilson
Too inaccurate to be useful. 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-18overlay: Count flips per planeChris Wilson
Stop the misleading double-accounting of flips when we have multiple displays active. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-17overlay: Correct layout of ring/seqno in raw sampleChris Wilson
For seqno completion, the events are too coarse i.e. one event may signal the completion of a few seqno. We will need to sort the events to properly compute the busy times. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-17overlay: Accumulate busy timesChris Wilson
Still a little too course as we add multiple overlapping seqnos and waits. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-17overlay: Couple wait begin/end events together to fix accountingChris Wilson
Since the events may be processed out of order (due to per-cpu ringbuffers) we need to be careful to associated wait pairs in order to compute the correct elapsed time. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-17overlay: Perf output redirection must be done after mmap()Chris Wilson
Effectively you choose to redirect the output of an event instead of mmapping it directly - but the target must already be mmapped. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-17overlay: Show per-process wait timesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-17overlay: Track requests per-processChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-17overlay: Drop unused mmap/comm eventsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-17overlay: Constify perf ringbufferChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-17overlay: Fix wraparound handling of perf ringbufferChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-17overlay: Primitive integration with perfChris Wilson
We can now record when a pageflip occurs by listening for the flip tracepoint. Merely proof of principle at this point. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>