0395af0a8eb50a31dc7fd513be843d2f4ff1a8b1
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 -v Enable verbose output
25 -vv Enable extra verbosity - dumps gtt mappings
27 --help Display this help message and exit
34 ld_preload
="@install_libexecdir@/libintel_dump_gpu.so${LD_PRELOAD:+:$LD_PRELOAD}"
57 add_arg
"file=${file:-$(basename ${file}).aub}"
62 add_arg
"file=${file:-$(basename ${file}).aub}"
67 add_arg
"file=${file:-$(basename ${file}).aub}"
71 add_arg
"device=${1##--device=}"
76 add_arg
"platform=${platform}"
81 add_arg
"platform=${platform}"
85 platform
=${1##--platform=}
86 add_arg
"platform=${platform}"
98 add_arg
"capture_only=1"
102 add_arg
"capture_only=1"
113 echo "intel_aubdump: invalid option: $1"
123 [ -z $1 ] && show_help
125 [ -z $file ] && add_arg
"file=intel.aub"
128 echo -e $args > $tmp_file
131 LD_PRELOAD
="$ld_preload" INTEL_DUMP_GPU_CONFIG
=$tmp_file "$@"
133 gdb
-iex "set exec-wrapper env LD_PRELOAD=$ld_preload INTEL_DUMP_GPU_CONFIG=$tmp_file" --args "$@"