From 54ca82d81bacb56197a607d0039ca6a015f5ac44 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Wed, 23 Sep 2026 07:05:45 -0400 Subject: userspace/cuda: libcuda analysis tree (debug-focused), guest ioctl tracer Analysis tooling for debugging CUDA execution in Open-IOV guests: - userspace/cuda/570.144/: fetch a library from a running guest (nc), objdump helpers, crash ip -> file vaddr + symbol mapping, and Ghidra headless import/analysis/decompile scripts (project kept so single functions decompile in seconds). The purpose is debugging correctness and performance of CUDA in Open-IOV VMs (not a reimplementation); extracted binaries and decompiled output are gitignored. - tools/guest-diag/ioctl_trace.c: ptrace tracker for the NVIDIA driver ioctls of a child (libcuda issues raw syscalls, so LD_PRELOAD sees nothing). Decodes RM_ALLOC (class) and RM_CONTROL (cmd) arguments; this is how the cuCtxCreate crash sequence was captured. - tools/test/cuda_drv_test.c: unbuffered + per-call markers so a crash identifies the CUDA call it happened in. --- userspace/cuda/570.144/.gitignore | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 userspace/cuda/570.144/.gitignore (limited to 'userspace/cuda/570.144/.gitignore') diff --git a/userspace/cuda/570.144/.gitignore b/userspace/cuda/570.144/.gitignore new file mode 100644 index 0000000..c5997d3 --- /dev/null +++ b/userspace/cuda/570.144/.gitignore @@ -0,0 +1,18 @@ +# Extracted vendor binaries (analysis inputs, never committed) +run/*.so +run/*.so.* +run/libcuda* +run/*.bin +run/*.run + +# Decompiled / disassembled output +run/*.c +run/*.txt +run/*.asm +run/*.json +run/*.log + +# Ghidra projects +run/*.rep/ +run/*.gpr +run/ghidra-*/ -- cgit v1.2.3