summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-09-30 09:43:03 -0400
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-09-30 09:43:03 -0400
commit8479d388b714be710159da62c56398c3548e1563 (patch)
tree41e242bfd38f7c866d8d2f9d2c089a6ecf2b283c
parentc7f5a8b099f1f492eefaf8e413cf3c5aada38567 (diff)
downloadopen-iov-8479d388b714be710159da62c56398c3548e1563.tar.gz
open-iov-8479d388b714be710159da62c56398c3548e1563.zip
guest-diag: pin scanner matches va* clients too (static-cudart vectorAdd)
-rw-r--r--tools/guest-diag/guest_pin_stream.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/guest-diag/guest_pin_stream.py b/tools/guest-diag/guest_pin_stream.py
index f6f13e5..5f71731 100644
--- a/tools/guest-diag/guest_pin_stream.py
+++ b/tools/guest-diag/guest_pin_stream.py
@@ -116,12 +116,15 @@ def new_sems(seen):
def cdt_pid():
+ prefixes = tuple(p for p in os.environ.get("CLIENT_PREFIXES",
+ "cdt,va").split(",") if p)
for d in os.listdir('/proc'):
if not d.isdigit():
continue
try:
with open('/proc/%s/comm' % d) as f:
- if f.read().strip().startswith('cdt'):
+ name = f.read().strip()
+ if any(name.startswith(p) for p in prefixes):
return int(d)
except OSError:
pass