From a213fd708dac4494b796bcc9becee1ad4e598b49 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Wed, 30 Sep 2026 05:38:31 -0400 Subject: guest-diag: cdt CDT_WAIT park-at-end (live memory inspection); run_cycle CDT_WAIT passthrough --- tools/test/cuda_drv_test.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tools/test') 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; } -- cgit v1.2.3