060c21c592b8d9c6bf724270bdf9b5e5cf3c9b5e
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 -p, --platform=NAME Override PCI ID using a platform name
19 -v Enable verbose output
21 -vv Enable extra verbosity - dumps gtt mappings
23 --help Display this help message and exit
30 ld_preload
="@install_libexecdir@/libintel_dump_gpu.so${LD_PRELOAD:+:$LD_PRELOAD}"
52 add_arg
"file=${file:-$(basename ${file}).aub}"
57 add_arg
"file=${file:-$(basename ${file}).aub}"
62 add_arg
"file=${file:-$(basename ${file}).aub}"
66 add_arg
"device=${1##--device=}"
71 add_arg
"platform=${platform}"
76 add_arg
"platform=${platform}"
81 add_arg
"platform=${platform}"
100 echo "intel_aubdump: invalid option: $1"
110 [ -z $1 ] && show_help
112 [ -z $file ] && add_arg
"file=intel.aub"
115 echo -e $args > $tmp_file
118 LD_PRELOAD
="$ld_preload" INTEL_DUMP_GPU_CONFIG
=$tmp_file "$@"
120 gdb
-iex "set exec-wrapper env LD_PRELOAD=$ld_preload INTEL_DUMP_GPU_CONFIG=$tmp_file" --args "$@"