summaryrefslogtreecommitdiff
path: root/overlay/gpu-perf.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-08-17 22:22:21 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-08-17 22:22:21 +0100
commit6233cac9c9f264961c62bb1330d8f48b3b6922b5 (patch)
tree5dcd740e10f9339f188915e7fbdcdc621926269c /overlay/gpu-perf.h
parente1d8d774f331ba4e515cad4e5efa91ddc18efad6 (diff)
overlay: Couple wait begin/end events together to fix accounting
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>
Diffstat (limited to 'overlay/gpu-perf.h')
-rw-r--r--overlay/gpu-perf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/overlay/gpu-perf.h b/overlay/gpu-perf.h
index 5c3e242e..476bbaab 100644
--- a/overlay/gpu-perf.h
+++ b/overlay/gpu-perf.h
@@ -14,6 +14,11 @@ struct gpu_perf {
int flip_complete;
struct gpu_perf_comm {
struct gpu_perf_comm *next;
+ struct gpu_perf_wait {
+ struct gpu_perf_wait *next;
+ uint32_t seqno;
+ uint64_t time;
+ } *wait;
char name[256];
pid_t pid;
int nr_requests[4];