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

Graphing nr of threads in WPA

I want to graph the number of threads in a process, have found the ThreadID coloumn and set the Unique Count aggregation which is what I want to see over time. I have this field alone to the right of the blue bar, but no graph is shown (yes I have…
Kjell Gunnar
  • 3,017
  • 18
  • 24
0
votes
0 answers

Filtering ETW Event Callbacks

Is there any way to filter ETW Event callbacks? I am getting all of the events I need by starting a trace with a keyword; unfortunately some keywords enable many many event ids (for example, FILEIO keyword for Microsoft-Windows-Kernel-File provider…
0
votes
0 answers

How to i calculate the time taken for a processe to startup in windows?

I want to calculate the time spent by any process to load at startup?Want the time elapsed from the moment when we double click an application icon until the application completely loads all the dependencies and waits idle. I am only wanting this…
debanka
  • 187
  • 1
  • 4
  • 13
0
votes
1 answer

How to list the event of the etw DX provider?

I find a method that use wevtutil to get the publisher configuration information. For example i use commond "wevtutil gp Microsoft-Windows-DiagCpl /ge:true /gm:true /f:xml" . But when i use commond "wevtutil gp DX /ge:true /gm:true /f:xml", the…
yin kevin
  • 31
  • 3
0
votes
0 answers

Windows XP ETW FileDeleted events

I've been using Windows ETW pretty extensively to gather information on processes and files in my C++ application. I've been converting the MofData of the events into the appropriate structure to pull out information from the events. It seemed to…
Danny A
  • 323
  • 1
  • 4
  • 14
0
votes
1 answer

Concurrency Visualizer unable to see custom ETW event

I have a custom EventSource that I am using to log an ETW event: [EventSource(Name = "MyEventSource")] public class MyEventSource : EventSource { [Event(1, Message = "Test", Level = EventLevel.Informational)] public void Run(long fundId,…
Zelestor
  • 93
  • 6
0
votes
0 answers

ETW system calls tracing

How one could get a process id who generated the system call in ETW? As long as ProcessID and ThreadID members of event header are = to -1, this can't be used. I heard about activating CSWitch flag to capture every single context switch, but that…
Nedo
  • 627
  • 1
  • 10
  • 20
0
votes
1 answer

Redirect ETW event logs to remote machine in local LAN

I have implemented a C# code for event logging using ETW mechanism. Its works fine and I am able to log all the events in the event viewer. But my requirement is to redirect all the logs generated by my application to another remote computer within…
0
votes
3 answers

Can I use either EventLog or EventSource for both logging and tracing?

I'm trying to create a simplified API for both logging (errors, warnings, info) and tracing (debug, analytics) to the Windows Event Log so I can use Windows Event Viewer to work with the logs. I found the EventLog class and started coding against…
Stobber
  • 162
  • 2
  • 12
0
votes
1 answer

Can you use custom keywords with ETW

Is it possible to use custom keywords with ETW? I'm using ETW for logging/tracing/diagnostics in my application and I'd like the ability to assign keywords for easier querying of the logs. Diagnostics, Timed Event, Information, and others that are…
devlife
  • 15,275
  • 27
  • 77
  • 131
0
votes
0 answers

ETW Channel Providers - Channel Names

I am using latest EventSource Nuget-Package for creating eventlogs where every application gets its own folder for different types of logs. As playing around I figured out that I can't simply change the logs name. I tried to change it in the…
Thyrador
  • 121
  • 1
  • 11
0
votes
1 answer

Webcam Performance System Test - WNCameraRequirements - Error: parseEtl Failed with error REGDB_E_CLASSNOTREG (0x80040154)

I am running whck performance tests on our camera, the test that currently fails is: Webcam Performance System Test - WNCameraRequirements the test iterates thourgh the camera media types and records a etl file as expected, its stops and closes the…
Eldar
  • 149
  • 2
  • 12
0
votes
1 answer

How can I get fileversion information from a ETL file

With the Microsoft TraceEvent Library it is possible to parse ETL files which are generated by xperf, WPR or PerfView. I found out that the Event ImageIDFileVersion in TracEvent shows me the file version and the Event ImageGroup shows me the file…
magicandre1981
  • 27,895
  • 5
  • 86
  • 127
0
votes
1 answer

Specifying different eventID and task category values using ETW / EventSource Library for the event viewer

We're using the NuGet pacakge of the Microsoft EventSource Library (1.0.24) to log events for the event viewer. Given the following method definitions, for example, of a class inherited from EventSource, the resulting event viewer entries appear…
alexg
  • 653
  • 7
  • 29
0
votes
1 answer

System.Diagnostic.Tracing.EventSource - no events in EventListener

I am experiencing some trouble with the .NET 4.5 System.Diagnostic.Tracing.EventSource. You can find the complete EventSource implementation at the end of this post. When I create a listener for this EventSource it never receives an event. All tips,…
Simon Smeets
  • 581
  • 6
  • 17