overlay: Couple wait begin/end events together to fix accounting
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 17 Aug 2013 21:22:21 +0000 (22:22 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 17 Aug 2013 21:22:21 +0000 (22:22 +0100)
commit6233cac9c9f264961c62bb1330d8f48b3b6922b5
tree5dcd740e10f9339f188915e7fbdcdc621926269c
parente1d8d774f331ba4e515cad4e5efa91ddc18efad6
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>
overlay/gpu-perf.c
overlay/gpu-perf.h
overlay/overlay.c