diff options
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; |