summaryrefslogtreecommitdiff
path: root/overlay/gpu-perf.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-12-21 13:53:27 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-12-21 13:56:04 +0000
commiteb799b29947a9030aca7d808e97190635636c8de (patch)
tree5bfe850617a83bee0893a05f14dab0608a251bff /overlay/gpu-perf.c
parent0be9766952333dc54a0c568bc487660c0caf5edf (diff)
overlay: Hide kworker threads in overview
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>
Diffstat (limited to 'overlay/gpu-perf.c')
-rw-r--r--overlay/gpu-perf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/overlay/gpu-perf.c b/overlay/gpu-perf.c
index 1d35da50..42ac44d5 100644
--- a/overlay/gpu-perf.c
+++ b/overlay/gpu-perf.c
@@ -266,6 +266,7 @@ static int wait_begin(struct gpu_perf *gp, const void *event)
return 0;
wait->comm = comm;
+ wait->comm->active = true;
wait->seqno = sample->raw[2];
wait->time = sample->time;
wait->next = gp->wait[sample->raw[1]];
@@ -284,6 +285,8 @@ static int wait_end(struct gpu_perf *gp, const void *event)
continue;
wait->comm->wait_time += sample->time - wait->time;
+ wait->comm->active = false;
+
*prev = wait->next;
free(wait);
return 1;