summaryrefslogtreecommitdiffstats
path: root/tools/test
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-09-30 05:38:31 -0400
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-09-30 05:38:31 -0400
commita213fd708dac4494b796bcc9becee1ad4e598b49 (patch)
tree28175b548bde0584d78cbfe4ac1d42e3344a416e /tools/test
parent2a6f1773f487b902a2f9412c8f5e7292187cf550 (diff)
downloadopen-iov-a213fd708dac4494b796bcc9becee1ad4e598b49.tar.gz
open-iov-a213fd708dac4494b796bcc9becee1ad4e598b49.zip
guest-diag: cdt CDT_WAIT park-at-end (live memory inspection); run_cycle CDT_WAIT passthrough
Diffstat (limited to 'tools/test')
-rw-r--r--tools/test/cuda_drv_test.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/test/cuda_drv_test.c b/tools/test/cuda_drv_test.c
index ba8c20c..9501cb3 100644
--- a/tools/test/cuda_drv_test.c
+++ b/tools/test/cuda_drv_test.c
@@ -135,5 +135,14 @@ int main(void)
MARK("cuCtxDestroy");
CHECK(cuCtxDestroy(ctx));
printf("ALL OK\n");
+ {
+ const char *wait = getenv("CDT_WAIT");
+ if (wait && atoi(wait) > 0) {
+ printf("CDT_WAIT: parked %d s (buf=%p back=%p)\n",
+ atoi(wait), (void *)buf, (void *)back);
+ fflush(stdout);
+ sleep((unsigned)atoi(wait));
+ }
+ }
return 0;
}