1010//
1111
1212//
13- //
13+ //
1414// #EventTracing
1515// Windows
1616// ETW (Event Tracing for Windows) is a high-performance, low overhead and highly scalable
@@ -35,7 +35,7 @@ void InitializeEventTracing();
3535// The flags must match those in the ETW manifest exactly
3636// !!!!!!! NOTE !!!!!!!!
3737
38- // These flags need to be defined either when FEATURE_EVENT_TRACE is enabled or the
38+ // These flags need to be defined either when FEATURE_EVENT_TRACE is enabled or the
3939// PROFILING_SUPPORTED is set, since they are used both by event tracing and profiling.
4040
4141enum EtwTypeFlags
@@ -106,7 +106,7 @@ enum EtwThreadFlags
106106#define ETW_TRACING_CATEGORY_ENABLED (Context, Level, Keyword ) (EventPipeHelper::Enabled() || XplatEventLogger::IsEventLoggingEnabled())
107107#define ETW_PROVIDER_ENABLED (ProviderSymbol ) (TRUE )
108108#else // defined(FEATURE_PERFTRACING)
109- #define ETW_INLINE
109+ #define ETW_INLINE
110110#define ETWOnStartup (StartEventName, EndEventName )
111111#define ETWFireEvent (EventName )
112112
@@ -242,13 +242,15 @@ class EventPipeHelper
242242
243243#if defined(FEATURE_EVENT_TRACE)
244244
245+ struct EventFilterDescriptor ;
246+
245247VOID EventPipeEtwCallbackDotNETRuntimeStress (
246248 _In_ LPCGUID SourceId,
247249 _In_ ULONG ControlCode,
248250 _In_ UCHAR Level,
249251 _In_ ULONGLONG MatchAnyKeyword,
250252 _In_ ULONGLONG MatchAllKeyword,
251- _In_opt_ PVOID FilterData,
253+ _In_opt_ EventFilterDescriptor* FilterData,
252254 _Inout_opt_ PVOID CallbackContext);
253255
254256VOID EventPipeEtwCallbackDotNETRuntime (
@@ -257,7 +259,7 @@ VOID EventPipeEtwCallbackDotNETRuntime(
257259 _In_ UCHAR Level,
258260 _In_ ULONGLONG MatchAnyKeyword,
259261 _In_ ULONGLONG MatchAllKeyword,
260- _In_opt_ PVOID FilterData,
262+ _In_opt_ EventFilterDescriptor* FilterData,
261263 _Inout_opt_ PVOID CallbackContext);
262264
263265VOID EventPipeEtwCallbackDotNETRuntimeRundown (
@@ -266,7 +268,7 @@ VOID EventPipeEtwCallbackDotNETRuntimeRundown(
266268 _In_ UCHAR Level,
267269 _In_ ULONGLONG MatchAnyKeyword,
268270 _In_ ULONGLONG MatchAllKeyword,
269- _In_opt_ PVOID FilterData,
271+ _In_opt_ EventFilterDescriptor* FilterData,
270272 _Inout_opt_ PVOID CallbackContext);
271273
272274VOID EventPipeEtwCallbackDotNETRuntimePrivate (
@@ -275,7 +277,7 @@ VOID EventPipeEtwCallbackDotNETRuntimePrivate(
275277 _In_ UCHAR Level,
276278 _In_ ULONGLONG MatchAnyKeyword,
277279 _In_ ULONGLONG MatchAllKeyword,
278- _In_opt_ PVOID FilterData,
280+ _In_opt_ EventFilterDescriptor* FilterData,
279281 _Inout_opt_ PVOID CallbackContext);
280282
281283#ifndef FEATURE_PAL
@@ -332,7 +334,7 @@ extern "C" {
332334
333335#include " clretwallmain.h"
334336
335- #endif // FEATURE_EVENT_TRACE
337+ #endif // FEATURE_EVENT_TRACE
336338
337339/* *************************/
338340/* CLR ETW infrastructure */
@@ -351,7 +353,7 @@ extern "C" {
351353// has started, one may want to do something useful when that happens (e.g enumerate all the loaded modules
352354// in the system). To enable this, we have to implement a callback routine.
353355// file:../VM/eventtrace.cpp#EtwCallback is CLR's implementation of the callback.
354- //
356+ //
355357
356358#include " daccess.h"
357359class Module ;
@@ -379,7 +381,7 @@ namespace ETW
379381{
380382 // Class to wrap the ETW infrastructure logic
381383#if !defined(FEATURE_PAL)
382- class CEtwTracer
384+ class CEtwTracer
383385 {
384386#if defined(FEATURE_EVENT_TRACE)
385387 ULONG RegGuids (LPCGUID ProviderId, PENABLECALLBACK EnableCallback, PVOID CallbackContext, PREGHANDLE RegHandle);
@@ -391,7 +393,7 @@ namespace ETW
391393 HRESULT Register ();
392394
393395 // Unregisters all the Event Tracing providers
394- HRESULT UnRegister ();
396+ HRESULT UnRegister ();
395397#else
396398 HRESULT Register ()
397399 {
@@ -406,7 +408,7 @@ namespace ETW
406408#endif // !defined(FEATURE_PAL)
407409
408410 class LoaderLog ;
409- class MethodLog ;
411+ class MethodLog ;
410412 // Class to wrap all the enumeration logic for ETW
411413 class EnumerationLog
412414 {
@@ -447,7 +449,7 @@ namespace ETW
447449 MethodDCEndILToNativeMap= 0x00020000 ,
448450 JitMethodILToNativeMap= 0x00040000 ,
449451 TypeUnload= 0x00080000 ,
450-
452+
451453 // Helpers
452454 ModuleRangeEnabledAny = ModuleRangeLoad | ModuleRangeDCStart | ModuleRangeDCEnd | ModuleRangeLoadPrivate,
453455 JitMethodLoadOrDCStartAny = JitMethodLoad | JitMethodDCStart | MethodDCStartILToNativeMap,
@@ -475,7 +477,7 @@ namespace ETW
475477 {
476478#if defined(FEATURE_EVENT_TRACE) && !defined(FEATURE_PAL)
477479 public:
478- typedef enum _EtwStackWalkStatus
480+ typedef enum _EtwStackWalkStatus
479481 {
480482 Completed = 0 ,
481483 UnInitialized = 1 ,
@@ -492,7 +494,7 @@ namespace ETW
492494 EtwStackWalkStatus GetCurrentThreadsCallStack (UINT32 *frameCount, PVOID **Stack);
493495#endif // FEATURE_EVENT_TRACE && !defined(FEATURE_PAL)
494496 };
495-
497+
496498 // Class to wrap all Loader logic for ETW
497499 class LoaderLog
498500 {
@@ -537,9 +539,9 @@ namespace ETW
537539 }RangeFlags;
538540
539541 }LoaderStructs;
540-
542+
541543 static VOID DomainLoadReal (BaseDomain *pDomain, __in_opt LPWSTR wszFriendlyName=NULL );
542-
544+
543545 static VOID DomainLoad (BaseDomain *pDomain, __in_opt LPWSTR wszFriendlyName = NULL )
544546 {
545547 if (ETW_PROVIDER_ENABLED (MICROSOFT_WINDOWS_DOTNETRUNTIME_PROVIDER))
@@ -733,7 +735,7 @@ namespace ETW
733735 {
734736 public:
735737 typedef union _BinderStructs {
736- typedef enum _NGENBINDREJECT_REASON {
738+ typedef enum _NGENBINDREJECT_REASON {
737739 NGEN_BIND_START_BIND = 0 ,
738740 NGEN_BIND_NO_INDEX = 1 ,
739741 NGEN_BIND_SYSTEM_ASSEMBLY_NOT_AVAILABLE = 2 ,
@@ -797,19 +799,19 @@ namespace ETW
797799 IsCLSCompliant=0x10
798800 }ExceptionThrownFlags;
799801 }ExceptionStructs;
800- };
802+ };
801803 // Class to wrap all Contention logic for ETW
802804 class ContentionLog
803805 {
804806 public:
805- typedef union _ContentionStructs
807+ typedef union _ContentionStructs
806808 {
807- typedef enum _ContentionFlags {
809+ typedef enum _ContentionFlags {
808810 ManagedContention=0 ,
809811 NativeContention=1
810812 } ContentionFlags;
811813 } ContentionStructs;
812- };
814+ };
813815 // Class to wrap all Interop logic for ETW
814816 class InteropLog
815817 {
@@ -820,7 +822,7 @@ namespace ETW
820822 class InfoLog
821823 {
822824 public:
823- typedef union _InfoStructs
825+ typedef union _InfoStructs
824826 {
825827 typedef enum _StartupMode
826828 {
@@ -961,7 +963,7 @@ class ETWTraceStartup {
961963// "mc.exe -MOF" already generates this block for XP-suported builds inside ClrEtwAll.h;
962964// on Vista+ builds, mc is run without -MOF, and we still have code that depends on it, so
963965// we manually place it here.
964- FORCEINLINE
966+ FORCEINLINE
965967BOOLEAN __stdcall
966968McGenEventTracingEnabled (
967969 __in PMCGEN_TRACE_CONTEXT EnableInfo,
@@ -1056,7 +1058,7 @@ struct CallStackFrame
10561058#endif // FEATURE_EVENT_TRACE
10571059
10581060#if defined(FEATURE_EVENT_TRACE) && !defined(FEATURE_PAL)
1059- FORCEINLINE
1061+ FORCEINLINE
10601062BOOLEAN __stdcall
10611063McGenEventProviderEnabled (
10621064 __in PMCGEN_TRACE_CONTEXT Context,
0 commit comments