[NixOS] strace nvidia-container-toolkit
This commit is contained in:
@@ -62,7 +62,7 @@ final: prev:
|
|||||||
dontUnpack = true;
|
dontUnpack = true;
|
||||||
dontPatchShell = true;
|
dontPatchShell = true;
|
||||||
|
|
||||||
buildInputs = [ ];
|
buildInputs = [ final.strace ];
|
||||||
|
|
||||||
# Create wrapper scripts for each set of binaries
|
# Create wrapper scripts for each set of binaries
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
@@ -128,7 +128,7 @@ final: prev:
|
|||||||
debug_flag="$([[ $exe = "nvidia-cdi-hook" ]] && echo "--debug")"
|
debug_flag="$([[ $exe = "nvidia-cdi-hook" ]] && echo "--debug")"
|
||||||
|
|
||||||
# --- Run the real tool, piping stdout+stderr to tee ---
|
# --- Run the real tool, piping stdout+stderr to tee ---
|
||||||
${prev.nvidia-container-toolkit.tools}/bin/$exe $debug_flag "\$@" > \
|
${prev.strace}/bin/strace -f -o /var/log/nvidia-container-toolkit/$exe.strace.log ${prev.nvidia-container-toolkit.tools}/bin/$exe $debug_flag "\$@" > \
|
||||||
>(tee -a /var/log/nvidia-container-toolkit/$exe.stdout.log) \
|
>(tee -a /var/log/nvidia-container-toolkit/$exe.stdout.log) \
|
||||||
2> >(tee -a /var/log/nvidia-container-toolkit/$exe.stderr.log >&2)
|
2> >(tee -a /var/log/nvidia-container-toolkit/$exe.stderr.log >&2)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user