Skip to content

Commit

Permalink
tools: Add BAT file for recording of binary trace
Browse files Browse the repository at this point in the history
Existing batch file records binary trace using TraceView that
shall be copied from WDK, which is not always installed on end
user machine. Added batch file allows recording without additional
tools, using built-in logman application.

Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com>
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
  • Loading branch information
ybendito authored and Dmitry Fleytman committed May 29, 2017
1 parent 330368c commit b41c88d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Tools/Trace/UsbDkLogman.bat
@@ -0,0 +1,14 @@
echo off
pushd "%~dp0"
logman stop usbdkm -ets >nul 2>&1
logman delete usbdkm -ets >nul 2>&1
logman create trace usbdkm -o usbdk.etl -ow -ets
logman update usbdkm -p {88e1661f-48b6-410f-b096-ba84e9f0656f} 0x7fffffff 6 -ets
echo Recording started.
echo Reproduce the problem, then press ENTER
pause > nul
logman stop usbdkm -ets
dir usbdk.etl
echo Please collect usbdk.etl file now
pause
popd

0 comments on commit b41c88d

Please sign in to comment.