Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions usb/tracing/BusesTrace.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -274,22 +274,27 @@ if exist %SystemRoot%\LiveKernelReports\USB* (
)


rem Collecting DispDiag and if availiable the DES mini dump
rem Collecting DispDiag and if available the DES mini dump
rem Note: when stopping a boot trace, profileName is not set (the user only
rem selects "Stop Boot Session Trace" without choosing a profile), so we
rem always collect DispDiag and minidumps in that case since we can't
rem determine which profile was used to start the boot trace.
if "%profileName%"=="SensorsOnlyProfile" goto CollectDispDiag
if "%profileName%"=="Usb4WithTunnelsProfile" goto CollectDispDiag
if "%profileName%"=="BusesAllProfile" goto CollectDispDiag
if "%profileName%"=="Usb4WithExtendedDisplayProfile" goto CollectDispDiag
if "%profileName%"=="" goto CollectDispDiag
goto SkipCollectDispDiag
:CollectDispDiag
echo.
echo Now collecting DispDiag
dispdiag.exe
move "%scriptDirectory%*.dat" %traceFilesOutputPath%

if exist %miniDumpCollectionScript% (
if exist %scriptDirectory%%miniDumpCollectionScript% (
echo Now collecting sensor process minidumps
pushd "%~dp0"
powershell -ExecutionPolicy bypass -file "%miniDumpCollectionScript%" -FileList "Microsoft.Graphics.Display.DisplayEnhancementService.dll umpoext.dll sensorservice.dll SensorsCx.dll" -OutputPath "%traceFilesOutputPath%"
powershell -ExecutionPolicy bypass -file "%scriptDirectory%%miniDumpCollectionScript%" -FileList "Microsoft.Graphics.Display.DisplayEnhancementService.dll umpoext.dll sensorservice.dll SensorsCx.dll" -OutputPath "%traceFilesOutputPath%"
copy %SYSTEMROOT%\system32\DispDiag*.dat %traceFilesOutputPath% >nul 2>&1
popd
)
Expand Down
Loading