diff options
author | Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com> | 2015-08-04 15:00:50 -0700 |
---|---|---|
committer | Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com> | 2015-08-04 15:00:50 -0700 |
commit | 220c7d1f91e590be74866710d786833938c18c40 (patch) | |
tree | 1926a8fb14f89ac4f4b3b930e848e889e0684913 /tools/intel_aubdump.in | |
parent | f47bdba8b0504661b5d291a8639f156cda993379 (diff) |
tools/aubdump: Add --device option for overriding device ID
This lets us capture AUB traces for platforms different from the one
we're running on.
Signed-off-by: Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Diffstat (limited to 'tools/intel_aubdump.in')
-rw-r--r-- | tools/intel_aubdump.in | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/intel_aubdump.in b/tools/intel_aubdump.in index 7b5a0a1c..feee23a4 100644 --- a/tools/intel_aubdump.in +++ b/tools/intel_aubdump.in @@ -10,6 +10,8 @@ contents and execution of the GEM application. -o, --output=FILE Name of AUB file. Defaults to COMMAND.aub + --device=ID Override PCI ID of the reported device + -v Enable verbose output --help Display this help message and exit @@ -20,6 +22,7 @@ EOF } verbose=0 +device=0 while true; do case "$1" in @@ -39,6 +42,10 @@ while true; do file=${1##--output=} shift ;; + --device=*) + device=${1##--device=} + shift + ;; --help) show_help ;; @@ -66,5 +73,5 @@ exec_prefix=@exec_prefix@ libdir=@libdir@ LD_PRELOAD=${libdir}/intel_aubdump.so${LD_PPRELOAD:+:${LD_PRELOAD}} \ - INTEL_AUBDUMP_ARGS="verbose=$verbose;file=$file" \ + INTEL_AUBDUMP_ARGS="verbose=$verbose;file=$file;device=$device" \ exec -- "$@" |