From 6233cac9c9f264961c62bb1330d8f48b3b6922b5 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 17 Aug 2013 22:22:21 +0100 Subject: 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 --- overlay/gpu-perf.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'overlay/gpu-perf.h') 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]; -- cgit v1.2.3