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.
11 -o, --output=FILE Name of AUB file. Defaults to COMMAND.aub
13 -c, --command=CMD Execute CMD and write the AUB file's content to its
16 --device=ID Override PCI ID of the reported device
18 -v Enable verbose output
20 -vv Enable extra verbosity - dumps gtt mappings
22 --help Display this help message and exit
38 function build_command
() {
41 if [ -z $command ]; then
53 add_arg
"file=${file:-$(basename ${file}).aub}"
66 add_arg
"file=${file:-$(basename ${file}).aub}"
71 add_arg
"file=${file:-$(basename ${file}).aub}"
76 add_arg
"command=$command"
80 build_command
"${1##--command=}"
81 add_arg
"command=$command"
85 add_arg
"device=${1##--device=}"
96 echo "intel_aubdump: invalid option: $1"
106 [ -z $1 ] && show_help
108 [ -z $file ] && [ -z $command ] && add_arg
"file=intel.aub"
110 LD_PRELOAD
="@install_libexecdir@/libintel_dump_gpu.so${LD_PPRELOAD:+:$LD_PRELOAD}" \