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 -c, --only-capture Only write objects flagged with EXEC_OBJECT_CAPTURE into
20 the output aub file. This helps reducing output file
21 size greatly but won't produce a file replayable
23 -f, --frame=ID Only dump objects for frame ID
25 -v Enable verbose output
27 -vv Enable extra verbosity - dumps gtt mappings
29 --help Display this help message and exit
36 ld_preload
="@install_libexecdir@/libintel_dump_gpu.so${LD_PRELOAD:+:$LD_PRELOAD}"
60 add_arg
"file=${file:-$(basename ${file}).aub}"
65 add_arg
"file=${file:-$(basename ${file}).aub}"
70 add_arg
"file=${file:-$(basename ${file}).aub}"
74 add_arg
"device=${1##--device=}"
79 add_arg
"platform=${platform}"
84 add_arg
"platform=${platform}"
88 platform
=${1##--platform=}
89 add_arg
"platform=${platform}"
94 add_arg
"frame=${frame}"
99 add_arg
"frame=${frame}"
104 add_arg
"frame=${frame}"
116 add_arg
"capture_only=1"
120 add_arg
"capture_only=1"
131 echo "intel_aubdump: invalid option: $1"
141 [ -z $1 ] && show_help
143 [ -z $file ] && add_arg
"file=intel.aub"
146 echo -e $args > $tmp_file
149 LD_PRELOAD
="$ld_preload" INTEL_DUMP_GPU_CONFIG
=$tmp_file "$@"
151 gdb
-iex "set exec-wrapper env LD_PRELOAD=$ld_preload INTEL_DUMP_GPU_CONFIG=$tmp_file" --args "$@"