diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-12-21 13:53:27 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-12-21 13:56:04 +0000 |
commit | eb799b29947a9030aca7d808e97190635636c8de (patch) | |
tree | 5bfe850617a83bee0893a05f14dab0608a251bff /overlay/gpu-perf.c | |
parent | 0be9766952333dc54a0c568bc487660c0caf5edf (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.c | 3 |
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; |