Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

570 lines
18 KiB

  1. @echo off
  2. rem Name : Runtrace.cmd
  3. rem Author: Shiwei Sun
  4. rem Date : January 29th 1999
  5. rem Revisied by: Sabina Sutkovic
  6. rem Name of revision: Runtracecall.cmd
  7. rem Date : 8-31-00
  8. rem
  9. rem CMD script file to test event tracing. All the variations are very trivial
  10. rem and test for basic functionality.
  11. rem
  12. rem Variation 1 - single provider - start, query, update and stop tested
  13. rem Variation 2 - three providers - intermingled start and stop tested
  14. rem Variation 3 - changes buffer numbers and sizes
  15. rem Variation 4 - tests sequential and circular buffer modifications
  16. rem Variation 5 - tests kernel logger and all kernel flags
  17. if "%1"=="?" goto help
  18. if "%1"=="/?" goto help
  19. if "%1"=="-?" goto help
  20. if "%1"=="/h" goto help
  21. if "%1"=="-h" goto help
  22. if "%1"=="help" goto help
  23. if exist evntrace.log del evntrace.log
  24. if exist provider.log del provider.log
  25. if exist SuccessTests.log del SuccessTests.log
  26. if exist FailedTests.log del FailedTests.log
  27. if exist ST.txt del ST.txt
  28. if exist FT.txt del FT.txt
  29. if exist startvar.txt del startvar.txt
  30. @set Guid1=d58c126f-b309-11d1-969e-0000f875a5bc
  31. @set Guid2=dcb8c570-2c70-11d2-90ba-00805f8a4d63
  32. @set Guid3=f5b6d380-2c70-11d2-90ba-00805f8a4d63
  33. @set Guid4=f5b6d381-2c70-11d1-90ba-00805f8a4d63
  34. @set Guid5=f5b6d382-2c70-11d1-90ba-00805f8a4d63
  35. @set Guid6=f5b6d383-2c70-11d1-90ba-00805f8a4d63
  36. @echo ========================================================
  37. @echo Variation 1 - single provider and logger - trivial tests
  38. @echo ========================================================
  39. start /b "Variation 1 - provider 1" tracedp.exe 8000 -guid #%Guid1% -UseEventTraceHeader -GuidPtrMofPtr>startvar.txt
  40. sleep 1
  41. tracelog.exe -start dp1 -guid #%Guid1% -f dp1.log -b 1024 >rundrt.log
  42. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  43. set flag=1
  44. rem TEST1
  45. call :SUB1 %flag% %test%
  46. sleep 1
  47. tracelog -q dp1 -guid #%Guid1% >rundrt.log
  48. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  49. set /A flag=flag+1
  50. rem TEST2
  51. call :SUB1 %flag% %test%
  52. sleep 1
  53. tracelog -flush dp1 -guid #%Guid1% >rundrt.log
  54. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  55. set /A flag=flag+1
  56. rem TEST3
  57. call :SUB1 %flag% %test%
  58. sleep 1
  59. tracelog -update dp1 -guid #%Guid1%>rundrt.log
  60. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  61. set /A flag=flag+1
  62. rem TEST4
  63. call :SUB1 %flag% %test%
  64. sleep 20
  65. tracelog -disable dp1 -guid #%Guid1% >rundrt.log
  66. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  67. set /A flag=flag+1
  68. rem TEST5
  69. call :SUB1 %flag% %test%
  70. sleep 2
  71. tracelog -stop dp1 -guid #%Guid1% >rundrt.log
  72. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  73. set /A flag=flag+1
  74. rem TEST6
  75. call :SUB1 %flag% %test%
  76. @echo ==================================================================
  77. @echo Variation 2 - three providers - intermingled start and stop tested
  78. @echo ==================================================================
  79. start /b "Variation 2 - provider 2" tracedp.exe 10000 -guid #dcb8c570-2c70-11d2-90ba-00805f8a4d63 -UseEventInstanceHeader -UseMofPtrFlag>startvar.txt
  80. tracelog.exe -start dp2 -guid #%Guid2% -f dp2.log -ft 2 -b 1>rundrt.log
  81. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  82. set /A flag=flag+1
  83. rem TEST7
  84. call :SUB1 %flag% %test%
  85. sleep 1
  86. start /b "Variation 2 - provider 4" tracedp.exe 7000 -guid #054b1ae0-2c71-11d2-90ba-00805f8a4d63 -UseEventTraceHeader -UseMofPtrFlag
  87. sleep 20
  88. tracelog.exe -start dp4 -guid #054b1ae0-2c71-11d2-90ba-00805f8a4d63 -f dp4.log -b 128 -max 100>rundrt.log
  89. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  90. set /A flag=flag+1
  91. rem TEST8
  92. call :SUB1 %flag% %test%
  93. tracelog.exe -flush dp2 -guid #%Guid2% -rt>rundrt.log
  94. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  95. set /A flag=flag+1
  96. rem TEST9
  97. call :SUB1 %flag% %test%
  98. tracelog.exe -update dp2 -guid #%Guid2% -rt>rundrt.log
  99. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  100. set /A flag=flag+1
  101. rem TEST10
  102. call :SUB1 %flag% %test%
  103. sleep 20
  104. tracelog.exe -disable dp4 -guid #054b1ae0-2c71-11d2-90ba-00805f8a4d63 >rundrt.log
  105. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  106. set /A flag=flag+1
  107. rem TEST11
  108. call :SUB1 %flag% %test%
  109. sleep 2
  110. tracelog.exe -stop dp2 -guid #%Guid2% >rundrt.log
  111. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  112. set /A flag=flag+1
  113. rem TEST12
  114. call :SUB1 %flag% %test%
  115. sleep 20
  116. tracelog.exe -disable dp4 -guid #054b1ae0-2c71-11d2-90ba-00805f8a4d63 >rundrt.log
  117. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  118. set /A flag=flag+1
  119. rem TEST13
  120. call :SUB1 %flag% %test%
  121. sleep 2
  122. tracelog.exe -stop dp4 -guid #054b1ae0-2c71-11d2-90ba-00805f8a4d63 >rundrt.log
  123. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  124. set /A flag=flag+1
  125. rem TEST14
  126. call :SUB1 %flag% %test%
  127. @echo ==============================================
  128. @echo Variation 3 - changes buffer numbers and sizes
  129. @echo ==============================================
  130. @set Guid7=b39d2858-2c79-11d2-90ba-00805f8a4d63
  131. @set Guid8=d0ca64d8-2c79-11d2-90ba-00805f8a4d63
  132. start /b "Variation 3 - provider 5" tracedp.exe 25000 -guid #%Guid7%
  133. start /b "Variation 3 - provider 6" tracedp.exe 1000 -guid #%Guid8%
  134. tracelog.exe -start dp5 -guid #%Guid7% -f dp5.log -b 20 -min 50 -max 100>rundrt.log
  135. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  136. set /A flag=flag+1
  137. rem TEST15
  138. call :SUB1 %flag% %test%
  139. sleep 1
  140. tracelog.exe -start dp6 -guid #%Guid8% -f dp6.log -b 1024 -min 1024 -max 8192>rundrt.log
  141. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  142. set /A flag=flag+1
  143. rem TEST16
  144. call :SUB1 %flag% %test%
  145. sleep 20
  146. tracelog.exe -disable dp5 -guid #%Guid7%>rundrt.log
  147. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  148. set /A flag=flag+1
  149. rem TEST17
  150. call :SUB1 %flag% %test%
  151. sleep 2
  152. tracelog.exe -stop dp5 -guid #%Guid7%>rundrt.log
  153. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  154. set /A flag=flag+1
  155. rem TEST18
  156. call :SUB1 %flag% %test%
  157. tracelog.exe -q dp6 -guid #%Guid8% -f dp6.log>rundrt.log
  158. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  159. set /A flag=flag+1
  160. rem TEST19
  161. call :SUB1 %flag% %test%
  162. sleep 10
  163. tracelog.exe -stop dp6 -guid #%Guid8%>rundrt.log
  164. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  165. set /A flag=flag+1
  166. rem TEST20
  167. call :SUB1 %flag% %test%
  168. @echo ================================================================
  169. @echo Variation 4 - tests sequential and cyclical buffer modifications
  170. @echo Trace File Variations
  171. @echo ================================================================
  172. @set Guid9=68799948-2c7f-11d2-90bb-00805f8a4d63
  173. @set Guid10=c9bf20c8-2c7f-11d2-90bb-00805f8a4d63
  174. @set Guid11=c9f49c58-2c7f-11d2-90bb-00805f8a4d63
  175. start /b "Variation 4 - provider 7" tracedp.exe 25000 -guid #%Guid9%
  176. start /b "Variation 4 - provider 8" tracedp.exe 25000 -guid #%Guid10%
  177. start /b "Variation 4 - provider 9" tracedp.exe 25000 -guid #%Guid11%
  178. sleep 1
  179. tracelog.exe -start dp7 -guid #%Guid9% -f dp7.log -seq>rundrt.log
  180. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  181. set /A flag=flag+1
  182. rem TEST21
  183. call :SUB1 %flag% %test%
  184. sleep 1
  185. tracelog.exe -start dp8 -guid #%Guid10% -f dp8.log -cir>rundrt.log
  186. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  187. set /A flag=flag+1
  188. rem TEST22
  189. call :SUB1 %flag% %test%
  190. sleep 2
  191. tracelog.exe -start dp9 -guid #%Guid11% -f dp9.log>rundrt.log
  192. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  193. set /A flag=flag+1
  194. rem TEST23
  195. call :SUB1 %flag% %test%
  196. sleep 2
  197. tracelog.exe -q dp7 -guid #%Guid9% -seq>rundrt.log
  198. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  199. set /A flag=flag+1
  200. rem TEST24
  201. call :SUB1 %flag% %test%
  202. sleep 2
  203. tracelog.exe -update dp8 -guid #%Guid10% -cir>rundrt.log
  204. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  205. set /A flag=flag+1
  206. rem TEST25
  207. call :SUB1 %flag% %test%
  208. sleep 2
  209. tracelog.exe -q dp9 -guid #%Guid11% -f dp9.log>rundrt.log
  210. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  211. set /A flag=flag+1
  212. rem TEST26
  213. call :SUB1 %flag% %test%
  214. sleep 2
  215. tracelog.exe -flush dp7 -guid #%Guid9% -seq>rundrt.log
  216. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  217. set /A flag=flag+1
  218. rem TEST27
  219. call :SUB1 %flag% %test%
  220. sleep 10
  221. tracelog.exe -update dp7 -guid #%Guid9% -seq>rundrt.log
  222. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  223. set /A flag=flag+1
  224. rem TEST28
  225. call :SUB1 %flag% %test%
  226. sleep 20
  227. tracelog.exe -disable dp7 -guid #%Guid9% -cir>rundrt.log
  228. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  229. set /A flag=flag+1
  230. rem TEST29
  231. call :SUB1 %flag% %test%
  232. sleep 2
  233. tracelog.exe -stop dp7 -guid #%Guid9% -seq>rundrt.log
  234. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  235. set /A flag=flag+1
  236. rem TEST30
  237. call :SUB1 %flag% %test%
  238. sleep 20
  239. tracelog.exe -disable dp8 -guid #%Guid10% -cir>rundrt.log
  240. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  241. set /A flag=flag+1
  242. rem TEST31
  243. call :SUB1 %flag% %test%
  244. sleep 2
  245. tracelog.exe -stop dp8 -guid #%Guid10% -cir>rundrt.log
  246. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  247. set /A flag=flag+1
  248. rem TEST32
  249. call :SUB1 %flag% %test%
  250. sleep 20
  251. tracelog.exe -disable dp9 -guid #%Guid11% >rundrt.log
  252. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  253. set /A flag=flag+1
  254. rem TEST33
  255. call :SUB1 %flag% %test%
  256. sleep 2
  257. tracelog.exe -stop dp9 -guid #%Guid11% >rundrt.log
  258. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  259. set /A flag=flag+1
  260. rem TEST34
  261. call :SUB1 %flag% %test%
  262. @echo ======================================================
  263. @echo Variation 5 - tests kernel logger and all kernel flags
  264. @echo ======================================================
  265. tracelog.exe -start -img -fio -pf -hf>rundrt.log
  266. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  267. set /A flag=flag+1
  268. rem TEST35
  269. call :SUB1 %flag% %test%
  270. sleep 2
  271. tracelog.exe -q>rundrt.log
  272. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  273. set /A flag=flag+1
  274. rem TEST36
  275. call :SUB1 %flag% %test%
  276. tracelog.exe -stop>rundrt.log
  277. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  278. set /A flag=flag+1
  279. rem TEST37
  280. call :SUB1 %flag% %test%
  281. @echo =====================================
  282. @echo Variation 6 - tests real-time loggers
  283. @echo Starting Realtime Kernel Logger
  284. @echo =====================================
  285. tracelog.exe -start -rt -pf -fio -ft 1 -b 1>rundrt.log
  286. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  287. set /A flag=flag+1
  288. rem TEST38
  289. call :SUB1 %flag% %test%
  290. sleep 5
  291. tracelog.exe -stop -rt>rundrt.log
  292. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  293. set /A flag=flag+1
  294. rem TEST39
  295. call :SUB1 %flag% %test%
  296. @echo Starting Realtime Kernel Logger with large Buffers
  297. tracelog.exe -start -rt -pf -fio -ft 1 -b 512>rundrt.log
  298. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  299. set /A flag=flag+1
  300. rem TEST40
  301. call :SUB1 %flag% %test%
  302. sleep 5
  303. tracelog.exe -stop -rt>rundrt.log
  304. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  305. set /A flag=flag+1
  306. rem TEST41
  307. call :SUB1 %flag% %test%
  308. start /b "Variation 6 - provider 5" tracedp.exe 25000 -guid #b39d2858-2c79-11d2-90ba-00805f8a4d63
  309. start /b "Variation 6 - provider 6" tracedp.exe 1000 -guid #d0ca64d8-2c79-11d2-90ba-00805f8a4d63
  310. tracelog.exe -start dp5 -guid #b39d2858-2c79-11d2-90ba-00805f8a4d63 -rt -b 20 -min 50 -max 100>rundrt.log
  311. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  312. set /A flag=flag+1
  313. rem TEST42
  314. call :SUB1 %flag% %test%
  315. tracelog.exe -start dp6 -guid #d0ca64d8-2c79-11d2-90ba-00805f8a4d63 -rt -b 20 -min 50 -max 100>rundrt.log
  316. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  317. set /A flag=flag+1
  318. rem TEST43
  319. call :SUB1 %flag% %test%
  320. sleep 2
  321. tracelog.exe -stop dp5>rundrt.log
  322. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  323. set /A flag=flag+1
  324. rem TEST44
  325. call :SUB1 %flag% %test%
  326. sleep 10
  327. tracelog.exe -stop dp6>rundrt.log
  328. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  329. set /A flag=flag+1
  330. rem TEST45
  331. call :SUB1 %flag% %test%
  332. @echo ===========================================================
  333. @echo Variation 7 - Kernel Logger Tests - Different Logger Types
  334. @echo Sequential Logger Starting Sequential Kernel Logger
  335. @echo ==========================================================
  336. tracelog.exe -start -f krnl7.log>rundrt.log
  337. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  338. set /A flag=flag+1
  339. rem TEST46
  340. call :SUB1 %flag% %test%
  341. sleep 5
  342. tracelog.exe -stop>rundrt.log
  343. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  344. set /A flag=flag+1
  345. rem TEST47
  346. call :SUB1 %flag% %test%
  347. @echo Circular Logger 1 MB
  348. tracelog.exe -start -f krnl8.log -cir 1>rundrt.log
  349. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  350. set /A flag=flag+1
  351. rem TEST48
  352. call :SUB1 %flag% %test%
  353. sleep 50
  354. tracelog.exe -stop>rundrt.log
  355. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  356. set /A flag=flag+1
  357. rem TEST49
  358. call :SUB1 %flag% %test%
  359. @echo Circular Logger 20 MB With Flush Timer with Large buffer Size
  360. tracelog.exe -start -f krnl9.log -cir 20 -ft 1 -b 128 -fio -pf>rundrt.log
  361. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  362. set /A flag=flag+1
  363. rem TEST50
  364. call :SUB1 %flag% %test%
  365. sleep 50
  366. tracelog.exe -stop>rundrt.log
  367. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  368. set /A flag=flag+1
  369. rem TEST51
  370. call :SUB1 %flag% %test%
  371. @echo Kernel Logger with some flags masked.
  372. tracelog.exe -start -f krnl10.log>rundrt.log
  373. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  374. set /A flag=flag+1
  375. rem TEST52
  376. call :SUB1 %flag% %test%
  377. tracelog.exe -q>rundrt.log
  378. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  379. set /A flag=flag+1
  380. rem TEST53
  381. call :SUB1 %flag% %test%
  382. sleep 5
  383. tracelog.exe -stop>rundrt.log
  384. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  385. set /A flag=flag+1
  386. rem TEST54
  387. call :SUB1 %flag% %test%
  388. @echo Kernel Logger with Flush Timer and Aging Decay with buffer variation
  389. tracelog.exe -start -f krnl11.log -fio -pf -b 1 -min 2 -max 1000 -ft 1 -age 1>rundrt.log
  390. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  391. set /A flag=flag+1
  392. rem TEST55
  393. call :SUB1 %flag% %test%
  394. tracelog.exe -q>rundrt.log
  395. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  396. set /A flag=flag+1
  397. rem TEST56
  398. call :SUB1 %flag% %test%
  399. sleep 100
  400. tracelog.exe -q>rundrt.log
  401. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  402. set /A flag=flag+1
  403. rem TEST57
  404. call :SUB1 %flag% %test%
  405. tracelog.exe -stop>rundrt.log
  406. for /F "tokens=3" %%I in ('findstr Status: rundrt.log') do set test=%%I
  407. set /A flag=flag+1
  408. rem TEST58
  409. call :SUB1 %flag% %test%
  410. :EOL
  411. @echo ____________________________________________________
  412. @echo If you have any questions about this script contact:
  413. @echo Sabina Sutkovic alias:t-sabins or
  414. @echo Melur Raghuraman alias:mraghu
  415. @echo ____________________________________________________
  416. @echo The list of the Successful tests are dumped in ST.txt file.
  417. @echo The list of the Failed tests are dumped in FT.txt file.
  418. @echo The details of Successful test are in SuccessTests.log.
  419. @echo The details of Failed tests are in FailedTests.log.
  420. echo.
  421. if not exist st.txt (
  422. sline=0
  423. @echo ====================================
  424. @echo Sorry all of the tests have Failed.
  425. ) else (
  426. wc st.txt>linecount.txt
  427. for /F "tokens=1" %%I in (linecount.txt) do set sline=%%I
  428. )
  429. if not exist ft.txt (
  430. set fline=0
  431. @echo ================================================
  432. @echo Congratulation all of the tests are Successful.
  433. ) else (
  434. wc ft.txt>linecount.txt
  435. for /F "tokens=1" %%I in (linecount.txt) do set fline=%%I
  436. )
  437. @echo ===========================
  438. @echo %sline% Successful tests.
  439. @echo %fline% Failed tests.
  440. @echo ===========================
  441. del dp*
  442. goto :EOF
  443. :help
  444. tracelog.exe -h
  445. echo !
  446. echo !
  447. echo Usage: provider [parm1] [parm2] [parm3] [parm4] [parm5] [parm6]
  448. echo param1: Maximum number of events to process
  449. echo param2: Control guid to trace
  450. echo parm3: Sleep time in seconds between each event loop
  451. echo parm4: -UseEventInstanceHeader or TraceEvent
  452. echo parm5: GuidPtr or -UseMofPtrFlag or GuidPtrMofPtr
  453. echo parm6: or SingleReg
  454. echo Note: Parameters must be in sequential order, and cannot skipped.
  455. echo example:
  456. echo provider 80 %Guid1% 1 -UseEventTraceHeader MofPtr
  457. echo !
  458. echo !
  459. echo Usage: tracedmp [options] LogFileName
  460. echo LogFileName Log file name from witch tracedp.exe dumps data
  461. echo -begin time Dump data from begin time
  462. echo -end time Dump data with end time
  463. echo -um Set user mode. If omitted, default is kernel mode
  464. echo -rt logger Set real time mode for logger. If empty, kernel logger
  465. echo -guid name Guid file name. Default is MofData.guid
  466. echo -o name Output file name. Default is DumpFile.csv and Summary.txt
  467. echo example 1:
  468. echo tracedmp -um -o outputfile dp1.evm //dump user mode, log file is dp1.evm
  469. echo example 2:
  470. echo tracedmp -rt //dump kernel mode, real time stream.
  471. echo !
  472. :SUB1
  473. if %2==0L (
  474. echo.
  475. @echo TEST %1 SUCCESS >> ST.txt
  476. echo. >>SuccessTests.log
  477. echo. >>SuccessTests.log
  478. @echo TEST %1 SUCCESS >> SuccessTests.log
  479. type rundrt.log >> SuccessTests.log
  480. @echo TEST %1 SUCCESS
  481. echo.
  482. ) else (
  483. echo.
  484. @echo TEST %1 FAILED >> FT.txt
  485. echo. >>FailedTests.log
  486. echo. >>FailedTests.log
  487. @echo TEST %1 FAILED >> FailedTests.log
  488. type rundrt.log >> FailedTests.log
  489. @echo TEST %1 FAILED
  490. echo.
  491. )
  492. :EOF