From 7058f0adcfbb98aa3ffea10c6937d8850e99312d Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Wed, 30 Sep 2026 09:43:03 -0400 Subject: guest-diag: pin scanner matches va* clients too (static-cudart vectorAdd) --- tools/guest-diag/guest_pin_stream.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools/guest-diag') 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 -- cgit v1.2.3