Questions tagged [etw]

Event Tracing for Windows (ETW) is a high-speed tracing facility provided by the Windows Operating System which was first introduced in Windows 2000.

Event Tracing for Windows (ETW) is a general-purpose, high-speed tracing facility provided by the Windows operating system. Using a buffering and logging mechanism implemented in the kernel, ETW provides a tracing mechanism for events raised by both user-mode applications and kernel-mode device drivers.

Additionally, ETW gives you the ability to enable and disable logging dynamically, making it easy to perform detailed tracing in production environments without requiring reboots or application restarts. The logging mechanism uses per-processor buffers that are written to disk by an asynchronous writer thread. This allows large-scale server applications to write events with minimum disturbance.

ETW is the core tracing facility in Windows on top of which both the Event Log and WPP are built.

ETW was first introduced on Windows 2000. Since then, various core OS and server components have adopted ETW to instrument their activities, and it's now one of the key instrumentation technologies on Windows platforms.

On Windows Vista, ETW has gone through a major upgrade, and one of the most significant changes is the introduction of the unified event provider model and APIs. In short, the new unified APIs combine logging traces and writing to the Event Viewer into one consistent, easy-to-use mechanism for event providers. At the same time, several new features have been added to improve developer and end user experience.

445 questions
0
votes
1 answer

NT Kernel Logger Session Log Not Being Created

I am trying to compile the following code I got from one of Microsoft's websites (original): #include "stdafx.h" #define INITGUID // Include this #define to use SystemTraceControlGuid in Evntrace.h. #include #include…
John Roberts
  • 5,885
  • 21
  • 70
  • 124
0
votes
1 answer

Viewing WF trace logs

We're encountering "silent" aborts when Windows Workflows (hosted in IIS) are persisted using SqlWorkflowInstanceStore. According to http://support.microsoft.com/kb/2022538 : If the service is self-hosted or web-hosted, this issue creates a …
TrueWill
  • 25,132
  • 10
  • 101
  • 150
0
votes
1 answer

How to perform MSMQ Trace

I'm looking for a way to trace MSMQ activity (API calls, or something similar) I saw several references mentioning ETW tracing but they weren't very clear or complete. Is there a simple tutorial about this subject?
Ophir Yoktan
  • 8,149
  • 7
  • 58
  • 106
0
votes
1 answer

Why isn't my Event Trace for Windows working?

I'm trying to figure out how to use Event Tracing for Windows... but I'm failing. Why does this code give me the error code ERROR_WMI_INSTANCE_NOT_FOUND? #include #include #include #include #include…
user541686
  • 205,094
  • 128
  • 528
  • 886
0
votes
1 answer

In Windows kernel syscall traces, what are these mystery addresses?

I am using Event Tracing for Windows (ETW) to do kernel tracing of syscalls in Windows Server 2008 R2. I am running: logman start "NT Kernel Logger" -p "Windows Kernel Trace" (process,thread,cswitch,syscall) -o events.etl -ets In the resulting…
-1
votes
1 answer

Troubleshooting Windows Event Viewer USB error 0x26 status 0xc000038e

I need some guidance in how to troubleshoot a low level issue I am facing with some USB devices. Background: I have a .NET Windows Service that, scans connected USB devices via WMI queries + reads low level USB data using external C code. Although…
Veverke
  • 9,208
  • 4
  • 51
  • 95
-1
votes
1 answer

Does anyone already have a .NET wrapper for ETW StartTrace?

I am hoping to start ETW trace sessions using .NET code directly rather than invoking command line apps. Does anyone already have a .NET wrapper for ETW StartTrace and friends?
BonnieF
  • 3
  • 2
-1
votes
1 answer

ETW Logging - TraceEventSession enable multiple event provider for listener

I am developing a ETW listener to listen to all available event sources in my system. Q1: Please find the sample code below: providerName = "ETW-TEST-APPLICATION"; sessionName = "ETW-TEST-APPLICATION"; using (var session = new…
KRP
  • 131
  • 1
  • 3
  • 15
-2
votes
1 answer

How to parse Microsoft Event Trace Log files in javascript

How can I decode and parse an ETW log file in Javascript? I found a few related NPM packages (windows-event-reader, win-getevent) but they are Node wrappers for the Get-WinEvent Powershell command. As my tool runs exclusively in the browser, those…
tonjohn
  • 255
  • 2
  • 14
-2
votes
1 answer

How to gather CPU utilization sampling with xperf (Windows Performance Toolkit)

I want to analyze performance of long process (6-8 hours). I need information about created/finished processes (with command lines) and CPU utilization. I found, that Windows Performance Analyzer (wpa.exe/xperfview.exe) is great tool for analyzing.…
1 2 3
29
30