summaryrefslogtreecommitdiff
path: root/overlay/gpu-perf.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-08-17 22:33:35 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-08-17 22:33:35 +0100
commit67f533f836487093a27e176d64de206772088345 (patch)
treee0731f8a28efa9e6e7082dd25fcb3bb24ee7e772 /overlay/gpu-perf.h
parent6233cac9c9f264961c62bb1330d8f48b3b6922b5 (diff)
overlay: Accumulate busy times
Still a little too course as we add multiple overlapping seqnos and waits. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'overlay/gpu-perf.h')
-rw-r--r--overlay/gpu-perf.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/overlay/gpu-perf.h b/overlay/gpu-perf.h
index 476bbaab..ced9379e 100644
--- a/overlay/gpu-perf.h
+++ b/overlay/gpu-perf.h
@@ -14,19 +14,20 @@ 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];
void *user_data;
- uint64_t wait_begin;
uint64_t wait_time;
+ uint64_t busy_time;
} *comm;
+ struct gpu_perf_time {
+ struct gpu_perf_time *next;
+ struct gpu_perf_comm *comm;
+ uint32_t seqno;
+ uint64_t time;
+ } *wait, *busy;
};
void gpu_perf_init(struct gpu_perf *gp, unsigned flags);