[Spice-devel] [PATCH 4/4] qxl-wddm-dod: Add scripts for ETW recording and parsing

Christophe Fergeau cfergeau at redhat.com
Mon Jul 3 09:10:06 UTC 2017


Here you really need a longer log, I have no idea who is supposed to use
these scripts, what for, when, ...

On Fri, Jun 30, 2017 at 12:11:45PM +0300, Yuri Benditovich wrote:
> Signed-off-by: Yuri Benditovich <yuri.benditovich at daynix.com>
> ---
>  QxlDodCollectTrace.bat | 31 +++++++++++++++++++++++++++++++
>  QxlDodParseTrace.bat   | 10 ++++++++++
>  2 files changed, 41 insertions(+)
>  create mode 100644 QxlDodCollectTrace.bat
>  create mode 100644 QxlDodParseTrace.bat
> 
> diff --git a/QxlDodCollectTrace.bat b/QxlDodCollectTrace.bat
> new file mode 100644
> index 0000000..29ccde5
> --- /dev/null
> +++ b/QxlDodCollectTrace.bat
> @@ -0,0 +1,31 @@
> +:: Place this script to any writable directory
> +:: on the machine and run it as administrator
> +:: recorded binary file qxldod.etl will be created in the same directory
> +:: 
> +:: parameter "4" in 'logman update' sets logging level to INFO
> +:: change it to "5" for VERBOSE
> +:: 
> +
> + at echo off
> +
> +net session >nul 2>&1
> +if %errorlevel% equ 0 goto :admin_ok
> +echo This script shall run with administrator rights
> +pause
> +goto :eof
> +
> +
> +:admin_ok
> +pushd "%~dp0"
> +logman stop qxldod -ets >nul 2>&1
> +logman delete qxldod -ets >nul 2>&1
> +logman create trace qxldod -o qxldod.etl -ow -ets 
> +logman update qxldod -p {756ABE50-54E3-4A05-B5BB-F0112C75B18A} 0x7fffffff 4 -ets
> +echo Recording started.
> +echo Reproduce the problem, then press ENTER
> +pause > nul
> +logman stop qxldod -ets
> +dir qxldod.etl
> +echo Please collect qxldod.etl file now
> +pause
> +popd
> diff --git a/QxlDodParseTrace.bat b/QxlDodParseTrace.bat
> new file mode 100644
> index 0000000..8237ec0
> --- /dev/null
> +++ b/QxlDodParseTrace.bat
> @@ -0,0 +1,10 @@
> + at echo off
> +set tmpname=%temp%\%RANDOM%%RANDOM%%RANDOM%.tmp
> +if "%~1" equ "" goto :usage
> +if "%~2" equ "" goto :usage
> +"C:\Program Files (x86)\Windows Kits\10\tools\x86\traceview.exe" -process "%~1" -o %tmpname% -pdb "~2" -nosummary
> +start notepad %tmpname%
> +goto :eof
> +:usage
> +echo %~n0 ^<ETL trace file^> ^<PDB file^>
> +goto :eof
> -- 
> 2.7.0.windows.1
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20170703/425bfe49/attachment.sig>


More information about the Spice-devel mailing list