All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH i-g-t] intel_gpu_top: Hide unused clients
@ 2021-01-31  3:11 ` Chris Wilson
  0 siblings, 0 replies; 21+ messages in thread
From: Chris Wilson @ 2021-01-31  3:11 UTC (permalink / raw)
  To: intel-gfx; +Cc: igt-dev, Chris Wilson

Keep new clients hidden until they utilise the GPU.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2021-02-01 13:02 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-31  3:11 [Intel-gfx] [PATCH i-g-t] intel_gpu_top: Hide unused clients Chris Wilson
2021-01-31  3:11 ` [igt-dev] " Chris Wilson
2021-01-31  3:46 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-01-31  4:48 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-02-01  8:14 ` [Intel-gfx] [PATCH i-g-t] " Tvrtko Ursulin
2021-02-01  8:14   ` [igt-dev] " Tvrtko Ursulin
2021-02-01  8:21   ` [Intel-gfx] " Chris Wilson
2021-02-01  8:21     ` [igt-dev] " Chris Wilson
2021-02-01  8:36     ` [Intel-gfx] " Tvrtko Ursulin
2021-02-01  8:36       ` [igt-dev] " Tvrtko Ursulin
2021-02-01  8:49       ` [Intel-gfx] " Chris Wilson
2021-02-01  8:49         ` [igt-dev] " Chris Wilson
2021-02-01  8:53 ` [Intel-gfx] " Chris Wilson
2021-02-01  9:12   ` Tvrtko Ursulin
2021-02-01  9:31   ` [Intel-gfx] [PATCH i-g-t v2] " Chris Wilson
2021-02-01  9:53     ` Tvrtko Ursulin
2021-02-01  9:53       ` [igt-dev] " Tvrtko Ursulin
2021-02-01  9:57       ` [Intel-gfx] " Chris Wilson
2021-02-01 10:05         ` Tvrtko Ursulin
2021-02-01 10:05           ` Tvrtko Ursulin
2021-02-01 13:02   ` [igt-dev] ✗ Fi.CI.BUILD: failure for intel_gpu_top: Hide unused clients (rev3) Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.