6 Usage: intel_dump_gpu [OPTION]... [--] COMMAND ARGUMENTS
8 Run COMMAND with ARGUMENTS and dump an AUB file that captures buffer
9 contents and execution of the GEM application.
13 -o, --output=FILE Name of AUB file. Defaults to COMMAND.aub
15 --device=ID Override PCI ID of the reported device
17 -v Enable verbose output
19 -vv Enable extra verbosity - dumps gtt mappings
21 --help Display this help message and exit
28 ld_preload
="@install_libexecdir@/libintel_dump_gpu.so${LD_PPRELOAD:+:$LD_PRELOAD}"
42 add_arg
"file=${file:-$(basename ${file}).aub}"
55 add_arg
"file=${file:-$(basename ${file}).aub}"
60 add_arg
"file=${file:-$(basename ${file}).aub}"
64 add_arg
"device=${1##--device=}"
83 echo "intel_aubdump: invalid option: $1"
93 [ -z $1 ] && show_help
95 [ -z $file ] && add_arg
"file=intel.aub"
98 echo -e $args > $tmp_file
101 LD_PRELOAD
="$ld_preload" INTEL_DUMP_GPU_CONFIG
=$tmp_file $@
103 gdb
-iex "set exec-wrapper env LD_PRELOAD=$ld_preload INTEL_DUMP_GPU_CONFIG=$tmp_file" --args $@