diff options
Diffstat (limited to 'src/intel/tools/intel_dump_gpu.in')
-rwxr-xr-x | src/intel/tools/intel_dump_gpu.in | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/intel/tools/intel_dump_gpu.in b/src/intel/tools/intel_dump_gpu.in index 9eea37189db..0454cff25da 100755 --- a/src/intel/tools/intel_dump_gpu.in +++ b/src/intel/tools/intel_dump_gpu.in @@ -82,7 +82,12 @@ done [ -z $file ] && add_arg "file=intel.aub" +tmp_file=`mktemp` +echo -e $args > $tmp_file + LD_PRELOAD="@install_libexecdir@/libintel_dump_gpu.so${LD_PPRELOAD:+:$LD_PRELOAD}" \ - exec -- "$@" 3<<EOF -`echo -e $args` -EOF + INTEL_DUMP_GPU_CONFIG=$tmp_file \ + $@ +ret=$? +rm $tmp_file +exit $ret |