<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Comment Feed for Channel 9 - Defrag Tools: #29 - WinDbg - ETW Logging</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging/RSS"></atom:link>
	<image>
		<url>http://media.ch9.ms/ch9/3442/c72e017c-3afc-4604-8750-ad09d7a93442/DefragTools29_220.jpg</url>
		<title>Channel 9 - Defrag Tools: #29 - WinDbg - ETW Logging</title>
		<link></link>
	</image>
	<description>In this episode of Defrag Tools, Andrew Richards, Chad Beeder and Larry Larsen continue looking at the Debugging Tools for Windows (in particular WinDbg). WinDbg is a debugger that supports user mode debugging of a process, or kernel mode debugging of a computer. This installment goes over the Event Tracing for Windows (ETW) buffers in a kernel mode dump or live session. The ETW buffers can be extracted from the dump and viewed using the Windows Performance Toolkit (WPT). The buffers give you insight in to what has beem happening recently on the computer. We use these commands: !wmitrace.strdump !wmitrace.logsave 0xNN c:\example.etl !wmitrace.eventlogdump 0xNN !wmitrace.help Make sure you watch Defrag Tools Episode #1 and Defrag Tools Episode #23 for instructions on how to get the Debugging Tools for Windows and how to set the required environment variables for symbol and source code resolution. This episode shows how install the Windows Performance Toolkit. Timeline:[00:00] - Event Tracing for Windows (ETW)[02:18] - Windows Performance Toolkit (WPT)[03:48] - !wmitrace.strdump[04:53] - !wmitrace.logsave 0xNN c:\example.etl[05:50] - Windows Performance Analyzer (WPA) &amp;amp; xPerfView[07:57] - _NT_SYMCACHE_PATH[10:24] - !wmitrace.eventlogdump 0xNN[12:16] - Used for logging and performance by many teams[15:35] - Private PDBs are needed to decode some entries[20:00] - Windows Performance Recorder (wprui.exe)[20:35] - Disable Paging Executive[23:40] - WPR adds the NT Kernel Logger [24:19] - 10min run-through of the data collected with the General, CPU and Disk providers </description>
	<link></link>
	<language>en</language>
	<pubDate>Wed, 22 May 2013 03:33:58 GMT</pubDate>
	<lastBuildDate>Wed, 22 May 2013 03:33:58 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<item>
		<title>Re: Defrag Tools: #29 - WinDbg - ETW Logging</title>
		<description>
			<![CDATA[<p>Finally you touch my number 1 tool/topic ETW <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-2.gif?v=c9' alt='Big Smile' /></p><p><em><strong>[20:35] - Disable Paging Executive</strong></em></p><p>this is only needed for x64 Windows version to get CallStacks/Stackwalking (the data to walk the call chains is saved outside the stack)</p><p>Adding image version data is done later when <em>MERGING</em> the ETL file (user mode ETW events &#43; system data &#43; kernel.etl into the final file).</p><p>Without merging, you can't load the symbols on a different machine.</p><p><em><strong>[20:00] - Windows Performance Recorder (wprui.exe)</strong></em></p><p>but with the new UI you<strong> loose control on what it traced</strong>. It traces too much data and when the source system is under stress it impact the PC too much.</p><p>I still use my scripts to run xperf with the flags I need (if I want circular log (with file size), the amount of buffers I want to use).</p><p>&nbsp;</p><p><em><strong><a href="http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#time=05m50s">[05:50]</a> - Windows Performance Analyzer (WPA) &amp; xPerfView</strong></em></p><p>that you also use xperfview shows me that all my complains during betatest where right. I said this so many times to Michael when still he was the PM of WPT/XPERF/XPERFVIEW. WPA is a terrible bad UI with blurry graphs and so many scrollbar all over the time. It sucks so much <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-12.gif?v=c9' alt='Mad' /></p><p>And new users are lost in to choose which graphs they need or not.</p><p>&nbsp;</p><p>btw, UBMP = Unified Background Process Manager</p><p>posted by MagicAndre1981</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634974839240161321</link>
		<pubDate>Tue, 26 Feb 2013 13:58:44 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634974839240161321</guid>
		<dc:creator>MagicAndre1981</dc:creator>
	</item>
	<item>
		<title>Re: Defrag Tools: #29 - WinDbg - ETW Logging</title>
		<description>
			<![CDATA[Why I can&#39;t debug IE activex in WOW64&#63; do you know how to debug it with windbg&#63;<p>posted by land</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634975333770007714</link>
		<pubDate>Wed, 27 Feb 2013 03:42:57 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634975333770007714</guid>
		<dc:creator>land</dc:creator>
	</item>
	<item>
		<title>Re: Defrag Tools: #29 - WinDbg - ETW Logging</title>
		<description>
			<![CDATA[<p>@land: We talked about your question in #30, but here are a few tips:</p><ul><li>Make sure the debugger arch matches the target (use the x86 debugger in this case) </li><li>Make sure you are debugging the child IE ptocess, not the parent IE process. The parent is 64bit, the children (tabs) are 32bit. </li></ul><p>posted by windev</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634977617061104746</link>
		<pubDate>Fri, 01 Mar 2013 19:08:26 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634977617061104746</guid>
		<dc:creator>windev</dc:creator>
	</item>
	<item>
		<title>Re: Defrag Tools: #29 - WinDbg - ETW Logging</title>
		<description>
			<![CDATA[<p>I may have missed something but what kind of dump does it have to be to use these commands, minidump is not supported, correct? so it has to be a full dump? I am sorry if I did not pay enough attention and missed something, the whole episode went by really fast.&nbsp;</p><p>posted by s3curityConsult</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634980354558979448</link>
		<pubDate>Mon, 04 Mar 2013 23:10:55 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634980354558979448</guid>
		<dc:creator>s3curityConsult</dc:creator>
	</item>
	<item>
		<title>Re: Defrag Tools: #29 - WinDbg - ETW Logging</title>
		<description>
			<![CDATA[<p>@<a href="/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634980354558979448">s3curityConsult</a>: I don't think you missed it - pretty sure&nbsp;I never pointed that out.&nbsp;The buffers are pool memory in the kernel, so you need a kernel (2)&nbsp;or&nbsp;complete (1) dump. Kernel&nbsp;is&nbsp;the default up to win8, the&nbsp;win8 default is automatic, which is kernel or complete based on pagefile size. You want the c:\windows\memory.dmp file, not the c:\windows\minidump files.</p><p>posted by windev</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634980516455383794</link>
		<pubDate>Tue, 05 Mar 2013 03:40:45 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634980516455383794</guid>
		<dc:creator>windev</dc:creator>
	</item>
	<item>
		<title>Re: Defrag Tools: #29 - WinDbg - ETW Logging</title>
		<description>
			<![CDATA[Since I cannot create a .etl file with significant content, could you please post an example with lots of content inside&#63;<br>So that we can play with it using xperfview&#63;<br><br>Thanks in advance<p>posted by loverboy</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634987152454195186</link>
		<pubDate>Tue, 12 Mar 2013 20:00:45 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634987152454195186</guid>
		<dc:creator>loverboy</dc:creator>
	</item>
	<item>
		<title>Re: Defrag Tools: #29 - WinDbg - ETW Logging</title>
		<description>
			<![CDATA[<p>@<a href="/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634987152454195186">loverboy</a>: This script will capture a lot of cool data. You can get roughly the same data using the default options in WPRUI.exe.</p><p><pre class="brush: text">@echo off
echo Press a key when ready to start...
pause
echo .
echo ...Capturing...
echo .
xperf -on PROC_THREAD&#43;LOADER&#43;Base&#43;Diag&#43;Latency&#43;FileIO&#43;DRIVERS&#43;DPC&#43;DISPATCHER -stackwalk Profile&#43;CSwitch&#43;ReadyThread&#43;ThreadCreate -BufferSize 1024 -MinBuffers 256 -MaxBuffers 256 -MaxFile 256 -FileMode Circular
echo Press a key when you want to stop...
pause
echo .
echo ...Stopping...
echo .
xperf -stop -d result.etl</pre></p><p>posted by windev</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634988884540959528</link>
		<pubDate>Thu, 14 Mar 2013 20:07:34 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634988884540959528</guid>
		<dc:creator>windev</dc:creator>
	</item>
	<item>
		<title>Re: Defrag Tools: #29 - WinDbg - ETW Logging</title>
		<description>
			<![CDATA[Wow&#33;<br>Thanks a lot, that&#39;s what I needed &#59;&#41;<br><br>Since I have Windows 7 64bit I don&#39;t think I can use WPRUI.exe &#40;Am I right&#63;&#41;<br>Thanks anyway <p>posted by loverboy</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634988937945490790</link>
		<pubDate>Thu, 14 Mar 2013 21:36:34 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634988937945490790</guid>
		<dc:creator>loverboy</dc:creator>
	</item>
	<item>
		<title>Re: Defrag Tools: #29 - WinDbg - ETW Logging</title>
		<description>
			<![CDATA[Sorry for double posting, but what is the difference between result.etl and kernel.etl &#40;that is bigger and automatically appears in my C&#58;&#92; folder&#41;&#63;<p>posted by loverboy</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634988965503646586</link>
		<pubDate>Thu, 14 Mar 2013 22:22:30 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634988965503646586</guid>
		<dc:creator>loverboy</dc:creator>
	</item>
	<item>
		<title>Re: Defrag Tools: #29 - WinDbg - ETW Logging</title>
		<description>
			<![CDATA[<p>@<a href="/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634988965503646586">loverboy</a>: WPRUI works on Win7 too (not supported, but it works).<br>@<a href="/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634988965503646586">loverboy</a>: kernel.etl is the kernel mode buffers, user.etl (not made here) would be the user mode buffers. The result.etl is the merge of these two, plus, it add the required information to resolve symbols. (The raw buffers just have pointers. The merge adds the module info so that offset can be mapped back to a funcion name via a symbol)</p><p>posted by windev</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634989006701542497</link>
		<pubDate>Thu, 14 Mar 2013 23:31:10 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634989006701542497</guid>
		<dc:creator>windev</dc:creator>
	</item>
	<item>
		<title>Re: Defrag Tools: #29 - WinDbg - ETW Logging</title>
		<description>
			<![CDATA[Thanks.<br><br>Talking about WPA&#40;and&#47;or XPerfView&#41; ... when you analyze on a 64bit PC a .etl taken on a 32bit machine, do you have to use the 32bit version &#40;like windbg&#41; or on a 64bit PC you have to use WPA or XPerfView 64bit version anyway&#63;<p>posted by loverboy</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634989771921044440</link>
		<pubDate>Fri, 15 Mar 2013 20:46:32 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634989771921044440</guid>
		<dc:creator>loverboy</dc:creator>
	</item>
	<item>
		<title>Re: Defrag Tools: #29 - WinDbg - ETW Logging</title>
		<description>
			<![CDATA[<p>@<a href="/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634989771921044440">loverboy</a>: I always use the 64bit version for all traces - don't recall ever having an issue. If the stack includes CLR code, you won't get the function names regardless of archectural combination.</p><p>posted by windev</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634990101819631996</link>
		<pubDate>Sat, 16 Mar 2013 05:56:21 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634990101819631996</guid>
		<dc:creator>windev</dc:creator>
	</item>
	<item>
		<title>Re: Defrag Tools: #29 - WinDbg - ETW Logging</title>
		<description>
			<![CDATA[The bat file doesn&#39;t work anymore<br><br>Now it gives an error<br>C&#58;&#92;Program Files&#92;Windows Performance Toolkit&#62;Recording_Example.bat<br>Press a key when ready to start...<br>Premere un tasto per continuare . . .<br>.<br>...Capturing...<br>.<br>xperf&#58; warning&#58; This system is not fully configured for x64 stack tracing.<br>Please modify the registry under&#58;<br><br>  HKLM&#92;System&#92;CurrentControlSet&#92;Control&#92;Session Manager&#92;Memory Management<br><br>and set the value&#58;<br><br>  DisablePagingExecutive &#40;REG_DWORD&#41; &#61; 1<br><br>Then reboot before retrying tracing.<br><br>Note&#58; Tracing has been enabled, this is just a warning.<br>xperf&#58; error&#58; NT Kernel Logger&#58; Impossibile creare un file, se il file esiste gi&#224;. &#40;0xb7&#41;.<br>Press a key when you want to stop...<br>Premere un tasto per continuare . . .<br>.<br>...Stopping...<br>.<br>xperf&#58; error&#58; Merge ETL&#58; Percorso specificato non valido. &#40;0xa1&#41;.<br><br>xperf&#58; error&#58; NT Kernel Logger&#58; Impossibile creare un file, se il file esiste gi&#224;. &#40;0xb7&#41;. means Impossible creating a file if the file already exists &#40;0xb7&#41;<br><br>What file is it talking about&#63;<p>posted by loverboy</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634993988230313766</link>
		<pubDate>Wed, 20 Mar 2013 17:53:43 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634993988230313766</guid>
		<dc:creator>loverboy</dc:creator>
	</item>
	<item>
		<title>Re: Defrag Tools: #29 - WinDbg - ETW Logging</title>
		<description>
			<![CDATA[Sorry.<br>Problem solved &#40;I think it was just a temporary problem, since there was no result.etl file anywhere&#41;<p>posted by loverboy</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634994004974283644</link>
		<pubDate>Wed, 20 Mar 2013 18:21:37 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634994004974283644</guid>
		<dc:creator>loverboy</dc:creator>
	</item>
	<item>
		<title>Re: Defrag Tools: #29 - WinDbg - ETW Logging</title>
		<description>
			<![CDATA[<p>Debugging a BSOD due to a bug in Windows 8 64 bit (process MSSE a.k.a. Windows defender during quick scan, driver ndis.sys, error ATTEMPTED_EXECUTE_OF_NOEXECUTE_MEMORY,&nbsp;can reproduce 100% on my system).</p><p>Have a complete memory dump created after&nbsp;xperf –on DiagEasy.</p><p>!wmitrace.logsave command produces a corrupt ETL, both wpa.exe and xperfview.exe say &quot;Trace C:\Temp\Crashes\DISK.etl could not be successfully opened [0x80070570]. Aborting operation&quot;.</p><p>Any ideas how to fix?</p><p>posted by Const</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634999120786027211</link>
		<pubDate>Tue, 26 Mar 2013 16:27:58 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634999120786027211</guid>
		<dc:creator>Const</dc:creator>
	</item>
	<item>
		<title>Re: Defrag Tools: #29 - WinDbg - ETW Logging</title>
		<description>
			<![CDATA[<p>@loverboy</p><p>error 0xb7 occurs when you already run a tool which odes ETW tracing (ResMon, ProcExp):</p><p><a href="http://www.msfn.org/board/topic/155479-xperf-error-nt-kernel-logger-cannot-create-a-file-when-that-file-already-exists-0xb7/">http&#58;&#47;&#47;www.msfn.org&#47;board&#47;topic&#47;155479-xperf-error-nt-kernel-logger-cannot-create-a-file-when-that-file-already-exists-0xb7&#47;</a></p><p>posted by MagicAndre1981</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c635001606961586776</link>
		<pubDate>Fri, 29 Mar 2013 13:31:36 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c635001606961586776</guid>
		<dc:creator>MagicAndre1981</dc:creator>
	</item>
	<item>
		<title>Re: Defrag Tools: #29 - WinDbg - ETW Logging</title>
		<description>
			<![CDATA[<p>@<a href="/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c634999120786027211">Const</a>: Email me (<a href="mailto:defragtools@microsoft.com">defragtools@microsoft.com</a>)&nbsp;to organize a way for you to send me the dump.</p><p>posted by windev</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c635003720336303983</link>
		<pubDate>Mon, 01 Apr 2013 00:13:53 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-29-WinDbg-ETW-Logging#c635003720336303983</guid>
		<dc:creator>windev</dc:creator>
	</item>
</channel>
</rss>