From 220c7d1f91e590be74866710d786833938c18c40 Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Kristensen Date: Tue, 4 Aug 2015 15:00:50 -0700 Subject: tools/aubdump: Add --device option for overriding device ID MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This lets us capture AUB traces for platforms different from the one we're running on. Signed-off-by: Kristian Høgsberg Kristensen --- tools/intel_aubdump.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tools/intel_aubdump.in') 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 -- "$@" -- cgit v1.2.3