[igt-dev] [PATCH i-g-t] intel_gpu_top: Hide unused clients
Chris Wilson
chris at chris-wilson.co.uk
Sun Jan 31 03:11:53 UTC 2021
Keep new clients hidden until they utilise the GPU.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin at linux.intel.com>
---
tools/intel_gpu_top.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c
index 60ff62d28..66a8effa6 100644
--- a/tools/intel_gpu_top.c
+++ b/tools/intel_gpu_top.c
@@ -828,8 +828,11 @@ static void update_client(struct client *c, unsigned int pid, char *name)
c->last[i] = val[i];
}
- c->samples++;
+ if (!c->total_runtime)
+ return;
+
c->status = ALIVE;
+ c->samples++;
}
static void
--
2.30.0
More information about the igt-dev
mailing list