]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[ETC] add WPP scripts to collect traces and makebin script to create builds
authorsleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 21 Dec 2006 08:34:11 +0000 (08:34 +0000)
committersleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 21 Dec 2006 08:34:11 +0000 (08:34 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1@567 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/etc/makebin.bat [new file with mode: 0644]
trunk/etc/wpp/ALTraceRt.cmd [new file with mode: 0644]
trunk/etc/wpp/CreateTrace.cmd [new file with mode: 0644]
trunk/etc/wpp/IPoIBTraceRt.cmd [new file with mode: 0644]
trunk/etc/wpp/MTHCATraceRt.cmd [new file with mode: 0644]
trunk/etc/wpp/SDPTraceRt.cmd [new file with mode: 0644]
trunk/etc/wpp/StartSdpTrace.cmd [new file with mode: 0644]
trunk/etc/wpp/StartTrace.cmd [new file with mode: 0644]
trunk/etc/wpp/StopSdpTrace.cmd [new file with mode: 0644]
trunk/etc/wpp/StopTrace.cmd [new file with mode: 0644]

diff --git a/trunk/etc/makebin.bat b/trunk/etc/makebin.bat
new file mode 100644 (file)
index 0000000..cec75a8
--- /dev/null
@@ -0,0 +1,199 @@
+@echo off\r
+echo %1 %2\r
+\r
+if "%1"=="" goto usage\r
+\r
+if "%2"=="" goto usage\r
+\r
+if not exist %1 goto usage\r
+if not exist %2 goto usage\r
+\r
+if not exist %1\bin\kernel\objfre_wnet_amd64\amd64 goto error1\r
+if not exist %1\bin\kernel\objfre_wnet_ia64\ia64 goto error2\r
+if not exist %1\bin\kernel\objfre_wnet_x86\i386 goto error3\r
+if not exist %1\bin\user\objfre_wnet_amd64\amd64 goto error4\r
+if not exist %1\bin\user\objfre_wnet_ia64\ia64 goto error5\r
+if not exist %1\bin\user\objfre_wnet_x86\i386 goto error6\r
+if not exist %1\bin\user\objchk_wnet_amd64\amd64 goto error7\r
+if not exist %1\bin\user\objchk_wnet_ia64\ia64 goto error8\r
+if not exist %1\bin\user\objchk_wnet_x86\i386 goto error9\r
+\r
+setlocal\r
+\r
+rem\r
+rem KERNEL MODE\r
+rem\r
+\r
+rem Copy AMD64 drivers\r
+set bin_dir=%1\bin\kernel\objfre_wnet_amd64\amd64\r
+set dest_dir=%2\HCA\amd64\\r
+for %%i in (%bin_dir%\ibbus.sys, %bin_dir%\ibiou.sys, %bin_dir%\mthca.sys, %bin_dir%\mt23108.sys, %bin_dir%\thca.sys) do xcopy %%i %dest_dir% /y\r
+xcopy %bin_dir%\ipoib.sys %2\net\amd64\ /y\r
+xcopy %bin_dir%\vnic.sys %2\net\amd64\ /y\r
+xcopy %bin_dir%\ibsrp.sys %2\storage\amd64\ /y\r
+\r
+rem Copy IA64 drivers\r
+set bin_dir=%1\bin\kernel\objfre_wnet_ia64\ia64\r
+set dest_dir=%2\HCA\ia64\\r
+for %%i in (%bin_dir%\ibbus.sys, %bin_dir%\ibiou.sys, %bin_dir%\mthca.sys, %bin_dir%\mt23108.sys, %bin_dir%\thca.sys) do xcopy %%i %dest_dir% /y\r
+xcopy %bin_dir%\ipoib.sys %2\net\ia64\ /y\r
+xcopy %bin_dir%\vnic.sys %2\net\ia64\ /y\r
+xcopy %bin_dir%\ibsrp.sys %2\storage\ia64\ /y\r
+\r
+rem Copy x86 drivers\r
+set bin_dir=%1\bin\kernel\objfre_wnet_x86\i386\r
+set dest_dir=%2\HCA\x86\\r
+for %%i in (%bin_dir%\ibbus.sys, %bin_dir%\ibiou.sys, %bin_dir%\mthca.sys, %bin_dir%\mt23108.sys, %bin_dir%\thca.sys) do xcopy %%i %dest_dir% /y\r
+xcopy %bin_dir%\ipoib.sys %2\net\x86\ /y\r
+xcopy %bin_dir%\vnic.sys %2\net\x86\ /y\r
+xcopy %bin_dir%\ibsrp.sys %2\storage\x86\ /y\r
+\r
+rem\r
+rem USER MODE\r
+rem\r
+\r
+set bin_dir=%1\bin\user\objchk_wnet_amd64\amd64\r
+set dest_dir=%2\HCA\amd64\\r
+for %%i in (%bin_dir%\ibald.dll, %bin_dir%\complibd.dll, %bin_dir%\mthcaud.dll, %bin_dir%\mt23108ud.dll, %bin_dir%\IbInstaller.dll) do xcopy %%i %dest_dir% /y\r
+xcopy %bin_dir%\*.exe %2\tools\amd64\debug\ /y\r
+xcopy %bin_dir%\dapld.dll %2\DAPL\amd64\ /y\r
+xcopy %bin_dir%\datd.dll %2\DAPL\amd64\ /y\r
+\r
+rem Copy IA64 drivers\r
+set bin_dir=%1\bin\user\objchk_wnet_ia64\ia64\r
+set dest_dir=%2\HCA\ia64\\r
+for %%i in (%bin_dir%\ibald.dll, %bin_dir%\complibd.dll, %bin_dir%\mthcaud.dll, %bin_dir%\mt23108ud.dll, %bin_dir%\IbInstaller.dll) do xcopy %%i %dest_dir% /y\r
+xcopy %bin_dir%\*.exe %2\tools\ia64\debug\ /y\r
+xcopy %bin_dir%\dapld.dll %2\DAPL\ia64\ /y\r
+xcopy %bin_dir%\datd.dll %2\DAPL\ia64\ /y\r
+\r
+rem Copy x86 drivers\r
+set bin_dir=%1\bin\user\objchk_wnet_x86\i386\r
+set dest_dir=%2\HCA\x86\\r
+for %%i in (%bin_dir%\ibald.dll, %bin_dir%\complibd.dll, %bin_dir%\mthcaud.dll, %bin_dir%\mt23108ud.dll, %bin_dir%\IbInstaller.dll) do xcopy %%i %dest_dir% /y\r
+xcopy %bin_dir%\*.exe %2\tools\x86\debug\ /y\r
+xcopy %bin_dir%\dapld.dll %2\DAPL\x86\ /y\r
+xcopy %bin_dir%\datd.dll %2\DAPL\x86\ /y\r
+\r
+rem WOW64 DLLs\r
+xcopy %bin_dir%\installsp.exe %2\tools\x86\debug /y\r
+xcopy %bin_dir%\ibald.dll %2\HCA\amd64\ibal32d.dll /y\r
+xcopy %bin_dir%\complibd.dll %2\HCA\amd64\cl32d.dll /y\r
+xcopy %bin_dir%\ibald.dll %2\HCA\ia64\ibal32d.dll /y\r
+xcopy %bin_dir%\complibd.dll %2\HCA\ia64\cl32d.dll /y\r
+xcopy %bin_dir%\mthcaud.dll %2\HCA\amd64\mthca32d.dll /y\r
+xcopy %bin_dir%\mthcaud.dll %2\HCA\ia64\mthca32d.dll /y\r
+xcopy %bin_dir%\mt23108ud.dll %2\HCA\amd64\mtuvp32d.dll /y\r
+xcopy %bin_dir%\mt23108ud.dll %2\HCA\ia64\mtuvp32d.dll /y\r
+xcopy %bin_dir%\dapld.dll %2\DAPL\amd64\dapl32d.dll /y\r
+xcopy %bin_dir%\datd.dll %2\DAPL\amd64\dat32d.dll /y\r
+xcopy %bin_dir%\dapld.dll %2\DAPL\ia64\dapl32d.dll /y\r
+xcopy %bin_dir%\datd.dll %2\DAPL\ia64\dat32d.dll /y\r
+\r
+set bin_dir=%1\bin\user\objfre_wnet_amd64\amd64\r
+set dest_dir=%2\HCA\amd64\\r
+for %%i in (%bin_dir%\ibal.dll, %bin_dir%\complib.dll, %bin_dir%\mthcau.dll, %bin_dir%\mt23108u.dll, %bin_dir%\IbInstaller.dll) do xcopy %%i %dest_dir% /y\r
+xcopy %bin_dir%\ibwsd.dll %2\net\amd64\ /y\r
+xcopy %bin_dir%\installsp.exe %2\net\amd64\ /y\r
+xcopy %bin_dir%\*.exe %2\tools\amd64\release\ /y\r
+xcopy %bin_dir%\dapl.dll %2\DAPL\amd64\ /y\r
+xcopy %bin_dir%\dat.dll %2\DAPL\amd64\ /y\r
+xcopy %bin_dir%\mtcr.dll %2\FwTools\amd64\ /y\r
+xcopy %bin_dir%\flint.exe %2\FwTools\amd64\ /y\r
+xcopy %bin_dir%\mst.exe %2\FwTools\amd64\ /y\r
+\r
+rem Copy IA64 drivers\r
+set bin_dir=%1\bin\user\objfre_wnet_ia64\ia64\r
+set dest_dir=%2\HCA\ia64\\r
+for %%i in (%bin_dir%\ibal.dll, %bin_dir%\complib.dll, %bin_dir%\mthcau.dll, %bin_dir%\mt23108u.dll, %bin_dir%\IbInstaller.dll) do xcopy %%i %dest_dir% /y\r
+xcopy %bin_dir%\ibwsd.dll %2\net\ia64\ /y\r
+xcopy %bin_dir%\installsp.exe %2\net\ia64\ /y\r
+xcopy %bin_dir%\*.exe %2\tools\ia64\release\ /y\r
+xcopy %bin_dir%\dapl.dll %2\DAPL\ia64\ /y\r
+xcopy %bin_dir%\dat.dll %2\DAPL\ia64\ /y\r
+xcopy %bin_dir%\mtcr.dll %2\FwTools\ia64\ /y\r
+xcopy %bin_dir%\flint.exe %2\FwTools\ia64\ /y\r
+xcopy %bin_dir%\mst.exe %2\FwTools\ia64\ /y\r
+\r
+rem Copy x86 drivers\r
+set bin_dir=%1\bin\user\objfre_wnet_x86\i386\r
+set dest_dir=%2\HCA\x86\\r
+for %%i in (%bin_dir%\ibal.dll, %bin_dir%\complib.dll, %bin_dir%\mthcau.dll, %bin_dir%\mt23108u.dll, %bin_dir%\IbInstaller.dll) do xcopy %%i %dest_dir% /y\r
+xcopy %bin_dir%\*.exe %2\tools\x86\release\ /y\r
+xcopy %bin_dir%\dapl.dll %2\DAPL\x86\ /y\r
+xcopy %bin_dir%\dat.dll %2\DAPL\x86\ /y\r
+xcopy %bin_dir%\mtcr.dll %2\FwTools\x86\ /y\r
+xcopy %bin_dir%\flint.exe %2\FwTools\x86\ /y\r
+xcopy %bin_dir%\mst.exe %2\FwTools\x86\ /y\r
+\r
+rem WOW64 DLLs\r
+xcopy %bin_dir%\ibwsd.dll %2\net\x86\ /y\r
+xcopy %bin_dir%\installsp.exe %2\net\x86\ /y\r
+xcopy %bin_dir%\installsp.exe %2\tools\x86\release /y\r
+xcopy %bin_dir%\ibwsd.dll %2\net\amd64\ibwsd32.dll /y\r
+xcopy %bin_dir%\ibwsd.dll %2\net\ia64\ibwsd32.dll /y\r
+xcopy %bin_dir%\ibal.dll %2\HCA\amd64\ibal32.dll /y\r
+xcopy %bin_dir%\complib.dll %2\HCA\amd64\cl32.dll /y\r
+xcopy %bin_dir%\ibal.dll %2\HCA\ia64\ibal32.dll /y\r
+xcopy %bin_dir%\complib.dll %2\HCA\ia64\cl32.dll /y\r
+xcopy %bin_dir%\mthcau.dll %2\HCA\amd64\mthca32.dll /y\r
+xcopy %bin_dir%\mthcau.dll %2\HCA\ia64\mthca32.dll /y\r
+xcopy %bin_dir%\mt23108u.dll %2\HCA\amd64\mtuvp32.dll /y\r
+xcopy %bin_dir%\mt23108u.dll %2\HCA\ia64\mtuvp32.dll /y\r
+xcopy %bin_dir%\dapl.dll %2\DAPL\amd64\dapl32.dll /y\r
+xcopy %bin_dir%\dat.dll %2\DAPL\amd64\dat32.dll /y\r
+xcopy %bin_dir%\dapl.dll %2\DAPL\ia64\dapl32.dll /y\r
+xcopy %bin_dir%\dat.dll %2\DAPL\ia64\dat32.dll /y\r
+\r
+rem Copy INF files\r
+xcopy %1\hw\mthca\kernel\mthca.inf %2\HCA\ /y\r
+xcopy %1\hw\mt23108\kernel\infinihost.inf %2\HCA\ /y\r
+xcopy %1\core\bus\kernel\ib_bus.inf %2\HCA\ /y\r
+xcopy %1\ulp\ipoib\kernel\netipoib.inf %2\net\ /y\r
+xcopy %1\ulp\inic\kernel\netvnic.inf %2\net\ /y\r
+xcopy %1\ulp\srp\kernel\ib_srp.inf %2\storage\ /y\r
+\r
+xcopy %1\bin %2\bin\ /ey\r
+xcopy %1\bin\*.pdb %2\symbols\ /ey\r
+\r
+pushd %2\r
+del /s bin\*.pdb\r
+del /s ibtest*\r
+del /s pingpong*\r
+del /s *Sdp*\r
+del /s Select*\r
+del /s usrp*\r
+del /s *.lib\r
+del /s *.exp\r
+popd\r
+\r
+goto end\r
+\r
+:usage\r
+echo makebin src dest\r
+echo   src     base directory.\r
+echo   dest    directory in which to build the installable binary tree.\r
+goto end\r
+\r
+:error1\r
+echo %1\bin\kernel\objfre_wnet_amd64\amd64 missing \r
+:error2\r
+echo %1\bin\kernel\objfre_wnet_ia64\ia64 missing \r
+:error3\r
+echo %1\bin\kernel\objfre_wnet_x86\i386 missing \r
+:error4\r
+echo %1\bin\user\objfre_wnet_amd64\amd64 missing \r
+:error5\r
+echo %6\bin\user\objfre_wnet_ia64\ia64 missing \r
+:error6\r
+echo %1\bin\user\objfre_wnet_x86\i386 missing \r
+:error7\r
+echo %1\bin\user\objchk_wnet_amd64\amd64 missing \r
+:error8\r
+echo %1\bin\user\objchk_wnet_ia64\ia64 missing \r
+:error9\r
+echo %1\bin\user\objchk_wnet_x86\i386 missing \r
+\r
+echo missin \r
+\r
+:end\r
diff --git a/trunk/etc/wpp/ALTraceRt.cmd b/trunk/etc/wpp/ALTraceRt.cmd
new file mode 100644 (file)
index 0000000..e3846f2
--- /dev/null
@@ -0,0 +1,14 @@
+rem level=32 => Highest 4 = information, 3 = warning\r
+\r
+tracepdb.exe -f ibal.pdb -p tmf\r
+tracepdb.exe -f ibbus.pdb -p tmf\r
+\r
+set TRACE_FORMAT_PREFIX=%%7!08d! %%2!s!: %%8!04x!:\r
+\r
+tracelog -stop ALDetailedRt\r
+\r
+tracelog -start ALDetailedRt -ls -guid #B199CE55-F8BF-4147-B119-DACD1E5987A6 -flag 0x0f00 -level 5 -rt -ft 1\r
+tracelog -enable ALDetailedRt -guid #99DC84E3-B106-431e-88A6-4DD20C9BBDE3 -flag 0x0f00 -level 5\r
+tracefmt.exe -rt ALDetailedRt -Displayonly -p tmf -ods\r
+\r
+tracelog -stop ALDetailedRt \r
diff --git a/trunk/etc/wpp/CreateTrace.cmd b/trunk/etc/wpp/CreateTrace.cmd
new file mode 100644 (file)
index 0000000..668f36d
--- /dev/null
@@ -0,0 +1,12 @@
+set DDK_HOME=\\tzachid0\c$\Winddk\3790.1830\r
+\r
+if %PROCESSOR_ARCHITECTURE% == x86 (set ARCH_PATH=i386) else set ARCH_PATH=AMD64\r
+\r
+mkdir %SystemDrive%\trace\r
+copy %DDK_HOME%\tools\tracing\%ARCH_PATH%\*.exe %SystemDrive%\trace\r
+copy %DDK_HOME%\tools\tracing\%ARCH_PATH%\*.dll %SystemDrive%\trace\r
+\r
+copy %DDK_HOME%\tools\tracing\i386\tracepdb.exe %SystemDrive%\trace\r
+\r
+copy %DDK_HOME%\bin\x86\mspdb70.dll %SystemDrive%\trace\r
+copy %DDK_HOME%\bin\x86\msvcr70.dll %SystemDrive%\trace
\ No newline at end of file
diff --git a/trunk/etc/wpp/IPoIBTraceRt.cmd b/trunk/etc/wpp/IPoIBTraceRt.cmd
new file mode 100644 (file)
index 0000000..b8fb78c
--- /dev/null
@@ -0,0 +1,13 @@
+rem level=32 => Highest 4 = information, 3 = warning\r
+\r
+tracepdb.exe -f ipoib.pdb -p tmf\r
+\r
+\r
+set TRACE_FORMAT_PREFIX=%%7!08d! %%2!s!: %%8!04x!: \r
+\r
+tracelog -stop IPoIBdRt\r
+\r
+tracelog -start IPoIBdRt -ls -guid #3F9BC73D-EB03-453a-B27B-20F9A664211A -flag 0x0fff -level 5 -rt -ft 1\r
+tracefmt.exe -rt IPoIBdRt -Displayonly -p tmf -ods\r
+\r
+tracelog -stop IPoIBdRt \r
diff --git a/trunk/etc/wpp/MTHCATraceRt.cmd b/trunk/etc/wpp/MTHCATraceRt.cmd
new file mode 100644 (file)
index 0000000..f2e3fed
--- /dev/null
@@ -0,0 +1,14 @@
+rem level=32 => Highest 4 = information, 3 = warning\r
+\r
+tracepdb.exe -f mthca.pdb -p tmf\r
+tracepdb.exe -f mthcau.pdb -p tmf\r
+\r
+set TRACE_FORMAT_PREFIX=%%7!08d! %%2!s!: %%8!04x!:\r
+\r
+tracelog -stop MTHCALogdRt\r
+\r
+tracelog -start MTHCALogdRt -ls -guid #8BF1F640-63FE-4743-B9EF-FA38C695BFDE -flag 0x0f00 -level 5 -rt -ft 1\r
+tracelog -enable MTHCALogdRt -guid #2C718E52-0D36-4bda-9E58-0FC601818D8F -flag 0x0f00 -level 5\r
+tracefmt.exe -rt MTHCALogdRt -Displayonly -p tmf -ods\r
+\r
+tracelog -stop MTHCALogdRt \r
diff --git a/trunk/etc/wpp/SDPTraceRt.cmd b/trunk/etc/wpp/SDPTraceRt.cmd
new file mode 100644 (file)
index 0000000..78249dc
--- /dev/null
@@ -0,0 +1,10 @@
+rem level=32 => Highest 4 = information, 3 = warning\r
+\r
+tracelog -stop SdpDetailedRt\r
+\r
+tracelog -start SdpDetailedRt -ls -guid #D6FA8A24-9457-455d-9B49-3C1E5D195558 -flag 0xffff -level 4 -rt -ft 1\r
+tracelog -enable SdpDetailedRt -guid #2D4C03CC-E071-48e2-BDBD-526A0D69D6C9 -flag 0xffff -level 4\r
+tracefmt.exe -rt SdpDetailedRt -Displayonly -p tmf -ods\r
+\r
+tracelog -stop SdpDetailedRt\r
+\r
diff --git a/trunk/etc/wpp/StartSdpTrace.cmd b/trunk/etc/wpp/StartSdpTrace.cmd
new file mode 100644 (file)
index 0000000..2f193de
--- /dev/null
@@ -0,0 +1,7 @@
+rem level=32 => Highest 4 = information, 3 = warning\r
+\r
+tracelog -stop SdpDetailedRt\r
+\r
+tracelog -start SdpDetailedRt -ls -UseCPUCycle -guid #D6FA8A24-9457-455d-9B49-3C1E5D195558 -flag 0xffff -level 5 \r
+tracelog -enable SdpDetailedRt -guid #2D4C03CC-E071-48e2-BDBD-526A0D69D6C9 -flag 0xffff -level 5\r
+\r
diff --git a/trunk/etc/wpp/StartTrace.cmd b/trunk/etc/wpp/StartTrace.cmd
new file mode 100644 (file)
index 0000000..0617de4
--- /dev/null
@@ -0,0 +1,22 @@
+rem MTHCA\r
+del c:\WinIB1.etl\r
+del c:\WinIB2.etl\r
+tracelog -start   MTHCALog -ls  -guid #8BF1F640-63FE-4743-B9EF-FA38C695BFDE  -flag 0x1 -level 2 -UseCPUCycle -f c:\WInIB1.etl\r
+tracelog -enable  MTHCALog     -guid #2C718E52-0D36-4bda-9E58-0FC601818D8F     -flag 0x1 -level 2\r
+\r
+\r
+\r
+rem IBAL\r
+tracelog -start   IBALLog -ls   -guid #B199CE55-F8BF-4147-B119-DACD1E5987A6  -flag 0x1 -level 2 -UseCPUCycle -f c:\WInIB2.etl\r
+tracelog -enable  IBALLog       -guid #99DC84E3-B106-431e-88A6-4DD20C9BBDE3     -flag 0x1 -level 2\r
+\r
+\r
+\r
+rem SDP\r
+rem tracelog -start  SDPLog -ls -guid #D6FA8A24-9457-455d-9B49-3C1E5D195558 -flag 0xffff -level 32 -UseCPUCycle\r
+rem tracelog -enable SDPLOg     -guid #2D4C03CC-E071-48e2-BDBD-526A0D69D6C9 -flag 0xffff -level 32\r
+\r
+rem SDP\r
+rem tracelog -start  SDPLog -ls -guid #D6FA8A24-9457-455d-9B49-3C1E5D195558 -flag 0xffff -level 32 -UseCPUCycle\r
+rem tracelog -enable SDPLOg     -guid #2D4C03CC-E071-48e2-BDBD-526A0D69D6C9 -flag 0xffff -level 32\r
+\r
diff --git a/trunk/etc/wpp/StopSdpTrace.cmd b/trunk/etc/wpp/StopSdpTrace.cmd
new file mode 100644 (file)
index 0000000..81533e3
--- /dev/null
@@ -0,0 +1,10 @@
+rem level=32 => Highest 4 = information, 3 = warning\r
+\r
+tracelog -stop SdpDetailedRt\r
+\r
+set TRACE_FORMAT_PREFIX=%%7!07d! %%2!s! %%8!04x!.%%3!04x!: %%4!s!: %%!COMPNAME! %%!FUNC! \r
+\r
+\r
+tracefmt.exe -seq -p tmf C:\LogFile.Etl -nosummary -hires -o result.txt\r
+\r
+\r
diff --git a/trunk/etc/wpp/StopTrace.cmd b/trunk/etc/wpp/StopTrace.cmd
new file mode 100644 (file)
index 0000000..daf7ca5
--- /dev/null
@@ -0,0 +1,8 @@
+tracelog.exe -stop MTHCALog\r
+tracelog.exe -stop IBALLog\r
+rem tracelog.exe -stop SDPLOg\r
+\r
+set TRACE_FORMAT_PREFIX=%%7!08d! %%!LEVEL! %%2!s!: %%8!04x!.%%3!04x!: %%4!s!: %%!FUNC!:\r
+\r
+tracefmt.exe -p tmf -display -v -displayonly -nosummary  | sort > aaa\r
+start notepad aaa\r