intel/dump_gpu: Fix name of LD_PRELOAD in env append logic
authorD Scott Phillips <d.scott.phillips@intel.com>
Fri, 8 May 2020 21:37:06 +0000 (14:37 -0700)
committerD Scott Phillips <d.scott.phillips@intel.com>
Fri, 8 May 2020 21:49:07 +0000 (14:49 -0700)
Checking for the wrong environment variable name to be set causes
us to stomp any pre-existing LD_PRELOAD.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4970>

src/intel/tools/intel_dump_gpu.in

index f9fed66c1e3413a8b4eca00baeb2669d3861e89f..060c21c592b8d9c6bf724270bdf9b5e5cf3c9b5e 100755 (executable)
@@ -27,7 +27,7 @@ EOF
     exit 0
 }
 
-ld_preload="@install_libexecdir@/libintel_dump_gpu.so${LD_PPRELOAD:+:$LD_PRELOAD}"
+ld_preload="@install_libexecdir@/libintel_dump_gpu.so${LD_PRELOAD:+:$LD_PRELOAD}"
 args=""
 file=""
 gdb=""