diff options
| author | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-09-30 09:43:03 -0400 |
|---|---|---|
| committer | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-09-30 09:43:03 -0400 |
| commit | 7058f0adcfbb98aa3ffea10c6937d8850e99312d (patch) | |
| tree | 367794fce7fbf2ecb86d63817b214f7c0386a9a7 /tools/guest-diag | |
| parent | 783262e0aeb6631114288270087eb57295c1fdf0 (diff) | |
| download | open-iov-7058f0adcfbb98aa3ffea10c6937d8850e99312d.tar.gz open-iov-7058f0adcfbb98aa3ffea10c6937d8850e99312d.zip | |
guest-diag: pin scanner matches va* clients too (static-cudart vectorAdd)
Diffstat (limited to 'tools/guest-diag')
| -rw-r--r-- | tools/guest-diag/guest_pin_stream.py | 5 |
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 |
