| 1 | |
| 2 | // Licensed to the .NET Foundation under one or more agreements. |
| 3 | // The .NET Foundation licenses this file to you under the MIT license. |
| 4 | // See the LICENSE file in the project root for more information. |
| 5 | |
| 6 | /****************************************************************** |
| 7 | |
| 8 | DO NOT MODIFY. AUTOGENERATED FILE. |
| 9 | This file is generated using the logic from <root>/src/scripts/genEventing.py |
| 10 | |
| 11 | ******************************************************************/ |
| 12 | |
| 13 | #include "clrxplatevents.h" |
| 14 | #include "clreventpipewriteevents.h" |
| 15 | |
| 16 | inline BOOL EventEnabledGCStart() {return EventPipeEventEnabledGCStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCStart());} |
| 17 | |
| 18 | inline ULONG FireEtwGCStart( |
| 19 | const unsigned int Count, |
| 20 | const unsigned int Reason |
| 21 | ) |
| 22 | { |
| 23 | ULONG status = EventPipeWriteEventGCStart(Count,Reason); |
| 24 | status &= FireEtXplatGCStart(Count,Reason); |
| 25 | return status; |
| 26 | } |
| 27 | |
| 28 | inline BOOL EventEnabledGCStart_V1() {return EventPipeEventEnabledGCStart_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCStart_V1());} |
| 29 | |
| 30 | inline ULONG FireEtwGCStart_V1( |
| 31 | const unsigned int Count, |
| 32 | const unsigned int Depth, |
| 33 | const unsigned int Reason, |
| 34 | const unsigned int Type, |
| 35 | const unsigned short ClrInstanceID |
| 36 | ) |
| 37 | { |
| 38 | ULONG status = EventPipeWriteEventGCStart_V1(Count,Depth,Reason,Type,ClrInstanceID); |
| 39 | status &= FireEtXplatGCStart_V1(Count,Depth,Reason,Type,ClrInstanceID); |
| 40 | return status; |
| 41 | } |
| 42 | |
| 43 | inline BOOL EventEnabledGCStart_V2() {return EventPipeEventEnabledGCStart_V2() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCStart_V2());} |
| 44 | |
| 45 | inline ULONG FireEtwGCStart_V2( |
| 46 | const unsigned int Count, |
| 47 | const unsigned int Depth, |
| 48 | const unsigned int Reason, |
| 49 | const unsigned int Type, |
| 50 | const unsigned short ClrInstanceID, |
| 51 | const unsigned __int64 ClientSequenceNumber |
| 52 | ) |
| 53 | { |
| 54 | ULONG status = EventPipeWriteEventGCStart_V2(Count,Depth,Reason,Type,ClrInstanceID,ClientSequenceNumber); |
| 55 | status &= FireEtXplatGCStart_V2(Count,Depth,Reason,Type,ClrInstanceID,ClientSequenceNumber); |
| 56 | return status; |
| 57 | } |
| 58 | |
| 59 | inline BOOL EventEnabledGCEnd() {return EventPipeEventEnabledGCEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCEnd());} |
| 60 | |
| 61 | inline ULONG FireEtwGCEnd( |
| 62 | const unsigned int Count, |
| 63 | const unsigned short Depth |
| 64 | ) |
| 65 | { |
| 66 | ULONG status = EventPipeWriteEventGCEnd(Count,Depth); |
| 67 | status &= FireEtXplatGCEnd(Count,Depth); |
| 68 | return status; |
| 69 | } |
| 70 | |
| 71 | inline BOOL EventEnabledGCEnd_V1() {return EventPipeEventEnabledGCEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCEnd_V1());} |
| 72 | |
| 73 | inline ULONG FireEtwGCEnd_V1( |
| 74 | const unsigned int Count, |
| 75 | const unsigned int Depth, |
| 76 | const unsigned short ClrInstanceID |
| 77 | ) |
| 78 | { |
| 79 | ULONG status = EventPipeWriteEventGCEnd_V1(Count,Depth,ClrInstanceID); |
| 80 | status &= FireEtXplatGCEnd_V1(Count,Depth,ClrInstanceID); |
| 81 | return status; |
| 82 | } |
| 83 | |
| 84 | inline BOOL EventEnabledGCRestartEEEnd() {return EventPipeEventEnabledGCRestartEEEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCRestartEEEnd());} |
| 85 | |
| 86 | inline ULONG FireEtwGCRestartEEEnd( |
| 87 | |
| 88 | ) |
| 89 | { |
| 90 | ULONG status = EventPipeWriteEventGCRestartEEEnd(); |
| 91 | status &= FireEtXplatGCRestartEEEnd(); |
| 92 | return status; |
| 93 | } |
| 94 | |
| 95 | inline BOOL EventEnabledGCRestartEEEnd_V1() {return EventPipeEventEnabledGCRestartEEEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCRestartEEEnd_V1());} |
| 96 | |
| 97 | inline ULONG FireEtwGCRestartEEEnd_V1( |
| 98 | const unsigned short ClrInstanceID |
| 99 | ) |
| 100 | { |
| 101 | ULONG status = EventPipeWriteEventGCRestartEEEnd_V1(ClrInstanceID); |
| 102 | status &= FireEtXplatGCRestartEEEnd_V1(ClrInstanceID); |
| 103 | return status; |
| 104 | } |
| 105 | |
| 106 | inline BOOL EventEnabledGCHeapStats() {return EventPipeEventEnabledGCHeapStats() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCHeapStats());} |
| 107 | |
| 108 | inline ULONG FireEtwGCHeapStats( |
| 109 | const unsigned __int64 GenerationSize0, |
| 110 | const unsigned __int64 TotalPromotedSize0, |
| 111 | const unsigned __int64 GenerationSize1, |
| 112 | const unsigned __int64 TotalPromotedSize1, |
| 113 | const unsigned __int64 GenerationSize2, |
| 114 | const unsigned __int64 TotalPromotedSize2, |
| 115 | const unsigned __int64 GenerationSize3, |
| 116 | const unsigned __int64 TotalPromotedSize3, |
| 117 | const unsigned __int64 FinalizationPromotedSize, |
| 118 | const unsigned __int64 FinalizationPromotedCount, |
| 119 | const unsigned int PinnedObjectCount, |
| 120 | const unsigned int SinkBlockCount, |
| 121 | const unsigned int GCHandleCount |
| 122 | ) |
| 123 | { |
| 124 | ULONG status = EventPipeWriteEventGCHeapStats(GenerationSize0,TotalPromotedSize0,GenerationSize1,TotalPromotedSize1,GenerationSize2,TotalPromotedSize2,GenerationSize3,TotalPromotedSize3,FinalizationPromotedSize,FinalizationPromotedCount,PinnedObjectCount,SinkBlockCount,GCHandleCount); |
| 125 | status &= FireEtXplatGCHeapStats(GenerationSize0,TotalPromotedSize0,GenerationSize1,TotalPromotedSize1,GenerationSize2,TotalPromotedSize2,GenerationSize3,TotalPromotedSize3,FinalizationPromotedSize,FinalizationPromotedCount,PinnedObjectCount,SinkBlockCount,GCHandleCount); |
| 126 | return status; |
| 127 | } |
| 128 | |
| 129 | inline BOOL EventEnabledGCHeapStats_V1() {return EventPipeEventEnabledGCHeapStats_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCHeapStats_V1());} |
| 130 | |
| 131 | inline ULONG FireEtwGCHeapStats_V1( |
| 132 | const unsigned __int64 GenerationSize0, |
| 133 | const unsigned __int64 TotalPromotedSize0, |
| 134 | const unsigned __int64 GenerationSize1, |
| 135 | const unsigned __int64 TotalPromotedSize1, |
| 136 | const unsigned __int64 GenerationSize2, |
| 137 | const unsigned __int64 TotalPromotedSize2, |
| 138 | const unsigned __int64 GenerationSize3, |
| 139 | const unsigned __int64 TotalPromotedSize3, |
| 140 | const unsigned __int64 FinalizationPromotedSize, |
| 141 | const unsigned __int64 FinalizationPromotedCount, |
| 142 | const unsigned int PinnedObjectCount, |
| 143 | const unsigned int SinkBlockCount, |
| 144 | const unsigned int GCHandleCount, |
| 145 | const unsigned short ClrInstanceID |
| 146 | ) |
| 147 | { |
| 148 | ULONG status = EventPipeWriteEventGCHeapStats_V1(GenerationSize0,TotalPromotedSize0,GenerationSize1,TotalPromotedSize1,GenerationSize2,TotalPromotedSize2,GenerationSize3,TotalPromotedSize3,FinalizationPromotedSize,FinalizationPromotedCount,PinnedObjectCount,SinkBlockCount,GCHandleCount,ClrInstanceID); |
| 149 | status &= FireEtXplatGCHeapStats_V1(GenerationSize0,TotalPromotedSize0,GenerationSize1,TotalPromotedSize1,GenerationSize2,TotalPromotedSize2,GenerationSize3,TotalPromotedSize3,FinalizationPromotedSize,FinalizationPromotedCount,PinnedObjectCount,SinkBlockCount,GCHandleCount,ClrInstanceID); |
| 150 | return status; |
| 151 | } |
| 152 | |
| 153 | inline BOOL EventEnabledGCCreateSegment() {return EventPipeEventEnabledGCCreateSegment() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCCreateSegment());} |
| 154 | |
| 155 | inline ULONG FireEtwGCCreateSegment( |
| 156 | const unsigned __int64 Address, |
| 157 | const unsigned __int64 Size, |
| 158 | const unsigned int Type |
| 159 | ) |
| 160 | { |
| 161 | ULONG status = EventPipeWriteEventGCCreateSegment(Address,Size,Type); |
| 162 | status &= FireEtXplatGCCreateSegment(Address,Size,Type); |
| 163 | return status; |
| 164 | } |
| 165 | |
| 166 | inline BOOL EventEnabledGCCreateSegment_V1() {return EventPipeEventEnabledGCCreateSegment_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCCreateSegment_V1());} |
| 167 | |
| 168 | inline ULONG FireEtwGCCreateSegment_V1( |
| 169 | const unsigned __int64 Address, |
| 170 | const unsigned __int64 Size, |
| 171 | const unsigned int Type, |
| 172 | const unsigned short ClrInstanceID |
| 173 | ) |
| 174 | { |
| 175 | ULONG status = EventPipeWriteEventGCCreateSegment_V1(Address,Size,Type,ClrInstanceID); |
| 176 | status &= FireEtXplatGCCreateSegment_V1(Address,Size,Type,ClrInstanceID); |
| 177 | return status; |
| 178 | } |
| 179 | |
| 180 | inline BOOL EventEnabledGCFreeSegment() {return EventPipeEventEnabledGCFreeSegment() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCFreeSegment());} |
| 181 | |
| 182 | inline ULONG FireEtwGCFreeSegment( |
| 183 | const unsigned __int64 Address |
| 184 | ) |
| 185 | { |
| 186 | ULONG status = EventPipeWriteEventGCFreeSegment(Address); |
| 187 | status &= FireEtXplatGCFreeSegment(Address); |
| 188 | return status; |
| 189 | } |
| 190 | |
| 191 | inline BOOL EventEnabledGCFreeSegment_V1() {return EventPipeEventEnabledGCFreeSegment_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCFreeSegment_V1());} |
| 192 | |
| 193 | inline ULONG FireEtwGCFreeSegment_V1( |
| 194 | const unsigned __int64 Address, |
| 195 | const unsigned short ClrInstanceID |
| 196 | ) |
| 197 | { |
| 198 | ULONG status = EventPipeWriteEventGCFreeSegment_V1(Address,ClrInstanceID); |
| 199 | status &= FireEtXplatGCFreeSegment_V1(Address,ClrInstanceID); |
| 200 | return status; |
| 201 | } |
| 202 | |
| 203 | inline BOOL EventEnabledGCRestartEEBegin() {return EventPipeEventEnabledGCRestartEEBegin() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCRestartEEBegin());} |
| 204 | |
| 205 | inline ULONG FireEtwGCRestartEEBegin( |
| 206 | |
| 207 | ) |
| 208 | { |
| 209 | ULONG status = EventPipeWriteEventGCRestartEEBegin(); |
| 210 | status &= FireEtXplatGCRestartEEBegin(); |
| 211 | return status; |
| 212 | } |
| 213 | |
| 214 | inline BOOL EventEnabledGCRestartEEBegin_V1() {return EventPipeEventEnabledGCRestartEEBegin_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCRestartEEBegin_V1());} |
| 215 | |
| 216 | inline ULONG FireEtwGCRestartEEBegin_V1( |
| 217 | const unsigned short ClrInstanceID |
| 218 | ) |
| 219 | { |
| 220 | ULONG status = EventPipeWriteEventGCRestartEEBegin_V1(ClrInstanceID); |
| 221 | status &= FireEtXplatGCRestartEEBegin_V1(ClrInstanceID); |
| 222 | return status; |
| 223 | } |
| 224 | |
| 225 | inline BOOL EventEnabledGCSuspendEEEnd() {return EventPipeEventEnabledGCSuspendEEEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCSuspendEEEnd());} |
| 226 | |
| 227 | inline ULONG FireEtwGCSuspendEEEnd( |
| 228 | |
| 229 | ) |
| 230 | { |
| 231 | ULONG status = EventPipeWriteEventGCSuspendEEEnd(); |
| 232 | status &= FireEtXplatGCSuspendEEEnd(); |
| 233 | return status; |
| 234 | } |
| 235 | |
| 236 | inline BOOL EventEnabledGCSuspendEEEnd_V1() {return EventPipeEventEnabledGCSuspendEEEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCSuspendEEEnd_V1());} |
| 237 | |
| 238 | inline ULONG FireEtwGCSuspendEEEnd_V1( |
| 239 | const unsigned short ClrInstanceID |
| 240 | ) |
| 241 | { |
| 242 | ULONG status = EventPipeWriteEventGCSuspendEEEnd_V1(ClrInstanceID); |
| 243 | status &= FireEtXplatGCSuspendEEEnd_V1(ClrInstanceID); |
| 244 | return status; |
| 245 | } |
| 246 | |
| 247 | inline BOOL EventEnabledGCSuspendEEBegin() {return EventPipeEventEnabledGCSuspendEEBegin() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCSuspendEEBegin());} |
| 248 | |
| 249 | inline ULONG FireEtwGCSuspendEEBegin( |
| 250 | const unsigned short Reason |
| 251 | ) |
| 252 | { |
| 253 | ULONG status = EventPipeWriteEventGCSuspendEEBegin(Reason); |
| 254 | status &= FireEtXplatGCSuspendEEBegin(Reason); |
| 255 | return status; |
| 256 | } |
| 257 | |
| 258 | inline BOOL EventEnabledGCSuspendEEBegin_V1() {return EventPipeEventEnabledGCSuspendEEBegin_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCSuspendEEBegin_V1());} |
| 259 | |
| 260 | inline ULONG FireEtwGCSuspendEEBegin_V1( |
| 261 | const unsigned int Reason, |
| 262 | const unsigned int Count, |
| 263 | const unsigned short ClrInstanceID |
| 264 | ) |
| 265 | { |
| 266 | ULONG status = EventPipeWriteEventGCSuspendEEBegin_V1(Reason,Count,ClrInstanceID); |
| 267 | status &= FireEtXplatGCSuspendEEBegin_V1(Reason,Count,ClrInstanceID); |
| 268 | return status; |
| 269 | } |
| 270 | |
| 271 | inline BOOL EventEnabledGCAllocationTick() {return EventPipeEventEnabledGCAllocationTick() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCAllocationTick());} |
| 272 | |
| 273 | inline ULONG FireEtwGCAllocationTick( |
| 274 | const unsigned int AllocationAmount, |
| 275 | const unsigned int AllocationKind |
| 276 | ) |
| 277 | { |
| 278 | ULONG status = EventPipeWriteEventGCAllocationTick(AllocationAmount,AllocationKind); |
| 279 | status &= FireEtXplatGCAllocationTick(AllocationAmount,AllocationKind); |
| 280 | return status; |
| 281 | } |
| 282 | |
| 283 | inline BOOL EventEnabledGCAllocationTick_V1() {return EventPipeEventEnabledGCAllocationTick_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCAllocationTick_V1());} |
| 284 | |
| 285 | inline ULONG FireEtwGCAllocationTick_V1( |
| 286 | const unsigned int AllocationAmount, |
| 287 | const unsigned int AllocationKind, |
| 288 | const unsigned short ClrInstanceID |
| 289 | ) |
| 290 | { |
| 291 | ULONG status = EventPipeWriteEventGCAllocationTick_V1(AllocationAmount,AllocationKind,ClrInstanceID); |
| 292 | status &= FireEtXplatGCAllocationTick_V1(AllocationAmount,AllocationKind,ClrInstanceID); |
| 293 | return status; |
| 294 | } |
| 295 | |
| 296 | inline BOOL EventEnabledGCAllocationTick_V2() {return EventPipeEventEnabledGCAllocationTick_V2() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCAllocationTick_V2());} |
| 297 | |
| 298 | inline ULONG FireEtwGCAllocationTick_V2( |
| 299 | const unsigned int AllocationAmount, |
| 300 | const unsigned int AllocationKind, |
| 301 | const unsigned short ClrInstanceID, |
| 302 | const unsigned __int64 AllocationAmount64, |
| 303 | const void* TypeID, |
| 304 | PCWSTR TypeName, |
| 305 | const unsigned int HeapIndex |
| 306 | ) |
| 307 | { |
| 308 | ULONG status = EventPipeWriteEventGCAllocationTick_V2(AllocationAmount,AllocationKind,ClrInstanceID,AllocationAmount64,TypeID,TypeName,HeapIndex); |
| 309 | status &= FireEtXplatGCAllocationTick_V2(AllocationAmount,AllocationKind,ClrInstanceID,AllocationAmount64,TypeID,TypeName,HeapIndex); |
| 310 | return status; |
| 311 | } |
| 312 | |
| 313 | inline BOOL EventEnabledGCAllocationTick_V3() {return EventPipeEventEnabledGCAllocationTick_V3() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCAllocationTick_V3());} |
| 314 | |
| 315 | inline ULONG FireEtwGCAllocationTick_V3( |
| 316 | const unsigned int AllocationAmount, |
| 317 | const unsigned int AllocationKind, |
| 318 | const unsigned short ClrInstanceID, |
| 319 | const unsigned __int64 AllocationAmount64, |
| 320 | const void* TypeID, |
| 321 | PCWSTR TypeName, |
| 322 | const unsigned int HeapIndex, |
| 323 | const void* Address |
| 324 | ) |
| 325 | { |
| 326 | ULONG status = EventPipeWriteEventGCAllocationTick_V3(AllocationAmount,AllocationKind,ClrInstanceID,AllocationAmount64,TypeID,TypeName,HeapIndex,Address); |
| 327 | status &= FireEtXplatGCAllocationTick_V3(AllocationAmount,AllocationKind,ClrInstanceID,AllocationAmount64,TypeID,TypeName,HeapIndex,Address); |
| 328 | return status; |
| 329 | } |
| 330 | |
| 331 | inline BOOL EventEnabledGCCreateConcurrentThread() {return EventPipeEventEnabledGCCreateConcurrentThread() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCCreateConcurrentThread());} |
| 332 | |
| 333 | inline ULONG FireEtwGCCreateConcurrentThread( |
| 334 | |
| 335 | ) |
| 336 | { |
| 337 | ULONG status = EventPipeWriteEventGCCreateConcurrentThread(); |
| 338 | status &= FireEtXplatGCCreateConcurrentThread(); |
| 339 | return status; |
| 340 | } |
| 341 | |
| 342 | inline BOOL EventEnabledGCCreateConcurrentThread_V1() {return EventPipeEventEnabledGCCreateConcurrentThread_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCCreateConcurrentThread_V1());} |
| 343 | |
| 344 | inline ULONG FireEtwGCCreateConcurrentThread_V1( |
| 345 | const unsigned short ClrInstanceID |
| 346 | ) |
| 347 | { |
| 348 | ULONG status = EventPipeWriteEventGCCreateConcurrentThread_V1(ClrInstanceID); |
| 349 | status &= FireEtXplatGCCreateConcurrentThread_V1(ClrInstanceID); |
| 350 | return status; |
| 351 | } |
| 352 | |
| 353 | inline BOOL EventEnabledGCTerminateConcurrentThread() {return EventPipeEventEnabledGCTerminateConcurrentThread() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCTerminateConcurrentThread());} |
| 354 | |
| 355 | inline ULONG FireEtwGCTerminateConcurrentThread( |
| 356 | |
| 357 | ) |
| 358 | { |
| 359 | ULONG status = EventPipeWriteEventGCTerminateConcurrentThread(); |
| 360 | status &= FireEtXplatGCTerminateConcurrentThread(); |
| 361 | return status; |
| 362 | } |
| 363 | |
| 364 | inline BOOL EventEnabledGCTerminateConcurrentThread_V1() {return EventPipeEventEnabledGCTerminateConcurrentThread_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCTerminateConcurrentThread_V1());} |
| 365 | |
| 366 | inline ULONG FireEtwGCTerminateConcurrentThread_V1( |
| 367 | const unsigned short ClrInstanceID |
| 368 | ) |
| 369 | { |
| 370 | ULONG status = EventPipeWriteEventGCTerminateConcurrentThread_V1(ClrInstanceID); |
| 371 | status &= FireEtXplatGCTerminateConcurrentThread_V1(ClrInstanceID); |
| 372 | return status; |
| 373 | } |
| 374 | |
| 375 | inline BOOL EventEnabledGCFinalizersEnd() {return EventPipeEventEnabledGCFinalizersEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCFinalizersEnd());} |
| 376 | |
| 377 | inline ULONG FireEtwGCFinalizersEnd( |
| 378 | const unsigned int Count |
| 379 | ) |
| 380 | { |
| 381 | ULONG status = EventPipeWriteEventGCFinalizersEnd(Count); |
| 382 | status &= FireEtXplatGCFinalizersEnd(Count); |
| 383 | return status; |
| 384 | } |
| 385 | |
| 386 | inline BOOL EventEnabledGCFinalizersEnd_V1() {return EventPipeEventEnabledGCFinalizersEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCFinalizersEnd_V1());} |
| 387 | |
| 388 | inline ULONG FireEtwGCFinalizersEnd_V1( |
| 389 | const unsigned int Count, |
| 390 | const unsigned short ClrInstanceID |
| 391 | ) |
| 392 | { |
| 393 | ULONG status = EventPipeWriteEventGCFinalizersEnd_V1(Count,ClrInstanceID); |
| 394 | status &= FireEtXplatGCFinalizersEnd_V1(Count,ClrInstanceID); |
| 395 | return status; |
| 396 | } |
| 397 | |
| 398 | inline BOOL EventEnabledGCFinalizersBegin() {return EventPipeEventEnabledGCFinalizersBegin() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCFinalizersBegin());} |
| 399 | |
| 400 | inline ULONG FireEtwGCFinalizersBegin( |
| 401 | |
| 402 | ) |
| 403 | { |
| 404 | ULONG status = EventPipeWriteEventGCFinalizersBegin(); |
| 405 | status &= FireEtXplatGCFinalizersBegin(); |
| 406 | return status; |
| 407 | } |
| 408 | |
| 409 | inline BOOL EventEnabledGCFinalizersBegin_V1() {return EventPipeEventEnabledGCFinalizersBegin_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCFinalizersBegin_V1());} |
| 410 | |
| 411 | inline ULONG FireEtwGCFinalizersBegin_V1( |
| 412 | const unsigned short ClrInstanceID |
| 413 | ) |
| 414 | { |
| 415 | ULONG status = EventPipeWriteEventGCFinalizersBegin_V1(ClrInstanceID); |
| 416 | status &= FireEtXplatGCFinalizersBegin_V1(ClrInstanceID); |
| 417 | return status; |
| 418 | } |
| 419 | |
| 420 | inline BOOL EventEnabledBulkType() {return EventPipeEventEnabledBulkType() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBulkType());} |
| 421 | |
| 422 | inline ULONG FireEtwBulkType( |
| 423 | const unsigned int Count, |
| 424 | const unsigned short ClrInstanceID, |
| 425 | int Values_ElementSize, |
| 426 | const void* Values |
| 427 | ) |
| 428 | { |
| 429 | ULONG status = EventPipeWriteEventBulkType(Count,ClrInstanceID,Values_ElementSize, Values); |
| 430 | status &= FireEtXplatBulkType(Count,ClrInstanceID,Values_ElementSize, Values); |
| 431 | return status; |
| 432 | } |
| 433 | |
| 434 | inline BOOL EventEnabledGCBulkRootEdge() {return EventPipeEventEnabledGCBulkRootEdge() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCBulkRootEdge());} |
| 435 | |
| 436 | inline ULONG FireEtwGCBulkRootEdge( |
| 437 | const unsigned int Index, |
| 438 | const unsigned int Count, |
| 439 | const unsigned short ClrInstanceID, |
| 440 | int Values_ElementSize, |
| 441 | const void* Values |
| 442 | ) |
| 443 | { |
| 444 | ULONG status = EventPipeWriteEventGCBulkRootEdge(Index,Count,ClrInstanceID,Values_ElementSize, Values); |
| 445 | status &= FireEtXplatGCBulkRootEdge(Index,Count,ClrInstanceID,Values_ElementSize, Values); |
| 446 | return status; |
| 447 | } |
| 448 | |
| 449 | inline BOOL EventEnabledGCBulkRootConditionalWeakTableElementEdge() {return EventPipeEventEnabledGCBulkRootConditionalWeakTableElementEdge() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCBulkRootConditionalWeakTableElementEdge());} |
| 450 | |
| 451 | inline ULONG FireEtwGCBulkRootConditionalWeakTableElementEdge( |
| 452 | const unsigned int Index, |
| 453 | const unsigned int Count, |
| 454 | const unsigned short ClrInstanceID, |
| 455 | int Values_ElementSize, |
| 456 | const void* Values |
| 457 | ) |
| 458 | { |
| 459 | ULONG status = EventPipeWriteEventGCBulkRootConditionalWeakTableElementEdge(Index,Count,ClrInstanceID,Values_ElementSize, Values); |
| 460 | status &= FireEtXplatGCBulkRootConditionalWeakTableElementEdge(Index,Count,ClrInstanceID,Values_ElementSize, Values); |
| 461 | return status; |
| 462 | } |
| 463 | |
| 464 | inline BOOL EventEnabledGCBulkNode() {return EventPipeEventEnabledGCBulkNode() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCBulkNode());} |
| 465 | |
| 466 | inline ULONG FireEtwGCBulkNode( |
| 467 | const unsigned int Index, |
| 468 | const unsigned int Count, |
| 469 | const unsigned short ClrInstanceID, |
| 470 | int Values_ElementSize, |
| 471 | const void* Values |
| 472 | ) |
| 473 | { |
| 474 | ULONG status = EventPipeWriteEventGCBulkNode(Index,Count,ClrInstanceID,Values_ElementSize, Values); |
| 475 | status &= FireEtXplatGCBulkNode(Index,Count,ClrInstanceID,Values_ElementSize, Values); |
| 476 | return status; |
| 477 | } |
| 478 | |
| 479 | inline BOOL EventEnabledGCBulkEdge() {return EventPipeEventEnabledGCBulkEdge() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCBulkEdge());} |
| 480 | |
| 481 | inline ULONG FireEtwGCBulkEdge( |
| 482 | const unsigned int Index, |
| 483 | const unsigned int Count, |
| 484 | const unsigned short ClrInstanceID, |
| 485 | int Values_ElementSize, |
| 486 | const void* Values |
| 487 | ) |
| 488 | { |
| 489 | ULONG status = EventPipeWriteEventGCBulkEdge(Index,Count,ClrInstanceID,Values_ElementSize, Values); |
| 490 | status &= FireEtXplatGCBulkEdge(Index,Count,ClrInstanceID,Values_ElementSize, Values); |
| 491 | return status; |
| 492 | } |
| 493 | |
| 494 | inline BOOL EventEnabledGCSampledObjectAllocationHigh() {return EventPipeEventEnabledGCSampledObjectAllocationHigh() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCSampledObjectAllocationHigh());} |
| 495 | |
| 496 | inline ULONG FireEtwGCSampledObjectAllocationHigh( |
| 497 | const void* Address, |
| 498 | const void* TypeID, |
| 499 | const unsigned int ObjectCountForTypeSample, |
| 500 | const unsigned __int64 TotalSizeForTypeSample, |
| 501 | const unsigned short ClrInstanceID |
| 502 | ) |
| 503 | { |
| 504 | ULONG status = EventPipeWriteEventGCSampledObjectAllocationHigh(Address,TypeID,ObjectCountForTypeSample,TotalSizeForTypeSample,ClrInstanceID); |
| 505 | status &= FireEtXplatGCSampledObjectAllocationHigh(Address,TypeID,ObjectCountForTypeSample,TotalSizeForTypeSample,ClrInstanceID); |
| 506 | return status; |
| 507 | } |
| 508 | |
| 509 | inline BOOL EventEnabledGCBulkSurvivingObjectRanges() {return EventPipeEventEnabledGCBulkSurvivingObjectRanges() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCBulkSurvivingObjectRanges());} |
| 510 | |
| 511 | inline ULONG FireEtwGCBulkSurvivingObjectRanges( |
| 512 | const unsigned int Index, |
| 513 | const unsigned int Count, |
| 514 | const unsigned short ClrInstanceID, |
| 515 | int Values_ElementSize, |
| 516 | const void* Values |
| 517 | ) |
| 518 | { |
| 519 | ULONG status = EventPipeWriteEventGCBulkSurvivingObjectRanges(Index,Count,ClrInstanceID,Values_ElementSize, Values); |
| 520 | status &= FireEtXplatGCBulkSurvivingObjectRanges(Index,Count,ClrInstanceID,Values_ElementSize, Values); |
| 521 | return status; |
| 522 | } |
| 523 | |
| 524 | inline BOOL EventEnabledGCBulkMovedObjectRanges() {return EventPipeEventEnabledGCBulkMovedObjectRanges() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCBulkMovedObjectRanges());} |
| 525 | |
| 526 | inline ULONG FireEtwGCBulkMovedObjectRanges( |
| 527 | const unsigned int Index, |
| 528 | const unsigned int Count, |
| 529 | const unsigned short ClrInstanceID, |
| 530 | int Values_ElementSize, |
| 531 | const void* Values |
| 532 | ) |
| 533 | { |
| 534 | ULONG status = EventPipeWriteEventGCBulkMovedObjectRanges(Index,Count,ClrInstanceID,Values_ElementSize, Values); |
| 535 | status &= FireEtXplatGCBulkMovedObjectRanges(Index,Count,ClrInstanceID,Values_ElementSize, Values); |
| 536 | return status; |
| 537 | } |
| 538 | |
| 539 | inline BOOL EventEnabledGCGenerationRange() {return EventPipeEventEnabledGCGenerationRange() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCGenerationRange());} |
| 540 | |
| 541 | inline ULONG FireEtwGCGenerationRange( |
| 542 | const unsigned char Generation, |
| 543 | const void* RangeStart, |
| 544 | const unsigned __int64 RangeUsedLength, |
| 545 | const unsigned __int64 RangeReservedLength, |
| 546 | const unsigned short ClrInstanceID |
| 547 | ) |
| 548 | { |
| 549 | ULONG status = EventPipeWriteEventGCGenerationRange(Generation,RangeStart,RangeUsedLength,RangeReservedLength,ClrInstanceID); |
| 550 | status &= FireEtXplatGCGenerationRange(Generation,RangeStart,RangeUsedLength,RangeReservedLength,ClrInstanceID); |
| 551 | return status; |
| 552 | } |
| 553 | |
| 554 | inline BOOL EventEnabledGCMarkStackRoots() {return EventPipeEventEnabledGCMarkStackRoots() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCMarkStackRoots());} |
| 555 | |
| 556 | inline ULONG FireEtwGCMarkStackRoots( |
| 557 | const unsigned int HeapNum, |
| 558 | const unsigned short ClrInstanceID |
| 559 | ) |
| 560 | { |
| 561 | ULONG status = EventPipeWriteEventGCMarkStackRoots(HeapNum,ClrInstanceID); |
| 562 | status &= FireEtXplatGCMarkStackRoots(HeapNum,ClrInstanceID); |
| 563 | return status; |
| 564 | } |
| 565 | |
| 566 | inline BOOL EventEnabledGCMarkFinalizeQueueRoots() {return EventPipeEventEnabledGCMarkFinalizeQueueRoots() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCMarkFinalizeQueueRoots());} |
| 567 | |
| 568 | inline ULONG FireEtwGCMarkFinalizeQueueRoots( |
| 569 | const unsigned int HeapNum, |
| 570 | const unsigned short ClrInstanceID |
| 571 | ) |
| 572 | { |
| 573 | ULONG status = EventPipeWriteEventGCMarkFinalizeQueueRoots(HeapNum,ClrInstanceID); |
| 574 | status &= FireEtXplatGCMarkFinalizeQueueRoots(HeapNum,ClrInstanceID); |
| 575 | return status; |
| 576 | } |
| 577 | |
| 578 | inline BOOL EventEnabledGCMarkHandles() {return EventPipeEventEnabledGCMarkHandles() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCMarkHandles());} |
| 579 | |
| 580 | inline ULONG FireEtwGCMarkHandles( |
| 581 | const unsigned int HeapNum, |
| 582 | const unsigned short ClrInstanceID |
| 583 | ) |
| 584 | { |
| 585 | ULONG status = EventPipeWriteEventGCMarkHandles(HeapNum,ClrInstanceID); |
| 586 | status &= FireEtXplatGCMarkHandles(HeapNum,ClrInstanceID); |
| 587 | return status; |
| 588 | } |
| 589 | |
| 590 | inline BOOL EventEnabledGCMarkOlderGenerationRoots() {return EventPipeEventEnabledGCMarkOlderGenerationRoots() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCMarkOlderGenerationRoots());} |
| 591 | |
| 592 | inline ULONG FireEtwGCMarkOlderGenerationRoots( |
| 593 | const unsigned int HeapNum, |
| 594 | const unsigned short ClrInstanceID |
| 595 | ) |
| 596 | { |
| 597 | ULONG status = EventPipeWriteEventGCMarkOlderGenerationRoots(HeapNum,ClrInstanceID); |
| 598 | status &= FireEtXplatGCMarkOlderGenerationRoots(HeapNum,ClrInstanceID); |
| 599 | return status; |
| 600 | } |
| 601 | |
| 602 | inline BOOL EventEnabledFinalizeObject() {return EventPipeEventEnabledFinalizeObject() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledFinalizeObject());} |
| 603 | |
| 604 | inline ULONG FireEtwFinalizeObject( |
| 605 | const void* TypeID, |
| 606 | const void* ObjectID, |
| 607 | const unsigned short ClrInstanceID |
| 608 | ) |
| 609 | { |
| 610 | ULONG status = EventPipeWriteEventFinalizeObject(TypeID,ObjectID,ClrInstanceID); |
| 611 | status &= FireEtXplatFinalizeObject(TypeID,ObjectID,ClrInstanceID); |
| 612 | return status; |
| 613 | } |
| 614 | |
| 615 | inline BOOL EventEnabledSetGCHandle() {return EventPipeEventEnabledSetGCHandle() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledSetGCHandle());} |
| 616 | |
| 617 | inline ULONG FireEtwSetGCHandle( |
| 618 | const void* HandleID, |
| 619 | const void* ObjectID, |
| 620 | const unsigned int Kind, |
| 621 | const unsigned int Generation, |
| 622 | const unsigned __int64 AppDomainID, |
| 623 | const unsigned short ClrInstanceID |
| 624 | ) |
| 625 | { |
| 626 | ULONG status = EventPipeWriteEventSetGCHandle(HandleID,ObjectID,Kind,Generation,AppDomainID,ClrInstanceID); |
| 627 | status &= FireEtXplatSetGCHandle(HandleID,ObjectID,Kind,Generation,AppDomainID,ClrInstanceID); |
| 628 | return status; |
| 629 | } |
| 630 | |
| 631 | inline BOOL EventEnabledDestroyGCHandle() {return EventPipeEventEnabledDestroyGCHandle() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledDestroyGCHandle());} |
| 632 | |
| 633 | inline ULONG FireEtwDestroyGCHandle( |
| 634 | const void* HandleID, |
| 635 | const unsigned short ClrInstanceID |
| 636 | ) |
| 637 | { |
| 638 | ULONG status = EventPipeWriteEventDestroyGCHandle(HandleID,ClrInstanceID); |
| 639 | status &= FireEtXplatDestroyGCHandle(HandleID,ClrInstanceID); |
| 640 | return status; |
| 641 | } |
| 642 | |
| 643 | inline BOOL EventEnabledGCSampledObjectAllocationLow() {return EventPipeEventEnabledGCSampledObjectAllocationLow() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCSampledObjectAllocationLow());} |
| 644 | |
| 645 | inline ULONG FireEtwGCSampledObjectAllocationLow( |
| 646 | const void* Address, |
| 647 | const void* TypeID, |
| 648 | const unsigned int ObjectCountForTypeSample, |
| 649 | const unsigned __int64 TotalSizeForTypeSample, |
| 650 | const unsigned short ClrInstanceID |
| 651 | ) |
| 652 | { |
| 653 | ULONG status = EventPipeWriteEventGCSampledObjectAllocationLow(Address,TypeID,ObjectCountForTypeSample,TotalSizeForTypeSample,ClrInstanceID); |
| 654 | status &= FireEtXplatGCSampledObjectAllocationLow(Address,TypeID,ObjectCountForTypeSample,TotalSizeForTypeSample,ClrInstanceID); |
| 655 | return status; |
| 656 | } |
| 657 | |
| 658 | inline BOOL EventEnabledPinObjectAtGCTime() {return EventPipeEventEnabledPinObjectAtGCTime() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledPinObjectAtGCTime());} |
| 659 | |
| 660 | inline ULONG FireEtwPinObjectAtGCTime( |
| 661 | const void* HandleID, |
| 662 | const void* ObjectID, |
| 663 | const unsigned __int64 ObjectSize, |
| 664 | PCWSTR TypeName, |
| 665 | const unsigned short ClrInstanceID |
| 666 | ) |
| 667 | { |
| 668 | ULONG status = EventPipeWriteEventPinObjectAtGCTime(HandleID,ObjectID,ObjectSize,TypeName,ClrInstanceID); |
| 669 | status &= FireEtXplatPinObjectAtGCTime(HandleID,ObjectID,ObjectSize,TypeName,ClrInstanceID); |
| 670 | return status; |
| 671 | } |
| 672 | |
| 673 | inline BOOL EventEnabledGCTriggered() {return EventPipeEventEnabledGCTriggered() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCTriggered());} |
| 674 | |
| 675 | inline ULONG FireEtwGCTriggered( |
| 676 | const unsigned int Reason, |
| 677 | const unsigned short ClrInstanceID |
| 678 | ) |
| 679 | { |
| 680 | ULONG status = EventPipeWriteEventGCTriggered(Reason,ClrInstanceID); |
| 681 | status &= FireEtXplatGCTriggered(Reason,ClrInstanceID); |
| 682 | return status; |
| 683 | } |
| 684 | |
| 685 | inline BOOL EventEnabledGCBulkRootCCW() {return EventPipeEventEnabledGCBulkRootCCW() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCBulkRootCCW());} |
| 686 | |
| 687 | inline ULONG FireEtwGCBulkRootCCW( |
| 688 | const unsigned int Count, |
| 689 | const unsigned short ClrInstanceID, |
| 690 | int Values_ElementSize, |
| 691 | const void* Values |
| 692 | ) |
| 693 | { |
| 694 | ULONG status = EventPipeWriteEventGCBulkRootCCW(Count,ClrInstanceID,Values_ElementSize, Values); |
| 695 | status &= FireEtXplatGCBulkRootCCW(Count,ClrInstanceID,Values_ElementSize, Values); |
| 696 | return status; |
| 697 | } |
| 698 | |
| 699 | inline BOOL EventEnabledGCBulkRCW() {return EventPipeEventEnabledGCBulkRCW() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCBulkRCW());} |
| 700 | |
| 701 | inline ULONG FireEtwGCBulkRCW( |
| 702 | const unsigned int Count, |
| 703 | const unsigned short ClrInstanceID, |
| 704 | int Values_ElementSize, |
| 705 | const void* Values |
| 706 | ) |
| 707 | { |
| 708 | ULONG status = EventPipeWriteEventGCBulkRCW(Count,ClrInstanceID,Values_ElementSize, Values); |
| 709 | status &= FireEtXplatGCBulkRCW(Count,ClrInstanceID,Values_ElementSize, Values); |
| 710 | return status; |
| 711 | } |
| 712 | |
| 713 | inline BOOL EventEnabledGCBulkRootStaticVar() {return EventPipeEventEnabledGCBulkRootStaticVar() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCBulkRootStaticVar());} |
| 714 | |
| 715 | inline ULONG FireEtwGCBulkRootStaticVar( |
| 716 | const unsigned int Count, |
| 717 | const unsigned __int64 AppDomainID, |
| 718 | const unsigned short ClrInstanceID, |
| 719 | int Values_ElementSize, |
| 720 | const void* Values |
| 721 | ) |
| 722 | { |
| 723 | ULONG status = EventPipeWriteEventGCBulkRootStaticVar(Count,AppDomainID,ClrInstanceID,Values_ElementSize, Values); |
| 724 | status &= FireEtXplatGCBulkRootStaticVar(Count,AppDomainID,ClrInstanceID,Values_ElementSize, Values); |
| 725 | return status; |
| 726 | } |
| 727 | |
| 728 | inline BOOL EventEnabledGCDynamicEvent() {return EventPipeEventEnabledGCDynamicEvent() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCDynamicEvent());} |
| 729 | |
| 730 | inline ULONG FireEtwGCDynamicEvent( |
| 731 | PCWSTR Name, |
| 732 | const unsigned int DataSize, |
| 733 | const BYTE* Data, |
| 734 | const unsigned short ClrInstanceID |
| 735 | ) |
| 736 | { |
| 737 | ULONG status = EventPipeWriteEventGCDynamicEvent(Name,DataSize,Data,ClrInstanceID); |
| 738 | status &= FireEtXplatGCDynamicEvent(Name,DataSize,Data,ClrInstanceID); |
| 739 | return status; |
| 740 | } |
| 741 | |
| 742 | inline BOOL EventEnabledWorkerThreadCreate() {return EventPipeEventEnabledWorkerThreadCreate() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledWorkerThreadCreate());} |
| 743 | |
| 744 | inline ULONG FireEtwWorkerThreadCreate( |
| 745 | const unsigned int WorkerThreadCount, |
| 746 | const unsigned int RetiredWorkerThreads |
| 747 | ) |
| 748 | { |
| 749 | ULONG status = EventPipeWriteEventWorkerThreadCreate(WorkerThreadCount,RetiredWorkerThreads); |
| 750 | status &= FireEtXplatWorkerThreadCreate(WorkerThreadCount,RetiredWorkerThreads); |
| 751 | return status; |
| 752 | } |
| 753 | |
| 754 | inline BOOL EventEnabledWorkerThreadTerminate() {return EventPipeEventEnabledWorkerThreadTerminate() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledWorkerThreadTerminate());} |
| 755 | |
| 756 | inline ULONG FireEtwWorkerThreadTerminate( |
| 757 | const unsigned int WorkerThreadCount, |
| 758 | const unsigned int RetiredWorkerThreads |
| 759 | ) |
| 760 | { |
| 761 | ULONG status = EventPipeWriteEventWorkerThreadTerminate(WorkerThreadCount,RetiredWorkerThreads); |
| 762 | status &= FireEtXplatWorkerThreadTerminate(WorkerThreadCount,RetiredWorkerThreads); |
| 763 | return status; |
| 764 | } |
| 765 | |
| 766 | inline BOOL EventEnabledWorkerThreadRetire() {return EventPipeEventEnabledWorkerThreadRetire() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledWorkerThreadRetire());} |
| 767 | |
| 768 | inline ULONG FireEtwWorkerThreadRetire( |
| 769 | const unsigned int WorkerThreadCount, |
| 770 | const unsigned int RetiredWorkerThreads |
| 771 | ) |
| 772 | { |
| 773 | ULONG status = EventPipeWriteEventWorkerThreadRetire(WorkerThreadCount,RetiredWorkerThreads); |
| 774 | status &= FireEtXplatWorkerThreadRetire(WorkerThreadCount,RetiredWorkerThreads); |
| 775 | return status; |
| 776 | } |
| 777 | |
| 778 | inline BOOL EventEnabledWorkerThreadUnretire() {return EventPipeEventEnabledWorkerThreadUnretire() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledWorkerThreadUnretire());} |
| 779 | |
| 780 | inline ULONG FireEtwWorkerThreadUnretire( |
| 781 | const unsigned int WorkerThreadCount, |
| 782 | const unsigned int RetiredWorkerThreads |
| 783 | ) |
| 784 | { |
| 785 | ULONG status = EventPipeWriteEventWorkerThreadUnretire(WorkerThreadCount,RetiredWorkerThreads); |
| 786 | status &= FireEtXplatWorkerThreadUnretire(WorkerThreadCount,RetiredWorkerThreads); |
| 787 | return status; |
| 788 | } |
| 789 | |
| 790 | inline BOOL EventEnabledIOThreadCreate() {return EventPipeEventEnabledIOThreadCreate() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledIOThreadCreate());} |
| 791 | |
| 792 | inline ULONG FireEtwIOThreadCreate( |
| 793 | const unsigned int IOThreadCount, |
| 794 | const unsigned int RetiredIOThreads |
| 795 | ) |
| 796 | { |
| 797 | ULONG status = EventPipeWriteEventIOThreadCreate(IOThreadCount,RetiredIOThreads); |
| 798 | status &= FireEtXplatIOThreadCreate(IOThreadCount,RetiredIOThreads); |
| 799 | return status; |
| 800 | } |
| 801 | |
| 802 | inline BOOL EventEnabledIOThreadCreate_V1() {return EventPipeEventEnabledIOThreadCreate_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledIOThreadCreate_V1());} |
| 803 | |
| 804 | inline ULONG FireEtwIOThreadCreate_V1( |
| 805 | const unsigned int IOThreadCount, |
| 806 | const unsigned int RetiredIOThreads, |
| 807 | const unsigned short ClrInstanceID |
| 808 | ) |
| 809 | { |
| 810 | ULONG status = EventPipeWriteEventIOThreadCreate_V1(IOThreadCount,RetiredIOThreads,ClrInstanceID); |
| 811 | status &= FireEtXplatIOThreadCreate_V1(IOThreadCount,RetiredIOThreads,ClrInstanceID); |
| 812 | return status; |
| 813 | } |
| 814 | |
| 815 | inline BOOL EventEnabledIOThreadTerminate() {return EventPipeEventEnabledIOThreadTerminate() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledIOThreadTerminate());} |
| 816 | |
| 817 | inline ULONG FireEtwIOThreadTerminate( |
| 818 | const unsigned int IOThreadCount, |
| 819 | const unsigned int RetiredIOThreads |
| 820 | ) |
| 821 | { |
| 822 | ULONG status = EventPipeWriteEventIOThreadTerminate(IOThreadCount,RetiredIOThreads); |
| 823 | status &= FireEtXplatIOThreadTerminate(IOThreadCount,RetiredIOThreads); |
| 824 | return status; |
| 825 | } |
| 826 | |
| 827 | inline BOOL EventEnabledIOThreadTerminate_V1() {return EventPipeEventEnabledIOThreadTerminate_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledIOThreadTerminate_V1());} |
| 828 | |
| 829 | inline ULONG FireEtwIOThreadTerminate_V1( |
| 830 | const unsigned int IOThreadCount, |
| 831 | const unsigned int RetiredIOThreads, |
| 832 | const unsigned short ClrInstanceID |
| 833 | ) |
| 834 | { |
| 835 | ULONG status = EventPipeWriteEventIOThreadTerminate_V1(IOThreadCount,RetiredIOThreads,ClrInstanceID); |
| 836 | status &= FireEtXplatIOThreadTerminate_V1(IOThreadCount,RetiredIOThreads,ClrInstanceID); |
| 837 | return status; |
| 838 | } |
| 839 | |
| 840 | inline BOOL EventEnabledIOThreadRetire() {return EventPipeEventEnabledIOThreadRetire() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledIOThreadRetire());} |
| 841 | |
| 842 | inline ULONG FireEtwIOThreadRetire( |
| 843 | const unsigned int IOThreadCount, |
| 844 | const unsigned int RetiredIOThreads |
| 845 | ) |
| 846 | { |
| 847 | ULONG status = EventPipeWriteEventIOThreadRetire(IOThreadCount,RetiredIOThreads); |
| 848 | status &= FireEtXplatIOThreadRetire(IOThreadCount,RetiredIOThreads); |
| 849 | return status; |
| 850 | } |
| 851 | |
| 852 | inline BOOL EventEnabledIOThreadRetire_V1() {return EventPipeEventEnabledIOThreadRetire_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledIOThreadRetire_V1());} |
| 853 | |
| 854 | inline ULONG FireEtwIOThreadRetire_V1( |
| 855 | const unsigned int IOThreadCount, |
| 856 | const unsigned int RetiredIOThreads, |
| 857 | const unsigned short ClrInstanceID |
| 858 | ) |
| 859 | { |
| 860 | ULONG status = EventPipeWriteEventIOThreadRetire_V1(IOThreadCount,RetiredIOThreads,ClrInstanceID); |
| 861 | status &= FireEtXplatIOThreadRetire_V1(IOThreadCount,RetiredIOThreads,ClrInstanceID); |
| 862 | return status; |
| 863 | } |
| 864 | |
| 865 | inline BOOL EventEnabledIOThreadUnretire() {return EventPipeEventEnabledIOThreadUnretire() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledIOThreadUnretire());} |
| 866 | |
| 867 | inline ULONG FireEtwIOThreadUnretire( |
| 868 | const unsigned int IOThreadCount, |
| 869 | const unsigned int RetiredIOThreads |
| 870 | ) |
| 871 | { |
| 872 | ULONG status = EventPipeWriteEventIOThreadUnretire(IOThreadCount,RetiredIOThreads); |
| 873 | status &= FireEtXplatIOThreadUnretire(IOThreadCount,RetiredIOThreads); |
| 874 | return status; |
| 875 | } |
| 876 | |
| 877 | inline BOOL EventEnabledIOThreadUnretire_V1() {return EventPipeEventEnabledIOThreadUnretire_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledIOThreadUnretire_V1());} |
| 878 | |
| 879 | inline ULONG FireEtwIOThreadUnretire_V1( |
| 880 | const unsigned int IOThreadCount, |
| 881 | const unsigned int RetiredIOThreads, |
| 882 | const unsigned short ClrInstanceID |
| 883 | ) |
| 884 | { |
| 885 | ULONG status = EventPipeWriteEventIOThreadUnretire_V1(IOThreadCount,RetiredIOThreads,ClrInstanceID); |
| 886 | status &= FireEtXplatIOThreadUnretire_V1(IOThreadCount,RetiredIOThreads,ClrInstanceID); |
| 887 | return status; |
| 888 | } |
| 889 | |
| 890 | inline BOOL EventEnabledThreadpoolSuspensionSuspendThread() {return EventPipeEventEnabledThreadpoolSuspensionSuspendThread() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledThreadpoolSuspensionSuspendThread());} |
| 891 | |
| 892 | inline ULONG FireEtwThreadpoolSuspensionSuspendThread( |
| 893 | const unsigned int ClrThreadID, |
| 894 | const unsigned int CpuUtilization |
| 895 | ) |
| 896 | { |
| 897 | ULONG status = EventPipeWriteEventThreadpoolSuspensionSuspendThread(ClrThreadID,CpuUtilization); |
| 898 | status &= FireEtXplatThreadpoolSuspensionSuspendThread(ClrThreadID,CpuUtilization); |
| 899 | return status; |
| 900 | } |
| 901 | |
| 902 | inline BOOL EventEnabledThreadpoolSuspensionResumeThread() {return EventPipeEventEnabledThreadpoolSuspensionResumeThread() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledThreadpoolSuspensionResumeThread());} |
| 903 | |
| 904 | inline ULONG FireEtwThreadpoolSuspensionResumeThread( |
| 905 | const unsigned int ClrThreadID, |
| 906 | const unsigned int CpuUtilization |
| 907 | ) |
| 908 | { |
| 909 | ULONG status = EventPipeWriteEventThreadpoolSuspensionResumeThread(ClrThreadID,CpuUtilization); |
| 910 | status &= FireEtXplatThreadpoolSuspensionResumeThread(ClrThreadID,CpuUtilization); |
| 911 | return status; |
| 912 | } |
| 913 | |
| 914 | inline BOOL EventEnabledThreadPoolWorkerThreadStart() {return EventPipeEventEnabledThreadPoolWorkerThreadStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledThreadPoolWorkerThreadStart());} |
| 915 | |
| 916 | inline ULONG FireEtwThreadPoolWorkerThreadStart( |
| 917 | const unsigned int ActiveWorkerThreadCount, |
| 918 | const unsigned int RetiredWorkerThreadCount, |
| 919 | const unsigned short ClrInstanceID |
| 920 | ) |
| 921 | { |
| 922 | ULONG status = EventPipeWriteEventThreadPoolWorkerThreadStart(ActiveWorkerThreadCount,RetiredWorkerThreadCount,ClrInstanceID); |
| 923 | status &= FireEtXplatThreadPoolWorkerThreadStart(ActiveWorkerThreadCount,RetiredWorkerThreadCount,ClrInstanceID); |
| 924 | return status; |
| 925 | } |
| 926 | |
| 927 | inline BOOL EventEnabledThreadPoolWorkerThreadStop() {return EventPipeEventEnabledThreadPoolWorkerThreadStop() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledThreadPoolWorkerThreadStop());} |
| 928 | |
| 929 | inline ULONG FireEtwThreadPoolWorkerThreadStop( |
| 930 | const unsigned int ActiveWorkerThreadCount, |
| 931 | const unsigned int RetiredWorkerThreadCount, |
| 932 | const unsigned short ClrInstanceID |
| 933 | ) |
| 934 | { |
| 935 | ULONG status = EventPipeWriteEventThreadPoolWorkerThreadStop(ActiveWorkerThreadCount,RetiredWorkerThreadCount,ClrInstanceID); |
| 936 | status &= FireEtXplatThreadPoolWorkerThreadStop(ActiveWorkerThreadCount,RetiredWorkerThreadCount,ClrInstanceID); |
| 937 | return status; |
| 938 | } |
| 939 | |
| 940 | inline BOOL EventEnabledThreadPoolWorkerThreadRetirementStart() {return EventPipeEventEnabledThreadPoolWorkerThreadRetirementStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledThreadPoolWorkerThreadRetirementStart());} |
| 941 | |
| 942 | inline ULONG FireEtwThreadPoolWorkerThreadRetirementStart( |
| 943 | const unsigned int ActiveWorkerThreadCount, |
| 944 | const unsigned int RetiredWorkerThreadCount, |
| 945 | const unsigned short ClrInstanceID |
| 946 | ) |
| 947 | { |
| 948 | ULONG status = EventPipeWriteEventThreadPoolWorkerThreadRetirementStart(ActiveWorkerThreadCount,RetiredWorkerThreadCount,ClrInstanceID); |
| 949 | status &= FireEtXplatThreadPoolWorkerThreadRetirementStart(ActiveWorkerThreadCount,RetiredWorkerThreadCount,ClrInstanceID); |
| 950 | return status; |
| 951 | } |
| 952 | |
| 953 | inline BOOL EventEnabledThreadPoolWorkerThreadRetirementStop() {return EventPipeEventEnabledThreadPoolWorkerThreadRetirementStop() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledThreadPoolWorkerThreadRetirementStop());} |
| 954 | |
| 955 | inline ULONG FireEtwThreadPoolWorkerThreadRetirementStop( |
| 956 | const unsigned int ActiveWorkerThreadCount, |
| 957 | const unsigned int RetiredWorkerThreadCount, |
| 958 | const unsigned short ClrInstanceID |
| 959 | ) |
| 960 | { |
| 961 | ULONG status = EventPipeWriteEventThreadPoolWorkerThreadRetirementStop(ActiveWorkerThreadCount,RetiredWorkerThreadCount,ClrInstanceID); |
| 962 | status &= FireEtXplatThreadPoolWorkerThreadRetirementStop(ActiveWorkerThreadCount,RetiredWorkerThreadCount,ClrInstanceID); |
| 963 | return status; |
| 964 | } |
| 965 | |
| 966 | inline BOOL EventEnabledThreadPoolWorkerThreadAdjustmentSample() {return EventPipeEventEnabledThreadPoolWorkerThreadAdjustmentSample() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledThreadPoolWorkerThreadAdjustmentSample());} |
| 967 | |
| 968 | inline ULONG FireEtwThreadPoolWorkerThreadAdjustmentSample( |
| 969 | const double Throughput, |
| 970 | const unsigned short ClrInstanceID |
| 971 | ) |
| 972 | { |
| 973 | ULONG status = EventPipeWriteEventThreadPoolWorkerThreadAdjustmentSample(Throughput,ClrInstanceID); |
| 974 | status &= FireEtXplatThreadPoolWorkerThreadAdjustmentSample(Throughput,ClrInstanceID); |
| 975 | return status; |
| 976 | } |
| 977 | |
| 978 | inline BOOL EventEnabledThreadPoolWorkerThreadAdjustmentAdjustment() {return EventPipeEventEnabledThreadPoolWorkerThreadAdjustmentAdjustment() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledThreadPoolWorkerThreadAdjustmentAdjustment());} |
| 979 | |
| 980 | inline ULONG FireEtwThreadPoolWorkerThreadAdjustmentAdjustment( |
| 981 | const double AverageThroughput, |
| 982 | const unsigned int NewWorkerThreadCount, |
| 983 | const unsigned int Reason, |
| 984 | const unsigned short ClrInstanceID |
| 985 | ) |
| 986 | { |
| 987 | ULONG status = EventPipeWriteEventThreadPoolWorkerThreadAdjustmentAdjustment(AverageThroughput,NewWorkerThreadCount,Reason,ClrInstanceID); |
| 988 | status &= FireEtXplatThreadPoolWorkerThreadAdjustmentAdjustment(AverageThroughput,NewWorkerThreadCount,Reason,ClrInstanceID); |
| 989 | return status; |
| 990 | } |
| 991 | |
| 992 | inline BOOL EventEnabledThreadPoolWorkerThreadAdjustmentStats() {return EventPipeEventEnabledThreadPoolWorkerThreadAdjustmentStats() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledThreadPoolWorkerThreadAdjustmentStats());} |
| 993 | |
| 994 | inline ULONG FireEtwThreadPoolWorkerThreadAdjustmentStats( |
| 995 | const double Duration, |
| 996 | const double Throughput, |
| 997 | const double ThreadWave, |
| 998 | const double ThroughputWave, |
| 999 | const double ThroughputErrorEstimate, |
| 1000 | const double AverageThroughputErrorEstimate, |
| 1001 | const double ThroughputRatio, |
| 1002 | const double Confidence, |
| 1003 | const double NewControlSetting, |
| 1004 | const unsigned short NewThreadWaveMagnitude, |
| 1005 | const unsigned short ClrInstanceID |
| 1006 | ) |
| 1007 | { |
| 1008 | ULONG status = EventPipeWriteEventThreadPoolWorkerThreadAdjustmentStats(Duration,Throughput,ThreadWave,ThroughputWave,ThroughputErrorEstimate,AverageThroughputErrorEstimate,ThroughputRatio,Confidence,NewControlSetting,NewThreadWaveMagnitude,ClrInstanceID); |
| 1009 | status &= FireEtXplatThreadPoolWorkerThreadAdjustmentStats(Duration,Throughput,ThreadWave,ThroughputWave,ThroughputErrorEstimate,AverageThroughputErrorEstimate,ThroughputRatio,Confidence,NewControlSetting,NewThreadWaveMagnitude,ClrInstanceID); |
| 1010 | return status; |
| 1011 | } |
| 1012 | |
| 1013 | inline BOOL EventEnabledThreadPoolWorkerThreadWait() {return EventPipeEventEnabledThreadPoolWorkerThreadWait() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledThreadPoolWorkerThreadWait());} |
| 1014 | |
| 1015 | inline ULONG FireEtwThreadPoolWorkerThreadWait( |
| 1016 | const unsigned int ActiveWorkerThreadCount, |
| 1017 | const unsigned int RetiredWorkerThreadCount, |
| 1018 | const unsigned short ClrInstanceID |
| 1019 | ) |
| 1020 | { |
| 1021 | ULONG status = EventPipeWriteEventThreadPoolWorkerThreadWait(ActiveWorkerThreadCount,RetiredWorkerThreadCount,ClrInstanceID); |
| 1022 | status &= FireEtXplatThreadPoolWorkerThreadWait(ActiveWorkerThreadCount,RetiredWorkerThreadCount,ClrInstanceID); |
| 1023 | return status; |
| 1024 | } |
| 1025 | |
| 1026 | inline BOOL EventEnabledThreadPoolWorkingThreadCount() {return EventPipeEventEnabledThreadPoolWorkingThreadCount() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledThreadPoolWorkingThreadCount());} |
| 1027 | |
| 1028 | inline ULONG FireEtwThreadPoolWorkingThreadCount( |
| 1029 | const unsigned int Count, |
| 1030 | const unsigned short ClrInstanceID |
| 1031 | ) |
| 1032 | { |
| 1033 | ULONG status = EventPipeWriteEventThreadPoolWorkingThreadCount(Count,ClrInstanceID); |
| 1034 | status &= FireEtXplatThreadPoolWorkingThreadCount(Count,ClrInstanceID); |
| 1035 | return status; |
| 1036 | } |
| 1037 | |
| 1038 | inline BOOL EventEnabledThreadPoolEnqueue() {return EventPipeEventEnabledThreadPoolEnqueue() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledThreadPoolEnqueue());} |
| 1039 | |
| 1040 | inline ULONG FireEtwThreadPoolEnqueue( |
| 1041 | const void* WorkID, |
| 1042 | const unsigned short ClrInstanceID |
| 1043 | ) |
| 1044 | { |
| 1045 | ULONG status = EventPipeWriteEventThreadPoolEnqueue(WorkID,ClrInstanceID); |
| 1046 | status &= FireEtXplatThreadPoolEnqueue(WorkID,ClrInstanceID); |
| 1047 | return status; |
| 1048 | } |
| 1049 | |
| 1050 | inline BOOL EventEnabledThreadPoolDequeue() {return EventPipeEventEnabledThreadPoolDequeue() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledThreadPoolDequeue());} |
| 1051 | |
| 1052 | inline ULONG FireEtwThreadPoolDequeue( |
| 1053 | const void* WorkID, |
| 1054 | const unsigned short ClrInstanceID |
| 1055 | ) |
| 1056 | { |
| 1057 | ULONG status = EventPipeWriteEventThreadPoolDequeue(WorkID,ClrInstanceID); |
| 1058 | status &= FireEtXplatThreadPoolDequeue(WorkID,ClrInstanceID); |
| 1059 | return status; |
| 1060 | } |
| 1061 | |
| 1062 | inline BOOL EventEnabledThreadPoolIOEnqueue() {return EventPipeEventEnabledThreadPoolIOEnqueue() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledThreadPoolIOEnqueue());} |
| 1063 | |
| 1064 | inline ULONG FireEtwThreadPoolIOEnqueue( |
| 1065 | const void* NativeOverlapped, |
| 1066 | const void* Overlapped, |
| 1067 | const BOOL MultiDequeues, |
| 1068 | const unsigned short ClrInstanceID |
| 1069 | ) |
| 1070 | { |
| 1071 | ULONG status = EventPipeWriteEventThreadPoolIOEnqueue(NativeOverlapped,Overlapped,MultiDequeues,ClrInstanceID); |
| 1072 | status &= FireEtXplatThreadPoolIOEnqueue(NativeOverlapped,Overlapped,MultiDequeues,ClrInstanceID); |
| 1073 | return status; |
| 1074 | } |
| 1075 | |
| 1076 | inline BOOL EventEnabledThreadPoolIODequeue() {return EventPipeEventEnabledThreadPoolIODequeue() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledThreadPoolIODequeue());} |
| 1077 | |
| 1078 | inline ULONG FireEtwThreadPoolIODequeue( |
| 1079 | const void* NativeOverlapped, |
| 1080 | const void* Overlapped, |
| 1081 | const unsigned short ClrInstanceID |
| 1082 | ) |
| 1083 | { |
| 1084 | ULONG status = EventPipeWriteEventThreadPoolIODequeue(NativeOverlapped,Overlapped,ClrInstanceID); |
| 1085 | status &= FireEtXplatThreadPoolIODequeue(NativeOverlapped,Overlapped,ClrInstanceID); |
| 1086 | return status; |
| 1087 | } |
| 1088 | |
| 1089 | inline BOOL EventEnabledThreadPoolIOPack() {return EventPipeEventEnabledThreadPoolIOPack() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledThreadPoolIOPack());} |
| 1090 | |
| 1091 | inline ULONG FireEtwThreadPoolIOPack( |
| 1092 | const void* NativeOverlapped, |
| 1093 | const void* Overlapped, |
| 1094 | const unsigned short ClrInstanceID |
| 1095 | ) |
| 1096 | { |
| 1097 | ULONG status = EventPipeWriteEventThreadPoolIOPack(NativeOverlapped,Overlapped,ClrInstanceID); |
| 1098 | status &= FireEtXplatThreadPoolIOPack(NativeOverlapped,Overlapped,ClrInstanceID); |
| 1099 | return status; |
| 1100 | } |
| 1101 | |
| 1102 | inline BOOL EventEnabledThreadCreating() {return EventPipeEventEnabledThreadCreating() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledThreadCreating());} |
| 1103 | |
| 1104 | inline ULONG FireEtwThreadCreating( |
| 1105 | const void* ID, |
| 1106 | const unsigned short ClrInstanceID |
| 1107 | ) |
| 1108 | { |
| 1109 | ULONG status = EventPipeWriteEventThreadCreating(ID,ClrInstanceID); |
| 1110 | status &= FireEtXplatThreadCreating(ID,ClrInstanceID); |
| 1111 | return status; |
| 1112 | } |
| 1113 | |
| 1114 | inline BOOL EventEnabledThreadRunning() {return EventPipeEventEnabledThreadRunning() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledThreadRunning());} |
| 1115 | |
| 1116 | inline ULONG FireEtwThreadRunning( |
| 1117 | const void* ID, |
| 1118 | const unsigned short ClrInstanceID |
| 1119 | ) |
| 1120 | { |
| 1121 | ULONG status = EventPipeWriteEventThreadRunning(ID,ClrInstanceID); |
| 1122 | status &= FireEtXplatThreadRunning(ID,ClrInstanceID); |
| 1123 | return status; |
| 1124 | } |
| 1125 | |
| 1126 | inline BOOL EventEnabledExceptionThrown() {return EventPipeEventEnabledExceptionThrown() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledExceptionThrown());} |
| 1127 | |
| 1128 | inline ULONG FireEtwExceptionThrown( |
| 1129 | |
| 1130 | ) |
| 1131 | { |
| 1132 | ULONG status = EventPipeWriteEventExceptionThrown(); |
| 1133 | status &= FireEtXplatExceptionThrown(); |
| 1134 | return status; |
| 1135 | } |
| 1136 | |
| 1137 | inline BOOL EventEnabledExceptionThrown_V1() {return EventPipeEventEnabledExceptionThrown_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledExceptionThrown_V1());} |
| 1138 | |
| 1139 | inline ULONG FireEtwExceptionThrown_V1( |
| 1140 | PCWSTR ExceptionType, |
| 1141 | PCWSTR ExceptionMessage, |
| 1142 | const void* ExceptionEIP, |
| 1143 | const unsigned int ExceptionHRESULT, |
| 1144 | const unsigned short ExceptionFlags, |
| 1145 | const unsigned short ClrInstanceID |
| 1146 | ) |
| 1147 | { |
| 1148 | ULONG status = EventPipeWriteEventExceptionThrown_V1(ExceptionType,ExceptionMessage,ExceptionEIP,ExceptionHRESULT,ExceptionFlags,ClrInstanceID); |
| 1149 | status &= FireEtXplatExceptionThrown_V1(ExceptionType,ExceptionMessage,ExceptionEIP,ExceptionHRESULT,ExceptionFlags,ClrInstanceID); |
| 1150 | return status; |
| 1151 | } |
| 1152 | |
| 1153 | inline BOOL EventEnabledExceptionCatchStart() {return EventPipeEventEnabledExceptionCatchStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledExceptionCatchStart());} |
| 1154 | |
| 1155 | inline ULONG FireEtwExceptionCatchStart( |
| 1156 | const unsigned __int64 EntryEIP, |
| 1157 | const unsigned __int64 MethodID, |
| 1158 | PCWSTR MethodName, |
| 1159 | const unsigned short ClrInstanceID |
| 1160 | ) |
| 1161 | { |
| 1162 | ULONG status = EventPipeWriteEventExceptionCatchStart(EntryEIP,MethodID,MethodName,ClrInstanceID); |
| 1163 | status &= FireEtXplatExceptionCatchStart(EntryEIP,MethodID,MethodName,ClrInstanceID); |
| 1164 | return status; |
| 1165 | } |
| 1166 | |
| 1167 | inline BOOL EventEnabledExceptionCatchStop() {return EventPipeEventEnabledExceptionCatchStop() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledExceptionCatchStop());} |
| 1168 | |
| 1169 | inline ULONG FireEtwExceptionCatchStop( |
| 1170 | |
| 1171 | ) |
| 1172 | { |
| 1173 | ULONG status = EventPipeWriteEventExceptionCatchStop(); |
| 1174 | status &= FireEtXplatExceptionCatchStop(); |
| 1175 | return status; |
| 1176 | } |
| 1177 | |
| 1178 | inline BOOL EventEnabledExceptionFinallyStart() {return EventPipeEventEnabledExceptionFinallyStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledExceptionFinallyStart());} |
| 1179 | |
| 1180 | inline ULONG FireEtwExceptionFinallyStart( |
| 1181 | const unsigned __int64 EntryEIP, |
| 1182 | const unsigned __int64 MethodID, |
| 1183 | PCWSTR MethodName, |
| 1184 | const unsigned short ClrInstanceID |
| 1185 | ) |
| 1186 | { |
| 1187 | ULONG status = EventPipeWriteEventExceptionFinallyStart(EntryEIP,MethodID,MethodName,ClrInstanceID); |
| 1188 | status &= FireEtXplatExceptionFinallyStart(EntryEIP,MethodID,MethodName,ClrInstanceID); |
| 1189 | return status; |
| 1190 | } |
| 1191 | |
| 1192 | inline BOOL EventEnabledExceptionFinallyStop() {return EventPipeEventEnabledExceptionFinallyStop() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledExceptionFinallyStop());} |
| 1193 | |
| 1194 | inline ULONG FireEtwExceptionFinallyStop( |
| 1195 | |
| 1196 | ) |
| 1197 | { |
| 1198 | ULONG status = EventPipeWriteEventExceptionFinallyStop(); |
| 1199 | status &= FireEtXplatExceptionFinallyStop(); |
| 1200 | return status; |
| 1201 | } |
| 1202 | |
| 1203 | inline BOOL EventEnabledExceptionFilterStart() {return EventPipeEventEnabledExceptionFilterStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledExceptionFilterStart());} |
| 1204 | |
| 1205 | inline ULONG FireEtwExceptionFilterStart( |
| 1206 | const unsigned __int64 EntryEIP, |
| 1207 | const unsigned __int64 MethodID, |
| 1208 | PCWSTR MethodName, |
| 1209 | const unsigned short ClrInstanceID |
| 1210 | ) |
| 1211 | { |
| 1212 | ULONG status = EventPipeWriteEventExceptionFilterStart(EntryEIP,MethodID,MethodName,ClrInstanceID); |
| 1213 | status &= FireEtXplatExceptionFilterStart(EntryEIP,MethodID,MethodName,ClrInstanceID); |
| 1214 | return status; |
| 1215 | } |
| 1216 | |
| 1217 | inline BOOL EventEnabledExceptionFilterStop() {return EventPipeEventEnabledExceptionFilterStop() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledExceptionFilterStop());} |
| 1218 | |
| 1219 | inline ULONG FireEtwExceptionFilterStop( |
| 1220 | |
| 1221 | ) |
| 1222 | { |
| 1223 | ULONG status = EventPipeWriteEventExceptionFilterStop(); |
| 1224 | status &= FireEtXplatExceptionFilterStop(); |
| 1225 | return status; |
| 1226 | } |
| 1227 | |
| 1228 | inline BOOL EventEnabledExceptionThrownStop() {return EventPipeEventEnabledExceptionThrownStop() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledExceptionThrownStop());} |
| 1229 | |
| 1230 | inline ULONG FireEtwExceptionThrownStop( |
| 1231 | |
| 1232 | ) |
| 1233 | { |
| 1234 | ULONG status = EventPipeWriteEventExceptionThrownStop(); |
| 1235 | status &= FireEtXplatExceptionThrownStop(); |
| 1236 | return status; |
| 1237 | } |
| 1238 | |
| 1239 | inline BOOL EventEnabledContention() {return EventPipeEventEnabledContention() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledContention());} |
| 1240 | |
| 1241 | inline ULONG FireEtwContention( |
| 1242 | |
| 1243 | ) |
| 1244 | { |
| 1245 | ULONG status = EventPipeWriteEventContention(); |
| 1246 | status &= FireEtXplatContention(); |
| 1247 | return status; |
| 1248 | } |
| 1249 | |
| 1250 | inline BOOL EventEnabledContentionStart_V1() {return EventPipeEventEnabledContentionStart_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledContentionStart_V1());} |
| 1251 | |
| 1252 | inline ULONG FireEtwContentionStart_V1( |
| 1253 | const unsigned char ContentionFlags, |
| 1254 | const unsigned short ClrInstanceID |
| 1255 | ) |
| 1256 | { |
| 1257 | ULONG status = EventPipeWriteEventContentionStart_V1(ContentionFlags,ClrInstanceID); |
| 1258 | status &= FireEtXplatContentionStart_V1(ContentionFlags,ClrInstanceID); |
| 1259 | return status; |
| 1260 | } |
| 1261 | |
| 1262 | inline BOOL EventEnabledContentionStop() {return EventPipeEventEnabledContentionStop() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledContentionStop());} |
| 1263 | |
| 1264 | inline ULONG FireEtwContentionStop( |
| 1265 | const unsigned char ContentionFlags, |
| 1266 | const unsigned short ClrInstanceID |
| 1267 | ) |
| 1268 | { |
| 1269 | ULONG status = EventPipeWriteEventContentionStop(ContentionFlags,ClrInstanceID); |
| 1270 | status &= FireEtXplatContentionStop(ContentionFlags,ClrInstanceID); |
| 1271 | return status; |
| 1272 | } |
| 1273 | |
| 1274 | inline BOOL EventEnabledCLRStackWalk() {return EventPipeEventEnabledCLRStackWalk() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledCLRStackWalk());} |
| 1275 | |
| 1276 | inline ULONG FireEtwCLRStackWalk( |
| 1277 | const unsigned short ClrInstanceID, |
| 1278 | const unsigned char Reserved1, |
| 1279 | const unsigned char Reserved2, |
| 1280 | const unsigned int FrameCount, |
| 1281 | const void** Stack |
| 1282 | ) |
| 1283 | { |
| 1284 | ULONG status = EventPipeWriteEventCLRStackWalk(ClrInstanceID,Reserved1,Reserved2,FrameCount,Stack); |
| 1285 | status &= FireEtXplatCLRStackWalk(ClrInstanceID,Reserved1,Reserved2,FrameCount,Stack); |
| 1286 | return status; |
| 1287 | } |
| 1288 | |
| 1289 | inline BOOL EventEnabledAppDomainMemAllocated() {return EventPipeEventEnabledAppDomainMemAllocated() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAppDomainMemAllocated());} |
| 1290 | |
| 1291 | inline ULONG FireEtwAppDomainMemAllocated( |
| 1292 | const unsigned __int64 AppDomainID, |
| 1293 | const unsigned __int64 Allocated, |
| 1294 | const unsigned short ClrInstanceID |
| 1295 | ) |
| 1296 | { |
| 1297 | ULONG status = EventPipeWriteEventAppDomainMemAllocated(AppDomainID,Allocated,ClrInstanceID); |
| 1298 | status &= FireEtXplatAppDomainMemAllocated(AppDomainID,Allocated,ClrInstanceID); |
| 1299 | return status; |
| 1300 | } |
| 1301 | |
| 1302 | inline BOOL EventEnabledAppDomainMemSurvived() {return EventPipeEventEnabledAppDomainMemSurvived() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAppDomainMemSurvived());} |
| 1303 | |
| 1304 | inline ULONG FireEtwAppDomainMemSurvived( |
| 1305 | const unsigned __int64 AppDomainID, |
| 1306 | const unsigned __int64 Survived, |
| 1307 | const unsigned __int64 ProcessSurvived, |
| 1308 | const unsigned short ClrInstanceID |
| 1309 | ) |
| 1310 | { |
| 1311 | ULONG status = EventPipeWriteEventAppDomainMemSurvived(AppDomainID,Survived,ProcessSurvived,ClrInstanceID); |
| 1312 | status &= FireEtXplatAppDomainMemSurvived(AppDomainID,Survived,ProcessSurvived,ClrInstanceID); |
| 1313 | return status; |
| 1314 | } |
| 1315 | |
| 1316 | inline BOOL EventEnabledThreadCreated() {return EventPipeEventEnabledThreadCreated() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledThreadCreated());} |
| 1317 | |
| 1318 | inline ULONG FireEtwThreadCreated( |
| 1319 | const unsigned __int64 ManagedThreadID, |
| 1320 | const unsigned __int64 AppDomainID, |
| 1321 | const unsigned int Flags, |
| 1322 | const unsigned int ManagedThreadIndex, |
| 1323 | const unsigned int OSThreadID, |
| 1324 | const unsigned short ClrInstanceID |
| 1325 | ) |
| 1326 | { |
| 1327 | ULONG status = EventPipeWriteEventThreadCreated(ManagedThreadID,AppDomainID,Flags,ManagedThreadIndex,OSThreadID,ClrInstanceID); |
| 1328 | status &= FireEtXplatThreadCreated(ManagedThreadID,AppDomainID,Flags,ManagedThreadIndex,OSThreadID,ClrInstanceID); |
| 1329 | return status; |
| 1330 | } |
| 1331 | |
| 1332 | inline BOOL EventEnabledThreadTerminated() {return EventPipeEventEnabledThreadTerminated() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledThreadTerminated());} |
| 1333 | |
| 1334 | inline ULONG FireEtwThreadTerminated( |
| 1335 | const unsigned __int64 ManagedThreadID, |
| 1336 | const unsigned __int64 AppDomainID, |
| 1337 | const unsigned short ClrInstanceID |
| 1338 | ) |
| 1339 | { |
| 1340 | ULONG status = EventPipeWriteEventThreadTerminated(ManagedThreadID,AppDomainID,ClrInstanceID); |
| 1341 | status &= FireEtXplatThreadTerminated(ManagedThreadID,AppDomainID,ClrInstanceID); |
| 1342 | return status; |
| 1343 | } |
| 1344 | |
| 1345 | inline BOOL EventEnabledThreadDomainEnter() {return EventPipeEventEnabledThreadDomainEnter() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledThreadDomainEnter());} |
| 1346 | |
| 1347 | inline ULONG FireEtwThreadDomainEnter( |
| 1348 | const unsigned __int64 ManagedThreadID, |
| 1349 | const unsigned __int64 AppDomainID, |
| 1350 | const unsigned short ClrInstanceID |
| 1351 | ) |
| 1352 | { |
| 1353 | ULONG status = EventPipeWriteEventThreadDomainEnter(ManagedThreadID,AppDomainID,ClrInstanceID); |
| 1354 | status &= FireEtXplatThreadDomainEnter(ManagedThreadID,AppDomainID,ClrInstanceID); |
| 1355 | return status; |
| 1356 | } |
| 1357 | |
| 1358 | inline BOOL EventEnabledILStubGenerated() {return EventPipeEventEnabledILStubGenerated() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledILStubGenerated());} |
| 1359 | |
| 1360 | inline ULONG FireEtwILStubGenerated( |
| 1361 | const unsigned short ClrInstanceID, |
| 1362 | const unsigned __int64 ModuleID, |
| 1363 | const unsigned __int64 StubMethodID, |
| 1364 | const unsigned int StubFlags, |
| 1365 | const unsigned int ManagedInteropMethodToken, |
| 1366 | PCWSTR ManagedInteropMethodNamespace, |
| 1367 | PCWSTR ManagedInteropMethodName, |
| 1368 | PCWSTR ManagedInteropMethodSignature, |
| 1369 | PCWSTR NativeMethodSignature, |
| 1370 | PCWSTR StubMethodSignature, |
| 1371 | PCWSTR StubMethodILCode |
| 1372 | ) |
| 1373 | { |
| 1374 | ULONG status = EventPipeWriteEventILStubGenerated(ClrInstanceID,ModuleID,StubMethodID,StubFlags,ManagedInteropMethodToken,ManagedInteropMethodNamespace,ManagedInteropMethodName,ManagedInteropMethodSignature,NativeMethodSignature,StubMethodSignature,StubMethodILCode); |
| 1375 | status &= FireEtXplatILStubGenerated(ClrInstanceID,ModuleID,StubMethodID,StubFlags,ManagedInteropMethodToken,ManagedInteropMethodNamespace,ManagedInteropMethodName,ManagedInteropMethodSignature,NativeMethodSignature,StubMethodSignature,StubMethodILCode); |
| 1376 | return status; |
| 1377 | } |
| 1378 | |
| 1379 | inline BOOL EventEnabledILStubCacheHit() {return EventPipeEventEnabledILStubCacheHit() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledILStubCacheHit());} |
| 1380 | |
| 1381 | inline ULONG FireEtwILStubCacheHit( |
| 1382 | const unsigned short ClrInstanceID, |
| 1383 | const unsigned __int64 ModuleID, |
| 1384 | const unsigned __int64 StubMethodID, |
| 1385 | const unsigned int ManagedInteropMethodToken, |
| 1386 | PCWSTR ManagedInteropMethodNamespace, |
| 1387 | PCWSTR ManagedInteropMethodName, |
| 1388 | PCWSTR ManagedInteropMethodSignature |
| 1389 | ) |
| 1390 | { |
| 1391 | ULONG status = EventPipeWriteEventILStubCacheHit(ClrInstanceID,ModuleID,StubMethodID,ManagedInteropMethodToken,ManagedInteropMethodNamespace,ManagedInteropMethodName,ManagedInteropMethodSignature); |
| 1392 | status &= FireEtXplatILStubCacheHit(ClrInstanceID,ModuleID,StubMethodID,ManagedInteropMethodToken,ManagedInteropMethodNamespace,ManagedInteropMethodName,ManagedInteropMethodSignature); |
| 1393 | return status; |
| 1394 | } |
| 1395 | |
| 1396 | inline BOOL EventEnabledDCStartCompleteV2() {return EventPipeEventEnabledDCStartCompleteV2() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledDCStartCompleteV2());} |
| 1397 | |
| 1398 | inline ULONG FireEtwDCStartCompleteV2( |
| 1399 | |
| 1400 | ) |
| 1401 | { |
| 1402 | ULONG status = EventPipeWriteEventDCStartCompleteV2(); |
| 1403 | status &= FireEtXplatDCStartCompleteV2(); |
| 1404 | return status; |
| 1405 | } |
| 1406 | |
| 1407 | inline BOOL EventEnabledDCEndCompleteV2() {return EventPipeEventEnabledDCEndCompleteV2() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledDCEndCompleteV2());} |
| 1408 | |
| 1409 | inline ULONG FireEtwDCEndCompleteV2( |
| 1410 | |
| 1411 | ) |
| 1412 | { |
| 1413 | ULONG status = EventPipeWriteEventDCEndCompleteV2(); |
| 1414 | status &= FireEtXplatDCEndCompleteV2(); |
| 1415 | return status; |
| 1416 | } |
| 1417 | |
| 1418 | inline BOOL EventEnabledMethodDCStartV2() {return EventPipeEventEnabledMethodDCStartV2() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodDCStartV2());} |
| 1419 | |
| 1420 | inline ULONG FireEtwMethodDCStartV2( |
| 1421 | const unsigned __int64 MethodID, |
| 1422 | const unsigned __int64 ModuleID, |
| 1423 | const unsigned __int64 MethodStartAddress, |
| 1424 | const unsigned int MethodSize, |
| 1425 | const unsigned int MethodToken, |
| 1426 | const unsigned int MethodFlags |
| 1427 | ) |
| 1428 | { |
| 1429 | ULONG status = EventPipeWriteEventMethodDCStartV2(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags); |
| 1430 | status &= FireEtXplatMethodDCStartV2(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags); |
| 1431 | return status; |
| 1432 | } |
| 1433 | |
| 1434 | inline BOOL EventEnabledMethodDCEndV2() {return EventPipeEventEnabledMethodDCEndV2() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodDCEndV2());} |
| 1435 | |
| 1436 | inline ULONG FireEtwMethodDCEndV2( |
| 1437 | const unsigned __int64 MethodID, |
| 1438 | const unsigned __int64 ModuleID, |
| 1439 | const unsigned __int64 MethodStartAddress, |
| 1440 | const unsigned int MethodSize, |
| 1441 | const unsigned int MethodToken, |
| 1442 | const unsigned int MethodFlags |
| 1443 | ) |
| 1444 | { |
| 1445 | ULONG status = EventPipeWriteEventMethodDCEndV2(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags); |
| 1446 | status &= FireEtXplatMethodDCEndV2(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags); |
| 1447 | return status; |
| 1448 | } |
| 1449 | |
| 1450 | inline BOOL EventEnabledMethodDCStartVerboseV2() {return EventPipeEventEnabledMethodDCStartVerboseV2() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodDCStartVerboseV2());} |
| 1451 | |
| 1452 | inline ULONG FireEtwMethodDCStartVerboseV2( |
| 1453 | const unsigned __int64 MethodID, |
| 1454 | const unsigned __int64 ModuleID, |
| 1455 | const unsigned __int64 MethodStartAddress, |
| 1456 | const unsigned int MethodSize, |
| 1457 | const unsigned int MethodToken, |
| 1458 | const unsigned int MethodFlags, |
| 1459 | PCWSTR MethodNamespace, |
| 1460 | PCWSTR MethodName, |
| 1461 | PCWSTR MethodSignature |
| 1462 | ) |
| 1463 | { |
| 1464 | ULONG status = EventPipeWriteEventMethodDCStartVerboseV2(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature); |
| 1465 | status &= FireEtXplatMethodDCStartVerboseV2(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature); |
| 1466 | return status; |
| 1467 | } |
| 1468 | |
| 1469 | inline BOOL EventEnabledMethodDCEndVerboseV2() {return EventPipeEventEnabledMethodDCEndVerboseV2() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodDCEndVerboseV2());} |
| 1470 | |
| 1471 | inline ULONG FireEtwMethodDCEndVerboseV2( |
| 1472 | const unsigned __int64 MethodID, |
| 1473 | const unsigned __int64 ModuleID, |
| 1474 | const unsigned __int64 MethodStartAddress, |
| 1475 | const unsigned int MethodSize, |
| 1476 | const unsigned int MethodToken, |
| 1477 | const unsigned int MethodFlags, |
| 1478 | PCWSTR MethodNamespace, |
| 1479 | PCWSTR MethodName, |
| 1480 | PCWSTR MethodSignature |
| 1481 | ) |
| 1482 | { |
| 1483 | ULONG status = EventPipeWriteEventMethodDCEndVerboseV2(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature); |
| 1484 | status &= FireEtXplatMethodDCEndVerboseV2(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature); |
| 1485 | return status; |
| 1486 | } |
| 1487 | |
| 1488 | inline BOOL EventEnabledMethodLoad() {return EventPipeEventEnabledMethodLoad() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodLoad());} |
| 1489 | |
| 1490 | inline ULONG FireEtwMethodLoad( |
| 1491 | const unsigned __int64 MethodID, |
| 1492 | const unsigned __int64 ModuleID, |
| 1493 | const unsigned __int64 MethodStartAddress, |
| 1494 | const unsigned int MethodSize, |
| 1495 | const unsigned int MethodToken, |
| 1496 | const unsigned int MethodFlags |
| 1497 | ) |
| 1498 | { |
| 1499 | ULONG status = EventPipeWriteEventMethodLoad(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags); |
| 1500 | status &= FireEtXplatMethodLoad(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags); |
| 1501 | return status; |
| 1502 | } |
| 1503 | |
| 1504 | inline BOOL EventEnabledMethodLoad_V1() {return EventPipeEventEnabledMethodLoad_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodLoad_V1());} |
| 1505 | |
| 1506 | inline ULONG FireEtwMethodLoad_V1( |
| 1507 | const unsigned __int64 MethodID, |
| 1508 | const unsigned __int64 ModuleID, |
| 1509 | const unsigned __int64 MethodStartAddress, |
| 1510 | const unsigned int MethodSize, |
| 1511 | const unsigned int MethodToken, |
| 1512 | const unsigned int MethodFlags, |
| 1513 | const unsigned short ClrInstanceID |
| 1514 | ) |
| 1515 | { |
| 1516 | ULONG status = EventPipeWriteEventMethodLoad_V1(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,ClrInstanceID); |
| 1517 | status &= FireEtXplatMethodLoad_V1(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,ClrInstanceID); |
| 1518 | return status; |
| 1519 | } |
| 1520 | |
| 1521 | inline BOOL EventEnabledMethodLoad_V2() {return EventPipeEventEnabledMethodLoad_V2() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodLoad_V2());} |
| 1522 | |
| 1523 | inline ULONG FireEtwMethodLoad_V2( |
| 1524 | const unsigned __int64 MethodID, |
| 1525 | const unsigned __int64 ModuleID, |
| 1526 | const unsigned __int64 MethodStartAddress, |
| 1527 | const unsigned int MethodSize, |
| 1528 | const unsigned int MethodToken, |
| 1529 | const unsigned int MethodFlags, |
| 1530 | const unsigned short ClrInstanceID, |
| 1531 | const unsigned __int64 ReJITID |
| 1532 | ) |
| 1533 | { |
| 1534 | ULONG status = EventPipeWriteEventMethodLoad_V2(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,ClrInstanceID,ReJITID); |
| 1535 | status &= FireEtXplatMethodLoad_V2(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,ClrInstanceID,ReJITID); |
| 1536 | return status; |
| 1537 | } |
| 1538 | |
| 1539 | inline BOOL EventEnabledMethodUnload() {return EventPipeEventEnabledMethodUnload() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodUnload());} |
| 1540 | |
| 1541 | inline ULONG FireEtwMethodUnload( |
| 1542 | const unsigned __int64 MethodID, |
| 1543 | const unsigned __int64 ModuleID, |
| 1544 | const unsigned __int64 MethodStartAddress, |
| 1545 | const unsigned int MethodSize, |
| 1546 | const unsigned int MethodToken, |
| 1547 | const unsigned int MethodFlags |
| 1548 | ) |
| 1549 | { |
| 1550 | ULONG status = EventPipeWriteEventMethodUnload(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags); |
| 1551 | status &= FireEtXplatMethodUnload(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags); |
| 1552 | return status; |
| 1553 | } |
| 1554 | |
| 1555 | inline BOOL EventEnabledMethodUnload_V1() {return EventPipeEventEnabledMethodUnload_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodUnload_V1());} |
| 1556 | |
| 1557 | inline ULONG FireEtwMethodUnload_V1( |
| 1558 | const unsigned __int64 MethodID, |
| 1559 | const unsigned __int64 ModuleID, |
| 1560 | const unsigned __int64 MethodStartAddress, |
| 1561 | const unsigned int MethodSize, |
| 1562 | const unsigned int MethodToken, |
| 1563 | const unsigned int MethodFlags, |
| 1564 | const unsigned short ClrInstanceID |
| 1565 | ) |
| 1566 | { |
| 1567 | ULONG status = EventPipeWriteEventMethodUnload_V1(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,ClrInstanceID); |
| 1568 | status &= FireEtXplatMethodUnload_V1(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,ClrInstanceID); |
| 1569 | return status; |
| 1570 | } |
| 1571 | |
| 1572 | inline BOOL EventEnabledMethodUnload_V2() {return EventPipeEventEnabledMethodUnload_V2() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodUnload_V2());} |
| 1573 | |
| 1574 | inline ULONG FireEtwMethodUnload_V2( |
| 1575 | const unsigned __int64 MethodID, |
| 1576 | const unsigned __int64 ModuleID, |
| 1577 | const unsigned __int64 MethodStartAddress, |
| 1578 | const unsigned int MethodSize, |
| 1579 | const unsigned int MethodToken, |
| 1580 | const unsigned int MethodFlags, |
| 1581 | const unsigned short ClrInstanceID, |
| 1582 | const unsigned __int64 ReJITID |
| 1583 | ) |
| 1584 | { |
| 1585 | ULONG status = EventPipeWriteEventMethodUnload_V2(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,ClrInstanceID,ReJITID); |
| 1586 | status &= FireEtXplatMethodUnload_V2(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,ClrInstanceID,ReJITID); |
| 1587 | return status; |
| 1588 | } |
| 1589 | |
| 1590 | inline BOOL EventEnabledMethodLoadVerbose() {return EventPipeEventEnabledMethodLoadVerbose() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodLoadVerbose());} |
| 1591 | |
| 1592 | inline ULONG FireEtwMethodLoadVerbose( |
| 1593 | const unsigned __int64 MethodID, |
| 1594 | const unsigned __int64 ModuleID, |
| 1595 | const unsigned __int64 MethodStartAddress, |
| 1596 | const unsigned int MethodSize, |
| 1597 | const unsigned int MethodToken, |
| 1598 | const unsigned int MethodFlags, |
| 1599 | PCWSTR MethodNamespace, |
| 1600 | PCWSTR MethodName, |
| 1601 | PCWSTR MethodSignature |
| 1602 | ) |
| 1603 | { |
| 1604 | ULONG status = EventPipeWriteEventMethodLoadVerbose(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature); |
| 1605 | status &= FireEtXplatMethodLoadVerbose(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature); |
| 1606 | return status; |
| 1607 | } |
| 1608 | |
| 1609 | inline BOOL EventEnabledMethodLoadVerbose_V1() {return EventPipeEventEnabledMethodLoadVerbose_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodLoadVerbose_V1());} |
| 1610 | |
| 1611 | inline ULONG FireEtwMethodLoadVerbose_V1( |
| 1612 | const unsigned __int64 MethodID, |
| 1613 | const unsigned __int64 ModuleID, |
| 1614 | const unsigned __int64 MethodStartAddress, |
| 1615 | const unsigned int MethodSize, |
| 1616 | const unsigned int MethodToken, |
| 1617 | const unsigned int MethodFlags, |
| 1618 | PCWSTR MethodNamespace, |
| 1619 | PCWSTR MethodName, |
| 1620 | PCWSTR MethodSignature, |
| 1621 | const unsigned short ClrInstanceID |
| 1622 | ) |
| 1623 | { |
| 1624 | ULONG status = EventPipeWriteEventMethodLoadVerbose_V1(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature,ClrInstanceID); |
| 1625 | status &= FireEtXplatMethodLoadVerbose_V1(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature,ClrInstanceID); |
| 1626 | return status; |
| 1627 | } |
| 1628 | |
| 1629 | inline BOOL EventEnabledMethodLoadVerbose_V2() {return EventPipeEventEnabledMethodLoadVerbose_V2() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodLoadVerbose_V2());} |
| 1630 | |
| 1631 | inline ULONG FireEtwMethodLoadVerbose_V2( |
| 1632 | const unsigned __int64 MethodID, |
| 1633 | const unsigned __int64 ModuleID, |
| 1634 | const unsigned __int64 MethodStartAddress, |
| 1635 | const unsigned int MethodSize, |
| 1636 | const unsigned int MethodToken, |
| 1637 | const unsigned int MethodFlags, |
| 1638 | PCWSTR MethodNamespace, |
| 1639 | PCWSTR MethodName, |
| 1640 | PCWSTR MethodSignature, |
| 1641 | const unsigned short ClrInstanceID, |
| 1642 | const unsigned __int64 ReJITID |
| 1643 | ) |
| 1644 | { |
| 1645 | ULONG status = EventPipeWriteEventMethodLoadVerbose_V2(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature,ClrInstanceID,ReJITID); |
| 1646 | status &= FireEtXplatMethodLoadVerbose_V2(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature,ClrInstanceID,ReJITID); |
| 1647 | return status; |
| 1648 | } |
| 1649 | |
| 1650 | inline BOOL EventEnabledMethodUnloadVerbose() {return EventPipeEventEnabledMethodUnloadVerbose() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodUnloadVerbose());} |
| 1651 | |
| 1652 | inline ULONG FireEtwMethodUnloadVerbose( |
| 1653 | const unsigned __int64 MethodID, |
| 1654 | const unsigned __int64 ModuleID, |
| 1655 | const unsigned __int64 MethodStartAddress, |
| 1656 | const unsigned int MethodSize, |
| 1657 | const unsigned int MethodToken, |
| 1658 | const unsigned int MethodFlags, |
| 1659 | PCWSTR MethodNamespace, |
| 1660 | PCWSTR MethodName, |
| 1661 | PCWSTR MethodSignature |
| 1662 | ) |
| 1663 | { |
| 1664 | ULONG status = EventPipeWriteEventMethodUnloadVerbose(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature); |
| 1665 | status &= FireEtXplatMethodUnloadVerbose(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature); |
| 1666 | return status; |
| 1667 | } |
| 1668 | |
| 1669 | inline BOOL EventEnabledMethodUnloadVerbose_V1() {return EventPipeEventEnabledMethodUnloadVerbose_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodUnloadVerbose_V1());} |
| 1670 | |
| 1671 | inline ULONG FireEtwMethodUnloadVerbose_V1( |
| 1672 | const unsigned __int64 MethodID, |
| 1673 | const unsigned __int64 ModuleID, |
| 1674 | const unsigned __int64 MethodStartAddress, |
| 1675 | const unsigned int MethodSize, |
| 1676 | const unsigned int MethodToken, |
| 1677 | const unsigned int MethodFlags, |
| 1678 | PCWSTR MethodNamespace, |
| 1679 | PCWSTR MethodName, |
| 1680 | PCWSTR MethodSignature, |
| 1681 | const unsigned short ClrInstanceID |
| 1682 | ) |
| 1683 | { |
| 1684 | ULONG status = EventPipeWriteEventMethodUnloadVerbose_V1(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature,ClrInstanceID); |
| 1685 | status &= FireEtXplatMethodUnloadVerbose_V1(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature,ClrInstanceID); |
| 1686 | return status; |
| 1687 | } |
| 1688 | |
| 1689 | inline BOOL EventEnabledMethodUnloadVerbose_V2() {return EventPipeEventEnabledMethodUnloadVerbose_V2() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodUnloadVerbose_V2());} |
| 1690 | |
| 1691 | inline ULONG FireEtwMethodUnloadVerbose_V2( |
| 1692 | const unsigned __int64 MethodID, |
| 1693 | const unsigned __int64 ModuleID, |
| 1694 | const unsigned __int64 MethodStartAddress, |
| 1695 | const unsigned int MethodSize, |
| 1696 | const unsigned int MethodToken, |
| 1697 | const unsigned int MethodFlags, |
| 1698 | PCWSTR MethodNamespace, |
| 1699 | PCWSTR MethodName, |
| 1700 | PCWSTR MethodSignature, |
| 1701 | const unsigned short ClrInstanceID, |
| 1702 | const unsigned __int64 ReJITID |
| 1703 | ) |
| 1704 | { |
| 1705 | ULONG status = EventPipeWriteEventMethodUnloadVerbose_V2(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature,ClrInstanceID,ReJITID); |
| 1706 | status &= FireEtXplatMethodUnloadVerbose_V2(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature,ClrInstanceID,ReJITID); |
| 1707 | return status; |
| 1708 | } |
| 1709 | |
| 1710 | inline BOOL EventEnabledMethodJittingStarted() {return EventPipeEventEnabledMethodJittingStarted() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodJittingStarted());} |
| 1711 | |
| 1712 | inline ULONG FireEtwMethodJittingStarted( |
| 1713 | const unsigned __int64 MethodID, |
| 1714 | const unsigned __int64 ModuleID, |
| 1715 | const unsigned int MethodToken, |
| 1716 | const unsigned int MethodILSize, |
| 1717 | PCWSTR MethodNamespace, |
| 1718 | PCWSTR MethodName, |
| 1719 | PCWSTR MethodSignature |
| 1720 | ) |
| 1721 | { |
| 1722 | ULONG status = EventPipeWriteEventMethodJittingStarted(MethodID,ModuleID,MethodToken,MethodILSize,MethodNamespace,MethodName,MethodSignature); |
| 1723 | status &= FireEtXplatMethodJittingStarted(MethodID,ModuleID,MethodToken,MethodILSize,MethodNamespace,MethodName,MethodSignature); |
| 1724 | return status; |
| 1725 | } |
| 1726 | |
| 1727 | inline BOOL EventEnabledMethodJittingStarted_V1() {return EventPipeEventEnabledMethodJittingStarted_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodJittingStarted_V1());} |
| 1728 | |
| 1729 | inline ULONG FireEtwMethodJittingStarted_V1( |
| 1730 | const unsigned __int64 MethodID, |
| 1731 | const unsigned __int64 ModuleID, |
| 1732 | const unsigned int MethodToken, |
| 1733 | const unsigned int MethodILSize, |
| 1734 | PCWSTR MethodNamespace, |
| 1735 | PCWSTR MethodName, |
| 1736 | PCWSTR MethodSignature, |
| 1737 | const unsigned short ClrInstanceID |
| 1738 | ) |
| 1739 | { |
| 1740 | ULONG status = EventPipeWriteEventMethodJittingStarted_V1(MethodID,ModuleID,MethodToken,MethodILSize,MethodNamespace,MethodName,MethodSignature,ClrInstanceID); |
| 1741 | status &= FireEtXplatMethodJittingStarted_V1(MethodID,ModuleID,MethodToken,MethodILSize,MethodNamespace,MethodName,MethodSignature,ClrInstanceID); |
| 1742 | return status; |
| 1743 | } |
| 1744 | |
| 1745 | inline BOOL EventEnabledMethodJitInliningSucceeded() {return EventPipeEventEnabledMethodJitInliningSucceeded() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodJitInliningSucceeded());} |
| 1746 | |
| 1747 | inline ULONG FireEtwMethodJitInliningSucceeded( |
| 1748 | PCWSTR MethodBeingCompiledNamespace, |
| 1749 | PCWSTR MethodBeingCompiledName, |
| 1750 | PCWSTR MethodBeingCompiledNameSignature, |
| 1751 | PCWSTR InlinerNamespace, |
| 1752 | PCWSTR InlinerName, |
| 1753 | PCWSTR InlinerNameSignature, |
| 1754 | PCWSTR InlineeNamespace, |
| 1755 | PCWSTR InlineeName, |
| 1756 | PCWSTR InlineeNameSignature, |
| 1757 | const unsigned short ClrInstanceID |
| 1758 | ) |
| 1759 | { |
| 1760 | ULONG status = EventPipeWriteEventMethodJitInliningSucceeded(MethodBeingCompiledNamespace,MethodBeingCompiledName,MethodBeingCompiledNameSignature,InlinerNamespace,InlinerName,InlinerNameSignature,InlineeNamespace,InlineeName,InlineeNameSignature,ClrInstanceID); |
| 1761 | status &= FireEtXplatMethodJitInliningSucceeded(MethodBeingCompiledNamespace,MethodBeingCompiledName,MethodBeingCompiledNameSignature,InlinerNamespace,InlinerName,InlinerNameSignature,InlineeNamespace,InlineeName,InlineeNameSignature,ClrInstanceID); |
| 1762 | return status; |
| 1763 | } |
| 1764 | |
| 1765 | inline BOOL EventEnabledMethodJitInliningFailedAnsi() {return EventPipeEventEnabledMethodJitInliningFailedAnsi() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodJitInliningFailedAnsi());} |
| 1766 | |
| 1767 | inline ULONG FireEtwMethodJitInliningFailedAnsi( |
| 1768 | PCWSTR MethodBeingCompiledNamespace, |
| 1769 | PCWSTR MethodBeingCompiledName, |
| 1770 | PCWSTR MethodBeingCompiledNameSignature, |
| 1771 | PCWSTR InlinerNamespace, |
| 1772 | PCWSTR InlinerName, |
| 1773 | PCWSTR InlinerNameSignature, |
| 1774 | PCWSTR InlineeNamespace, |
| 1775 | PCWSTR InlineeName, |
| 1776 | PCWSTR InlineeNameSignature, |
| 1777 | const BOOL FailAlways, |
| 1778 | LPCSTR FailReason, |
| 1779 | const unsigned short ClrInstanceID |
| 1780 | ) |
| 1781 | { |
| 1782 | ULONG status = EventPipeWriteEventMethodJitInliningFailedAnsi(MethodBeingCompiledNamespace,MethodBeingCompiledName,MethodBeingCompiledNameSignature,InlinerNamespace,InlinerName,InlinerNameSignature,InlineeNamespace,InlineeName,InlineeNameSignature,FailAlways,FailReason,ClrInstanceID); |
| 1783 | status &= FireEtXplatMethodJitInliningFailedAnsi(MethodBeingCompiledNamespace,MethodBeingCompiledName,MethodBeingCompiledNameSignature,InlinerNamespace,InlinerName,InlinerNameSignature,InlineeNamespace,InlineeName,InlineeNameSignature,FailAlways,FailReason,ClrInstanceID); |
| 1784 | return status; |
| 1785 | } |
| 1786 | |
| 1787 | inline BOOL EventEnabledMethodJitTailCallSucceeded() {return EventPipeEventEnabledMethodJitTailCallSucceeded() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodJitTailCallSucceeded());} |
| 1788 | |
| 1789 | inline ULONG FireEtwMethodJitTailCallSucceeded( |
| 1790 | PCWSTR MethodBeingCompiledNamespace, |
| 1791 | PCWSTR MethodBeingCompiledName, |
| 1792 | PCWSTR MethodBeingCompiledNameSignature, |
| 1793 | PCWSTR CallerNamespace, |
| 1794 | PCWSTR CallerName, |
| 1795 | PCWSTR CallerNameSignature, |
| 1796 | PCWSTR CalleeNamespace, |
| 1797 | PCWSTR CalleeName, |
| 1798 | PCWSTR CalleeNameSignature, |
| 1799 | const BOOL TailPrefix, |
| 1800 | const unsigned int TailCallType, |
| 1801 | const unsigned short ClrInstanceID |
| 1802 | ) |
| 1803 | { |
| 1804 | ULONG status = EventPipeWriteEventMethodJitTailCallSucceeded(MethodBeingCompiledNamespace,MethodBeingCompiledName,MethodBeingCompiledNameSignature,CallerNamespace,CallerName,CallerNameSignature,CalleeNamespace,CalleeName,CalleeNameSignature,TailPrefix,TailCallType,ClrInstanceID); |
| 1805 | status &= FireEtXplatMethodJitTailCallSucceeded(MethodBeingCompiledNamespace,MethodBeingCompiledName,MethodBeingCompiledNameSignature,CallerNamespace,CallerName,CallerNameSignature,CalleeNamespace,CalleeName,CalleeNameSignature,TailPrefix,TailCallType,ClrInstanceID); |
| 1806 | return status; |
| 1807 | } |
| 1808 | |
| 1809 | inline BOOL EventEnabledMethodJitTailCallFailedAnsi() {return EventPipeEventEnabledMethodJitTailCallFailedAnsi() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodJitTailCallFailedAnsi());} |
| 1810 | |
| 1811 | inline ULONG FireEtwMethodJitTailCallFailedAnsi( |
| 1812 | PCWSTR MethodBeingCompiledNamespace, |
| 1813 | PCWSTR MethodBeingCompiledName, |
| 1814 | PCWSTR MethodBeingCompiledNameSignature, |
| 1815 | PCWSTR CallerNamespace, |
| 1816 | PCWSTR CallerName, |
| 1817 | PCWSTR CallerNameSignature, |
| 1818 | PCWSTR CalleeNamespace, |
| 1819 | PCWSTR CalleeName, |
| 1820 | PCWSTR CalleeNameSignature, |
| 1821 | const BOOL TailPrefix, |
| 1822 | LPCSTR FailReason, |
| 1823 | const unsigned short ClrInstanceID |
| 1824 | ) |
| 1825 | { |
| 1826 | ULONG status = EventPipeWriteEventMethodJitTailCallFailedAnsi(MethodBeingCompiledNamespace,MethodBeingCompiledName,MethodBeingCompiledNameSignature,CallerNamespace,CallerName,CallerNameSignature,CalleeNamespace,CalleeName,CalleeNameSignature,TailPrefix,FailReason,ClrInstanceID); |
| 1827 | status &= FireEtXplatMethodJitTailCallFailedAnsi(MethodBeingCompiledNamespace,MethodBeingCompiledName,MethodBeingCompiledNameSignature,CallerNamespace,CallerName,CallerNameSignature,CalleeNamespace,CalleeName,CalleeNameSignature,TailPrefix,FailReason,ClrInstanceID); |
| 1828 | return status; |
| 1829 | } |
| 1830 | |
| 1831 | inline BOOL EventEnabledMethodILToNativeMap() {return EventPipeEventEnabledMethodILToNativeMap() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodILToNativeMap());} |
| 1832 | |
| 1833 | inline ULONG FireEtwMethodILToNativeMap( |
| 1834 | const unsigned __int64 MethodID, |
| 1835 | const unsigned __int64 ReJITID, |
| 1836 | const unsigned char MethodExtent, |
| 1837 | const unsigned short CountOfMapEntries, |
| 1838 | const unsigned int* ILOffsets, |
| 1839 | const unsigned int* NativeOffsets, |
| 1840 | const unsigned short ClrInstanceID |
| 1841 | ) |
| 1842 | { |
| 1843 | ULONG status = EventPipeWriteEventMethodILToNativeMap(MethodID,ReJITID,MethodExtent,CountOfMapEntries,ILOffsets,NativeOffsets,ClrInstanceID); |
| 1844 | status &= FireEtXplatMethodILToNativeMap(MethodID,ReJITID,MethodExtent,CountOfMapEntries,ILOffsets,NativeOffsets,ClrInstanceID); |
| 1845 | return status; |
| 1846 | } |
| 1847 | |
| 1848 | inline BOOL EventEnabledMethodJitTailCallFailed() {return EventPipeEventEnabledMethodJitTailCallFailed() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodJitTailCallFailed());} |
| 1849 | |
| 1850 | inline ULONG FireEtwMethodJitTailCallFailed( |
| 1851 | PCWSTR MethodBeingCompiledNamespace, |
| 1852 | PCWSTR MethodBeingCompiledName, |
| 1853 | PCWSTR MethodBeingCompiledNameSignature, |
| 1854 | PCWSTR CallerNamespace, |
| 1855 | PCWSTR CallerName, |
| 1856 | PCWSTR CallerNameSignature, |
| 1857 | PCWSTR CalleeNamespace, |
| 1858 | PCWSTR CalleeName, |
| 1859 | PCWSTR CalleeNameSignature, |
| 1860 | const BOOL TailPrefix, |
| 1861 | PCWSTR FailReason, |
| 1862 | const unsigned short ClrInstanceID |
| 1863 | ) |
| 1864 | { |
| 1865 | ULONG status = EventPipeWriteEventMethodJitTailCallFailed(MethodBeingCompiledNamespace,MethodBeingCompiledName,MethodBeingCompiledNameSignature,CallerNamespace,CallerName,CallerNameSignature,CalleeNamespace,CalleeName,CalleeNameSignature,TailPrefix,FailReason,ClrInstanceID); |
| 1866 | status &= FireEtXplatMethodJitTailCallFailed(MethodBeingCompiledNamespace,MethodBeingCompiledName,MethodBeingCompiledNameSignature,CallerNamespace,CallerName,CallerNameSignature,CalleeNamespace,CalleeName,CalleeNameSignature,TailPrefix,FailReason,ClrInstanceID); |
| 1867 | return status; |
| 1868 | } |
| 1869 | |
| 1870 | inline BOOL EventEnabledMethodJitInliningFailed() {return EventPipeEventEnabledMethodJitInliningFailed() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodJitInliningFailed());} |
| 1871 | |
| 1872 | inline ULONG FireEtwMethodJitInliningFailed( |
| 1873 | PCWSTR MethodBeingCompiledNamespace, |
| 1874 | PCWSTR MethodBeingCompiledName, |
| 1875 | PCWSTR MethodBeingCompiledNameSignature, |
| 1876 | PCWSTR InlinerNamespace, |
| 1877 | PCWSTR InlinerName, |
| 1878 | PCWSTR InlinerNameSignature, |
| 1879 | PCWSTR InlineeNamespace, |
| 1880 | PCWSTR InlineeName, |
| 1881 | PCWSTR InlineeNameSignature, |
| 1882 | const BOOL FailAlways, |
| 1883 | PCWSTR FailReason, |
| 1884 | const unsigned short ClrInstanceID |
| 1885 | ) |
| 1886 | { |
| 1887 | ULONG status = EventPipeWriteEventMethodJitInliningFailed(MethodBeingCompiledNamespace,MethodBeingCompiledName,MethodBeingCompiledNameSignature,InlinerNamespace,InlinerName,InlinerNameSignature,InlineeNamespace,InlineeName,InlineeNameSignature,FailAlways,FailReason,ClrInstanceID); |
| 1888 | status &= FireEtXplatMethodJitInliningFailed(MethodBeingCompiledNamespace,MethodBeingCompiledName,MethodBeingCompiledNameSignature,InlinerNamespace,InlinerName,InlinerNameSignature,InlineeNamespace,InlineeName,InlineeNameSignature,FailAlways,FailReason,ClrInstanceID); |
| 1889 | return status; |
| 1890 | } |
| 1891 | |
| 1892 | inline BOOL EventEnabledModuleDCStartV2() {return EventPipeEventEnabledModuleDCStartV2() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledModuleDCStartV2());} |
| 1893 | |
| 1894 | inline ULONG FireEtwModuleDCStartV2( |
| 1895 | const unsigned __int64 ModuleID, |
| 1896 | const unsigned __int64 AssemblyID, |
| 1897 | const unsigned int ModuleFlags, |
| 1898 | const unsigned int Reserved1, |
| 1899 | PCWSTR ModuleILPath, |
| 1900 | PCWSTR ModuleNativePath |
| 1901 | ) |
| 1902 | { |
| 1903 | ULONG status = EventPipeWriteEventModuleDCStartV2(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath); |
| 1904 | status &= FireEtXplatModuleDCStartV2(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath); |
| 1905 | return status; |
| 1906 | } |
| 1907 | |
| 1908 | inline BOOL EventEnabledModuleDCEndV2() {return EventPipeEventEnabledModuleDCEndV2() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledModuleDCEndV2());} |
| 1909 | |
| 1910 | inline ULONG FireEtwModuleDCEndV2( |
| 1911 | const unsigned __int64 ModuleID, |
| 1912 | const unsigned __int64 AssemblyID, |
| 1913 | const unsigned int ModuleFlags, |
| 1914 | const unsigned int Reserved1, |
| 1915 | PCWSTR ModuleILPath, |
| 1916 | PCWSTR ModuleNativePath |
| 1917 | ) |
| 1918 | { |
| 1919 | ULONG status = EventPipeWriteEventModuleDCEndV2(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath); |
| 1920 | status &= FireEtXplatModuleDCEndV2(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath); |
| 1921 | return status; |
| 1922 | } |
| 1923 | |
| 1924 | inline BOOL EventEnabledDomainModuleLoad() {return EventPipeEventEnabledDomainModuleLoad() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledDomainModuleLoad());} |
| 1925 | |
| 1926 | inline ULONG FireEtwDomainModuleLoad( |
| 1927 | const unsigned __int64 ModuleID, |
| 1928 | const unsigned __int64 AssemblyID, |
| 1929 | const unsigned __int64 AppDomainID, |
| 1930 | const unsigned int ModuleFlags, |
| 1931 | const unsigned int Reserved1, |
| 1932 | PCWSTR ModuleILPath, |
| 1933 | PCWSTR ModuleNativePath |
| 1934 | ) |
| 1935 | { |
| 1936 | ULONG status = EventPipeWriteEventDomainModuleLoad(ModuleID,AssemblyID,AppDomainID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath); |
| 1937 | status &= FireEtXplatDomainModuleLoad(ModuleID,AssemblyID,AppDomainID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath); |
| 1938 | return status; |
| 1939 | } |
| 1940 | |
| 1941 | inline BOOL EventEnabledDomainModuleLoad_V1() {return EventPipeEventEnabledDomainModuleLoad_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledDomainModuleLoad_V1());} |
| 1942 | |
| 1943 | inline ULONG FireEtwDomainModuleLoad_V1( |
| 1944 | const unsigned __int64 ModuleID, |
| 1945 | const unsigned __int64 AssemblyID, |
| 1946 | const unsigned __int64 AppDomainID, |
| 1947 | const unsigned int ModuleFlags, |
| 1948 | const unsigned int Reserved1, |
| 1949 | PCWSTR ModuleILPath, |
| 1950 | PCWSTR ModuleNativePath, |
| 1951 | const unsigned short ClrInstanceID |
| 1952 | ) |
| 1953 | { |
| 1954 | ULONG status = EventPipeWriteEventDomainModuleLoad_V1(ModuleID,AssemblyID,AppDomainID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath,ClrInstanceID); |
| 1955 | status &= FireEtXplatDomainModuleLoad_V1(ModuleID,AssemblyID,AppDomainID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath,ClrInstanceID); |
| 1956 | return status; |
| 1957 | } |
| 1958 | |
| 1959 | inline BOOL EventEnabledModuleLoad() {return EventPipeEventEnabledModuleLoad() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledModuleLoad());} |
| 1960 | |
| 1961 | inline ULONG FireEtwModuleLoad( |
| 1962 | const unsigned __int64 ModuleID, |
| 1963 | const unsigned __int64 AssemblyID, |
| 1964 | const unsigned int ModuleFlags, |
| 1965 | const unsigned int Reserved1, |
| 1966 | PCWSTR ModuleILPath, |
| 1967 | PCWSTR ModuleNativePath |
| 1968 | ) |
| 1969 | { |
| 1970 | ULONG status = EventPipeWriteEventModuleLoad(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath); |
| 1971 | status &= FireEtXplatModuleLoad(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath); |
| 1972 | return status; |
| 1973 | } |
| 1974 | |
| 1975 | inline BOOL EventEnabledModuleLoad_V1() {return EventPipeEventEnabledModuleLoad_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledModuleLoad_V1());} |
| 1976 | |
| 1977 | inline ULONG FireEtwModuleLoad_V1( |
| 1978 | const unsigned __int64 ModuleID, |
| 1979 | const unsigned __int64 AssemblyID, |
| 1980 | const unsigned int ModuleFlags, |
| 1981 | const unsigned int Reserved1, |
| 1982 | PCWSTR ModuleILPath, |
| 1983 | PCWSTR ModuleNativePath, |
| 1984 | const unsigned short ClrInstanceID |
| 1985 | ) |
| 1986 | { |
| 1987 | ULONG status = EventPipeWriteEventModuleLoad_V1(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath,ClrInstanceID); |
| 1988 | status &= FireEtXplatModuleLoad_V1(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath,ClrInstanceID); |
| 1989 | return status; |
| 1990 | } |
| 1991 | |
| 1992 | inline BOOL EventEnabledModuleLoad_V2() {return EventPipeEventEnabledModuleLoad_V2() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledModuleLoad_V2());} |
| 1993 | |
| 1994 | inline ULONG FireEtwModuleLoad_V2( |
| 1995 | const unsigned __int64 ModuleID, |
| 1996 | const unsigned __int64 AssemblyID, |
| 1997 | const unsigned int ModuleFlags, |
| 1998 | const unsigned int Reserved1, |
| 1999 | PCWSTR ModuleILPath, |
| 2000 | PCWSTR ModuleNativePath, |
| 2001 | const unsigned short ClrInstanceID, |
| 2002 | const GUID* ManagedPdbSignature, |
| 2003 | const unsigned int ManagedPdbAge, |
| 2004 | PCWSTR ManagedPdbBuildPath, |
| 2005 | const GUID* NativePdbSignature, |
| 2006 | const unsigned int NativePdbAge, |
| 2007 | PCWSTR NativePdbBuildPath |
| 2008 | ) |
| 2009 | { |
| 2010 | ULONG status = EventPipeWriteEventModuleLoad_V2(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath,ClrInstanceID,ManagedPdbSignature,ManagedPdbAge,ManagedPdbBuildPath,NativePdbSignature,NativePdbAge,NativePdbBuildPath); |
| 2011 | status &= FireEtXplatModuleLoad_V2(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath,ClrInstanceID,ManagedPdbSignature,ManagedPdbAge,ManagedPdbBuildPath,NativePdbSignature,NativePdbAge,NativePdbBuildPath); |
| 2012 | return status; |
| 2013 | } |
| 2014 | |
| 2015 | inline BOOL EventEnabledModuleUnload() {return EventPipeEventEnabledModuleUnload() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledModuleUnload());} |
| 2016 | |
| 2017 | inline ULONG FireEtwModuleUnload( |
| 2018 | const unsigned __int64 ModuleID, |
| 2019 | const unsigned __int64 AssemblyID, |
| 2020 | const unsigned int ModuleFlags, |
| 2021 | const unsigned int Reserved1, |
| 2022 | PCWSTR ModuleILPath, |
| 2023 | PCWSTR ModuleNativePath |
| 2024 | ) |
| 2025 | { |
| 2026 | ULONG status = EventPipeWriteEventModuleUnload(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath); |
| 2027 | status &= FireEtXplatModuleUnload(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath); |
| 2028 | return status; |
| 2029 | } |
| 2030 | |
| 2031 | inline BOOL EventEnabledModuleUnload_V1() {return EventPipeEventEnabledModuleUnload_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledModuleUnload_V1());} |
| 2032 | |
| 2033 | inline ULONG FireEtwModuleUnload_V1( |
| 2034 | const unsigned __int64 ModuleID, |
| 2035 | const unsigned __int64 AssemblyID, |
| 2036 | const unsigned int ModuleFlags, |
| 2037 | const unsigned int Reserved1, |
| 2038 | PCWSTR ModuleILPath, |
| 2039 | PCWSTR ModuleNativePath, |
| 2040 | const unsigned short ClrInstanceID |
| 2041 | ) |
| 2042 | { |
| 2043 | ULONG status = EventPipeWriteEventModuleUnload_V1(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath,ClrInstanceID); |
| 2044 | status &= FireEtXplatModuleUnload_V1(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath,ClrInstanceID); |
| 2045 | return status; |
| 2046 | } |
| 2047 | |
| 2048 | inline BOOL EventEnabledModuleUnload_V2() {return EventPipeEventEnabledModuleUnload_V2() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledModuleUnload_V2());} |
| 2049 | |
| 2050 | inline ULONG FireEtwModuleUnload_V2( |
| 2051 | const unsigned __int64 ModuleID, |
| 2052 | const unsigned __int64 AssemblyID, |
| 2053 | const unsigned int ModuleFlags, |
| 2054 | const unsigned int Reserved1, |
| 2055 | PCWSTR ModuleILPath, |
| 2056 | PCWSTR ModuleNativePath, |
| 2057 | const unsigned short ClrInstanceID, |
| 2058 | const GUID* ManagedPdbSignature, |
| 2059 | const unsigned int ManagedPdbAge, |
| 2060 | PCWSTR ManagedPdbBuildPath, |
| 2061 | const GUID* NativePdbSignature, |
| 2062 | const unsigned int NativePdbAge, |
| 2063 | PCWSTR NativePdbBuildPath |
| 2064 | ) |
| 2065 | { |
| 2066 | ULONG status = EventPipeWriteEventModuleUnload_V2(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath,ClrInstanceID,ManagedPdbSignature,ManagedPdbAge,ManagedPdbBuildPath,NativePdbSignature,NativePdbAge,NativePdbBuildPath); |
| 2067 | status &= FireEtXplatModuleUnload_V2(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath,ClrInstanceID,ManagedPdbSignature,ManagedPdbAge,ManagedPdbBuildPath,NativePdbSignature,NativePdbAge,NativePdbBuildPath); |
| 2068 | return status; |
| 2069 | } |
| 2070 | |
| 2071 | inline BOOL EventEnabledAssemblyLoad() {return EventPipeEventEnabledAssemblyLoad() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAssemblyLoad());} |
| 2072 | |
| 2073 | inline ULONG FireEtwAssemblyLoad( |
| 2074 | const unsigned __int64 AssemblyID, |
| 2075 | const unsigned __int64 AppDomainID, |
| 2076 | const unsigned int AssemblyFlags, |
| 2077 | PCWSTR FullyQualifiedAssemblyName |
| 2078 | ) |
| 2079 | { |
| 2080 | ULONG status = EventPipeWriteEventAssemblyLoad(AssemblyID,AppDomainID,AssemblyFlags,FullyQualifiedAssemblyName); |
| 2081 | status &= FireEtXplatAssemblyLoad(AssemblyID,AppDomainID,AssemblyFlags,FullyQualifiedAssemblyName); |
| 2082 | return status; |
| 2083 | } |
| 2084 | |
| 2085 | inline BOOL EventEnabledAssemblyLoad_V1() {return EventPipeEventEnabledAssemblyLoad_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAssemblyLoad_V1());} |
| 2086 | |
| 2087 | inline ULONG FireEtwAssemblyLoad_V1( |
| 2088 | const unsigned __int64 AssemblyID, |
| 2089 | const unsigned __int64 AppDomainID, |
| 2090 | const unsigned __int64 BindingID, |
| 2091 | const unsigned int AssemblyFlags, |
| 2092 | PCWSTR FullyQualifiedAssemblyName, |
| 2093 | const unsigned short ClrInstanceID |
| 2094 | ) |
| 2095 | { |
| 2096 | ULONG status = EventPipeWriteEventAssemblyLoad_V1(AssemblyID,AppDomainID,BindingID,AssemblyFlags,FullyQualifiedAssemblyName,ClrInstanceID); |
| 2097 | status &= FireEtXplatAssemblyLoad_V1(AssemblyID,AppDomainID,BindingID,AssemblyFlags,FullyQualifiedAssemblyName,ClrInstanceID); |
| 2098 | return status; |
| 2099 | } |
| 2100 | |
| 2101 | inline BOOL EventEnabledAssemblyUnload() {return EventPipeEventEnabledAssemblyUnload() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAssemblyUnload());} |
| 2102 | |
| 2103 | inline ULONG FireEtwAssemblyUnload( |
| 2104 | const unsigned __int64 AssemblyID, |
| 2105 | const unsigned __int64 AppDomainID, |
| 2106 | const unsigned int AssemblyFlags, |
| 2107 | PCWSTR FullyQualifiedAssemblyName |
| 2108 | ) |
| 2109 | { |
| 2110 | ULONG status = EventPipeWriteEventAssemblyUnload(AssemblyID,AppDomainID,AssemblyFlags,FullyQualifiedAssemblyName); |
| 2111 | status &= FireEtXplatAssemblyUnload(AssemblyID,AppDomainID,AssemblyFlags,FullyQualifiedAssemblyName); |
| 2112 | return status; |
| 2113 | } |
| 2114 | |
| 2115 | inline BOOL EventEnabledAssemblyUnload_V1() {return EventPipeEventEnabledAssemblyUnload_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAssemblyUnload_V1());} |
| 2116 | |
| 2117 | inline ULONG FireEtwAssemblyUnload_V1( |
| 2118 | const unsigned __int64 AssemblyID, |
| 2119 | const unsigned __int64 AppDomainID, |
| 2120 | const unsigned __int64 BindingID, |
| 2121 | const unsigned int AssemblyFlags, |
| 2122 | PCWSTR FullyQualifiedAssemblyName, |
| 2123 | const unsigned short ClrInstanceID |
| 2124 | ) |
| 2125 | { |
| 2126 | ULONG status = EventPipeWriteEventAssemblyUnload_V1(AssemblyID,AppDomainID,BindingID,AssemblyFlags,FullyQualifiedAssemblyName,ClrInstanceID); |
| 2127 | status &= FireEtXplatAssemblyUnload_V1(AssemblyID,AppDomainID,BindingID,AssemblyFlags,FullyQualifiedAssemblyName,ClrInstanceID); |
| 2128 | return status; |
| 2129 | } |
| 2130 | |
| 2131 | inline BOOL EventEnabledAppDomainLoad() {return EventPipeEventEnabledAppDomainLoad() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAppDomainLoad());} |
| 2132 | |
| 2133 | inline ULONG FireEtwAppDomainLoad( |
| 2134 | const unsigned __int64 AppDomainID, |
| 2135 | const unsigned int AppDomainFlags, |
| 2136 | PCWSTR AppDomainName |
| 2137 | ) |
| 2138 | { |
| 2139 | ULONG status = EventPipeWriteEventAppDomainLoad(AppDomainID,AppDomainFlags,AppDomainName); |
| 2140 | status &= FireEtXplatAppDomainLoad(AppDomainID,AppDomainFlags,AppDomainName); |
| 2141 | return status; |
| 2142 | } |
| 2143 | |
| 2144 | inline BOOL EventEnabledAppDomainLoad_V1() {return EventPipeEventEnabledAppDomainLoad_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAppDomainLoad_V1());} |
| 2145 | |
| 2146 | inline ULONG FireEtwAppDomainLoad_V1( |
| 2147 | const unsigned __int64 AppDomainID, |
| 2148 | const unsigned int AppDomainFlags, |
| 2149 | PCWSTR AppDomainName, |
| 2150 | const unsigned int AppDomainIndex, |
| 2151 | const unsigned short ClrInstanceID |
| 2152 | ) |
| 2153 | { |
| 2154 | ULONG status = EventPipeWriteEventAppDomainLoad_V1(AppDomainID,AppDomainFlags,AppDomainName,AppDomainIndex,ClrInstanceID); |
| 2155 | status &= FireEtXplatAppDomainLoad_V1(AppDomainID,AppDomainFlags,AppDomainName,AppDomainIndex,ClrInstanceID); |
| 2156 | return status; |
| 2157 | } |
| 2158 | |
| 2159 | inline BOOL EventEnabledAppDomainUnload() {return EventPipeEventEnabledAppDomainUnload() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAppDomainUnload());} |
| 2160 | |
| 2161 | inline ULONG FireEtwAppDomainUnload( |
| 2162 | const unsigned __int64 AppDomainID, |
| 2163 | const unsigned int AppDomainFlags, |
| 2164 | PCWSTR AppDomainName |
| 2165 | ) |
| 2166 | { |
| 2167 | ULONG status = EventPipeWriteEventAppDomainUnload(AppDomainID,AppDomainFlags,AppDomainName); |
| 2168 | status &= FireEtXplatAppDomainUnload(AppDomainID,AppDomainFlags,AppDomainName); |
| 2169 | return status; |
| 2170 | } |
| 2171 | |
| 2172 | inline BOOL EventEnabledAppDomainUnload_V1() {return EventPipeEventEnabledAppDomainUnload_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAppDomainUnload_V1());} |
| 2173 | |
| 2174 | inline ULONG FireEtwAppDomainUnload_V1( |
| 2175 | const unsigned __int64 AppDomainID, |
| 2176 | const unsigned int AppDomainFlags, |
| 2177 | PCWSTR AppDomainName, |
| 2178 | const unsigned int AppDomainIndex, |
| 2179 | const unsigned short ClrInstanceID |
| 2180 | ) |
| 2181 | { |
| 2182 | ULONG status = EventPipeWriteEventAppDomainUnload_V1(AppDomainID,AppDomainFlags,AppDomainName,AppDomainIndex,ClrInstanceID); |
| 2183 | status &= FireEtXplatAppDomainUnload_V1(AppDomainID,AppDomainFlags,AppDomainName,AppDomainIndex,ClrInstanceID); |
| 2184 | return status; |
| 2185 | } |
| 2186 | |
| 2187 | inline BOOL EventEnabledModuleRangeLoad() {return EventPipeEventEnabledModuleRangeLoad() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledModuleRangeLoad());} |
| 2188 | |
| 2189 | inline ULONG FireEtwModuleRangeLoad( |
| 2190 | const unsigned short ClrInstanceID, |
| 2191 | const unsigned __int64 ModuleID, |
| 2192 | const unsigned int RangeBegin, |
| 2193 | const unsigned int RangeSize, |
| 2194 | const unsigned char RangeType |
| 2195 | ) |
| 2196 | { |
| 2197 | ULONG status = EventPipeWriteEventModuleRangeLoad(ClrInstanceID,ModuleID,RangeBegin,RangeSize,RangeType); |
| 2198 | status &= FireEtXplatModuleRangeLoad(ClrInstanceID,ModuleID,RangeBegin,RangeSize,RangeType); |
| 2199 | return status; |
| 2200 | } |
| 2201 | |
| 2202 | inline BOOL EventEnabledStrongNameVerificationStart() {return EventPipeEventEnabledStrongNameVerificationStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledStrongNameVerificationStart());} |
| 2203 | |
| 2204 | inline ULONG FireEtwStrongNameVerificationStart( |
| 2205 | const unsigned int VerificationFlags, |
| 2206 | const unsigned int ErrorCode, |
| 2207 | PCWSTR FullyQualifiedAssemblyName |
| 2208 | ) |
| 2209 | { |
| 2210 | ULONG status = EventPipeWriteEventStrongNameVerificationStart(VerificationFlags,ErrorCode,FullyQualifiedAssemblyName); |
| 2211 | status &= FireEtXplatStrongNameVerificationStart(VerificationFlags,ErrorCode,FullyQualifiedAssemblyName); |
| 2212 | return status; |
| 2213 | } |
| 2214 | |
| 2215 | inline BOOL EventEnabledStrongNameVerificationStart_V1() {return EventPipeEventEnabledStrongNameVerificationStart_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledStrongNameVerificationStart_V1());} |
| 2216 | |
| 2217 | inline ULONG FireEtwStrongNameVerificationStart_V1( |
| 2218 | const unsigned int VerificationFlags, |
| 2219 | const unsigned int ErrorCode, |
| 2220 | PCWSTR FullyQualifiedAssemblyName, |
| 2221 | const unsigned short ClrInstanceID |
| 2222 | ) |
| 2223 | { |
| 2224 | ULONG status = EventPipeWriteEventStrongNameVerificationStart_V1(VerificationFlags,ErrorCode,FullyQualifiedAssemblyName,ClrInstanceID); |
| 2225 | status &= FireEtXplatStrongNameVerificationStart_V1(VerificationFlags,ErrorCode,FullyQualifiedAssemblyName,ClrInstanceID); |
| 2226 | return status; |
| 2227 | } |
| 2228 | |
| 2229 | inline BOOL EventEnabledStrongNameVerificationStop() {return EventPipeEventEnabledStrongNameVerificationStop() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledStrongNameVerificationStop());} |
| 2230 | |
| 2231 | inline ULONG FireEtwStrongNameVerificationStop( |
| 2232 | const unsigned int VerificationFlags, |
| 2233 | const unsigned int ErrorCode, |
| 2234 | PCWSTR FullyQualifiedAssemblyName |
| 2235 | ) |
| 2236 | { |
| 2237 | ULONG status = EventPipeWriteEventStrongNameVerificationStop(VerificationFlags,ErrorCode,FullyQualifiedAssemblyName); |
| 2238 | status &= FireEtXplatStrongNameVerificationStop(VerificationFlags,ErrorCode,FullyQualifiedAssemblyName); |
| 2239 | return status; |
| 2240 | } |
| 2241 | |
| 2242 | inline BOOL EventEnabledStrongNameVerificationStop_V1() {return EventPipeEventEnabledStrongNameVerificationStop_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledStrongNameVerificationStop_V1());} |
| 2243 | |
| 2244 | inline ULONG FireEtwStrongNameVerificationStop_V1( |
| 2245 | const unsigned int VerificationFlags, |
| 2246 | const unsigned int ErrorCode, |
| 2247 | PCWSTR FullyQualifiedAssemblyName, |
| 2248 | const unsigned short ClrInstanceID |
| 2249 | ) |
| 2250 | { |
| 2251 | ULONG status = EventPipeWriteEventStrongNameVerificationStop_V1(VerificationFlags,ErrorCode,FullyQualifiedAssemblyName,ClrInstanceID); |
| 2252 | status &= FireEtXplatStrongNameVerificationStop_V1(VerificationFlags,ErrorCode,FullyQualifiedAssemblyName,ClrInstanceID); |
| 2253 | return status; |
| 2254 | } |
| 2255 | |
| 2256 | inline BOOL EventEnabledAuthenticodeVerificationStart() {return EventPipeEventEnabledAuthenticodeVerificationStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAuthenticodeVerificationStart());} |
| 2257 | |
| 2258 | inline ULONG FireEtwAuthenticodeVerificationStart( |
| 2259 | const unsigned int VerificationFlags, |
| 2260 | const unsigned int ErrorCode, |
| 2261 | PCWSTR ModulePath |
| 2262 | ) |
| 2263 | { |
| 2264 | ULONG status = EventPipeWriteEventAuthenticodeVerificationStart(VerificationFlags,ErrorCode,ModulePath); |
| 2265 | status &= FireEtXplatAuthenticodeVerificationStart(VerificationFlags,ErrorCode,ModulePath); |
| 2266 | return status; |
| 2267 | } |
| 2268 | |
| 2269 | inline BOOL EventEnabledAuthenticodeVerificationStart_V1() {return EventPipeEventEnabledAuthenticodeVerificationStart_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAuthenticodeVerificationStart_V1());} |
| 2270 | |
| 2271 | inline ULONG FireEtwAuthenticodeVerificationStart_V1( |
| 2272 | const unsigned int VerificationFlags, |
| 2273 | const unsigned int ErrorCode, |
| 2274 | PCWSTR ModulePath, |
| 2275 | const unsigned short ClrInstanceID |
| 2276 | ) |
| 2277 | { |
| 2278 | ULONG status = EventPipeWriteEventAuthenticodeVerificationStart_V1(VerificationFlags,ErrorCode,ModulePath,ClrInstanceID); |
| 2279 | status &= FireEtXplatAuthenticodeVerificationStart_V1(VerificationFlags,ErrorCode,ModulePath,ClrInstanceID); |
| 2280 | return status; |
| 2281 | } |
| 2282 | |
| 2283 | inline BOOL EventEnabledAuthenticodeVerificationStop() {return EventPipeEventEnabledAuthenticodeVerificationStop() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAuthenticodeVerificationStop());} |
| 2284 | |
| 2285 | inline ULONG FireEtwAuthenticodeVerificationStop( |
| 2286 | const unsigned int VerificationFlags, |
| 2287 | const unsigned int ErrorCode, |
| 2288 | PCWSTR ModulePath |
| 2289 | ) |
| 2290 | { |
| 2291 | ULONG status = EventPipeWriteEventAuthenticodeVerificationStop(VerificationFlags,ErrorCode,ModulePath); |
| 2292 | status &= FireEtXplatAuthenticodeVerificationStop(VerificationFlags,ErrorCode,ModulePath); |
| 2293 | return status; |
| 2294 | } |
| 2295 | |
| 2296 | inline BOOL EventEnabledAuthenticodeVerificationStop_V1() {return EventPipeEventEnabledAuthenticodeVerificationStop_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAuthenticodeVerificationStop_V1());} |
| 2297 | |
| 2298 | inline ULONG FireEtwAuthenticodeVerificationStop_V1( |
| 2299 | const unsigned int VerificationFlags, |
| 2300 | const unsigned int ErrorCode, |
| 2301 | PCWSTR ModulePath, |
| 2302 | const unsigned short ClrInstanceID |
| 2303 | ) |
| 2304 | { |
| 2305 | ULONG status = EventPipeWriteEventAuthenticodeVerificationStop_V1(VerificationFlags,ErrorCode,ModulePath,ClrInstanceID); |
| 2306 | status &= FireEtXplatAuthenticodeVerificationStop_V1(VerificationFlags,ErrorCode,ModulePath,ClrInstanceID); |
| 2307 | return status; |
| 2308 | } |
| 2309 | |
| 2310 | inline BOOL EventEnabledRuntimeInformationStart() {return EventPipeEventEnabledRuntimeInformationStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledRuntimeInformationStart());} |
| 2311 | |
| 2312 | inline ULONG FireEtwRuntimeInformationStart( |
| 2313 | const unsigned short ClrInstanceID, |
| 2314 | const unsigned short Sku, |
| 2315 | const unsigned short BclMajorVersion, |
| 2316 | const unsigned short BclMinorVersion, |
| 2317 | const unsigned short BclBuildNumber, |
| 2318 | const unsigned short BclQfeNumber, |
| 2319 | const unsigned short VMMajorVersion, |
| 2320 | const unsigned short VMMinorVersion, |
| 2321 | const unsigned short VMBuildNumber, |
| 2322 | const unsigned short VMQfeNumber, |
| 2323 | const unsigned int StartupFlags, |
| 2324 | const unsigned char StartupMode, |
| 2325 | PCWSTR CommandLine, |
| 2326 | const GUID* ComObjectGuid, |
| 2327 | PCWSTR RuntimeDllPath |
| 2328 | ) |
| 2329 | { |
| 2330 | ULONG status = EventPipeWriteEventRuntimeInformationStart(ClrInstanceID,Sku,BclMajorVersion,BclMinorVersion,BclBuildNumber,BclQfeNumber,VMMajorVersion,VMMinorVersion,VMBuildNumber,VMQfeNumber,StartupFlags,StartupMode,CommandLine,ComObjectGuid,RuntimeDllPath); |
| 2331 | status &= FireEtXplatRuntimeInformationStart(ClrInstanceID,Sku,BclMajorVersion,BclMinorVersion,BclBuildNumber,BclQfeNumber,VMMajorVersion,VMMinorVersion,VMBuildNumber,VMQfeNumber,StartupFlags,StartupMode,CommandLine,ComObjectGuid,RuntimeDllPath); |
| 2332 | return status; |
| 2333 | } |
| 2334 | |
| 2335 | inline BOOL EventEnabledIncreaseMemoryPressure() {return EventPipeEventEnabledIncreaseMemoryPressure() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledIncreaseMemoryPressure());} |
| 2336 | |
| 2337 | inline ULONG FireEtwIncreaseMemoryPressure( |
| 2338 | const unsigned __int64 BytesAllocated, |
| 2339 | const unsigned short ClrInstanceID |
| 2340 | ) |
| 2341 | { |
| 2342 | ULONG status = EventPipeWriteEventIncreaseMemoryPressure(BytesAllocated,ClrInstanceID); |
| 2343 | status &= FireEtXplatIncreaseMemoryPressure(BytesAllocated,ClrInstanceID); |
| 2344 | return status; |
| 2345 | } |
| 2346 | |
| 2347 | inline BOOL EventEnabledDecreaseMemoryPressure() {return EventPipeEventEnabledDecreaseMemoryPressure() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledDecreaseMemoryPressure());} |
| 2348 | |
| 2349 | inline ULONG FireEtwDecreaseMemoryPressure( |
| 2350 | const unsigned __int64 BytesFreed, |
| 2351 | const unsigned short ClrInstanceID |
| 2352 | ) |
| 2353 | { |
| 2354 | ULONG status = EventPipeWriteEventDecreaseMemoryPressure(BytesFreed,ClrInstanceID); |
| 2355 | status &= FireEtXplatDecreaseMemoryPressure(BytesFreed,ClrInstanceID); |
| 2356 | return status; |
| 2357 | } |
| 2358 | |
| 2359 | inline BOOL EventEnabledGCMarkWithType() {return EventPipeEventEnabledGCMarkWithType() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCMarkWithType());} |
| 2360 | |
| 2361 | inline ULONG FireEtwGCMarkWithType( |
| 2362 | const unsigned int HeapNum, |
| 2363 | const unsigned short ClrInstanceID, |
| 2364 | const unsigned int Type, |
| 2365 | const unsigned __int64 Bytes |
| 2366 | ) |
| 2367 | { |
| 2368 | ULONG status = EventPipeWriteEventGCMarkWithType(HeapNum,ClrInstanceID,Type,Bytes); |
| 2369 | status &= FireEtXplatGCMarkWithType(HeapNum,ClrInstanceID,Type,Bytes); |
| 2370 | return status; |
| 2371 | } |
| 2372 | |
| 2373 | inline BOOL EventEnabledGCJoin_V2() {return EventPipeEventEnabledGCJoin_V2() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCJoin_V2());} |
| 2374 | |
| 2375 | inline ULONG FireEtwGCJoin_V2( |
| 2376 | const unsigned int Heap, |
| 2377 | const unsigned int JoinTime, |
| 2378 | const unsigned int JoinType, |
| 2379 | const unsigned short ClrInstanceID, |
| 2380 | const unsigned int JoinID |
| 2381 | ) |
| 2382 | { |
| 2383 | ULONG status = EventPipeWriteEventGCJoin_V2(Heap,JoinTime,JoinType,ClrInstanceID,JoinID); |
| 2384 | status &= FireEtXplatGCJoin_V2(Heap,JoinTime,JoinType,ClrInstanceID,JoinID); |
| 2385 | return status; |
| 2386 | } |
| 2387 | |
| 2388 | inline BOOL EventEnabledGCPerHeapHistory_V3() {return EventPipeEventEnabledGCPerHeapHistory_V3() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCPerHeapHistory_V3());} |
| 2389 | |
| 2390 | inline ULONG FireEtwGCPerHeapHistory_V3( |
| 2391 | const unsigned short ClrInstanceID, |
| 2392 | const void* FreeListAllocated, |
| 2393 | const void* FreeListRejected, |
| 2394 | const void* EndOfSegAllocated, |
| 2395 | const void* CondemnedAllocated, |
| 2396 | const void* PinnedAllocated, |
| 2397 | const void* PinnedAllocatedAdvance, |
| 2398 | const unsigned int RunningFreeListEfficiency, |
| 2399 | const unsigned int CondemnReasons0, |
| 2400 | const unsigned int CondemnReasons1, |
| 2401 | const unsigned int CompactMechanisms, |
| 2402 | const unsigned int ExpandMechanisms, |
| 2403 | const unsigned int HeapIndex, |
| 2404 | const void* , |
| 2405 | const unsigned int Count, |
| 2406 | int Values_ElementSize, |
| 2407 | const void* Values |
| 2408 | ) |
| 2409 | { |
| 2410 | ULONG status = EventPipeWriteEventGCPerHeapHistory_V3(ClrInstanceID,FreeListAllocated,FreeListRejected,EndOfSegAllocated,CondemnedAllocated,PinnedAllocated,PinnedAllocatedAdvance,RunningFreeListEfficiency,CondemnReasons0,CondemnReasons1,CompactMechanisms,ExpandMechanisms,HeapIndex,ExtraGen0Commit,Count,Values_ElementSize, Values); |
| 2411 | status &= FireEtXplatGCPerHeapHistory_V3(ClrInstanceID,FreeListAllocated,FreeListRejected,EndOfSegAllocated,CondemnedAllocated,PinnedAllocated,PinnedAllocatedAdvance,RunningFreeListEfficiency,CondemnReasons0,CondemnReasons1,CompactMechanisms,ExpandMechanisms,HeapIndex,ExtraGen0Commit,Count,Values_ElementSize, Values); |
| 2412 | return status; |
| 2413 | } |
| 2414 | |
| 2415 | inline BOOL EventEnabledGCGlobalHeapHistory_V2() {return EventPipeEventEnabledGCGlobalHeapHistory_V2() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCGlobalHeapHistory_V2());} |
| 2416 | |
| 2417 | inline ULONG FireEtwGCGlobalHeapHistory_V2( |
| 2418 | const unsigned __int64 FinalYoungestDesired, |
| 2419 | const signed int NumHeaps, |
| 2420 | const unsigned int CondemnedGeneration, |
| 2421 | const unsigned int Gen0ReductionCount, |
| 2422 | const unsigned int Reason, |
| 2423 | const unsigned int GlobalMechanisms, |
| 2424 | const unsigned short ClrInstanceID, |
| 2425 | const unsigned int PauseMode, |
| 2426 | const unsigned int MemoryPressure |
| 2427 | ) |
| 2428 | { |
| 2429 | ULONG status = EventPipeWriteEventGCGlobalHeapHistory_V2(FinalYoungestDesired,NumHeaps,CondemnedGeneration,Gen0ReductionCount,Reason,GlobalMechanisms,ClrInstanceID,PauseMode,MemoryPressure); |
| 2430 | status &= FireEtXplatGCGlobalHeapHistory_V2(FinalYoungestDesired,NumHeaps,CondemnedGeneration,Gen0ReductionCount,Reason,GlobalMechanisms,ClrInstanceID,PauseMode,MemoryPressure); |
| 2431 | return status; |
| 2432 | } |
| 2433 | |
| 2434 | inline BOOL EventEnabledDebugIPCEventStart() {return EventPipeEventEnabledDebugIPCEventStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledDebugIPCEventStart());} |
| 2435 | |
| 2436 | inline ULONG FireEtwDebugIPCEventStart( |
| 2437 | |
| 2438 | ) |
| 2439 | { |
| 2440 | ULONG status = EventPipeWriteEventDebugIPCEventStart(); |
| 2441 | status &= FireEtXplatDebugIPCEventStart(); |
| 2442 | return status; |
| 2443 | } |
| 2444 | |
| 2445 | inline BOOL EventEnabledDebugIPCEventEnd() {return EventPipeEventEnabledDebugIPCEventEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledDebugIPCEventEnd());} |
| 2446 | |
| 2447 | inline ULONG FireEtwDebugIPCEventEnd( |
| 2448 | |
| 2449 | ) |
| 2450 | { |
| 2451 | ULONG status = EventPipeWriteEventDebugIPCEventEnd(); |
| 2452 | status &= FireEtXplatDebugIPCEventEnd(); |
| 2453 | return status; |
| 2454 | } |
| 2455 | |
| 2456 | inline BOOL EventEnabledDebugExceptionProcessingStart() {return EventPipeEventEnabledDebugExceptionProcessingStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledDebugExceptionProcessingStart());} |
| 2457 | |
| 2458 | inline ULONG FireEtwDebugExceptionProcessingStart( |
| 2459 | |
| 2460 | ) |
| 2461 | { |
| 2462 | ULONG status = EventPipeWriteEventDebugExceptionProcessingStart(); |
| 2463 | status &= FireEtXplatDebugExceptionProcessingStart(); |
| 2464 | return status; |
| 2465 | } |
| 2466 | |
| 2467 | inline BOOL EventEnabledDebugExceptionProcessingEnd() {return EventPipeEventEnabledDebugExceptionProcessingEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledDebugExceptionProcessingEnd());} |
| 2468 | |
| 2469 | inline ULONG FireEtwDebugExceptionProcessingEnd( |
| 2470 | |
| 2471 | ) |
| 2472 | { |
| 2473 | ULONG status = EventPipeWriteEventDebugExceptionProcessingEnd(); |
| 2474 | status &= FireEtXplatDebugExceptionProcessingEnd(); |
| 2475 | return status; |
| 2476 | } |
| 2477 | |
| 2478 | inline BOOL EventEnabledCodeSymbols() {return EventPipeEventEnabledCodeSymbols() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledCodeSymbols());} |
| 2479 | |
| 2480 | inline ULONG FireEtwCodeSymbols( |
| 2481 | const unsigned __int64 ModuleId, |
| 2482 | const unsigned short TotalChunks, |
| 2483 | const unsigned short ChunkNumber, |
| 2484 | const unsigned int ChunkLength, |
| 2485 | const BYTE* Chunk, |
| 2486 | const unsigned short ClrInstanceID |
| 2487 | ) |
| 2488 | { |
| 2489 | ULONG status = EventPipeWriteEventCodeSymbols(ModuleId,TotalChunks,ChunkNumber,ChunkLength,Chunk,ClrInstanceID); |
| 2490 | status &= FireEtXplatCodeSymbols(ModuleId,TotalChunks,ChunkNumber,ChunkLength,Chunk,ClrInstanceID); |
| 2491 | return status; |
| 2492 | } |
| 2493 | |
| 2494 | inline BOOL EventEnabledEventSource() {return EventPipeEventEnabledEventSource() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledEventSource());} |
| 2495 | |
| 2496 | inline ULONG FireEtwEventSource( |
| 2497 | const signed int EventID, |
| 2498 | PCWSTR EventName, |
| 2499 | PCWSTR EventSourceName, |
| 2500 | PCWSTR Payload |
| 2501 | ) |
| 2502 | { |
| 2503 | ULONG status = EventPipeWriteEventEventSource(EventID,EventName,EventSourceName,Payload); |
| 2504 | status &= FireEtXplatEventSource(EventID,EventName,EventSourceName,Payload); |
| 2505 | return status; |
| 2506 | } |
| 2507 | |
| 2508 | |
| 2509 | inline BOOL EventEnabledCLRStackWalkDCStart() {return EventPipeEventEnabledCLRStackWalkDCStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledCLRStackWalkDCStart());} |
| 2510 | |
| 2511 | inline ULONG FireEtwCLRStackWalkDCStart( |
| 2512 | const unsigned short ClrInstanceID, |
| 2513 | const unsigned char Reserved1, |
| 2514 | const unsigned char Reserved2, |
| 2515 | const unsigned int FrameCount, |
| 2516 | const void** Stack |
| 2517 | ) |
| 2518 | { |
| 2519 | ULONG status = EventPipeWriteEventCLRStackWalkDCStart(ClrInstanceID,Reserved1,Reserved2,FrameCount,Stack); |
| 2520 | status &= FireEtXplatCLRStackWalkDCStart(ClrInstanceID,Reserved1,Reserved2,FrameCount,Stack); |
| 2521 | return status; |
| 2522 | } |
| 2523 | |
| 2524 | inline BOOL EventEnabledMethodDCStart() {return EventPipeEventEnabledMethodDCStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodDCStart());} |
| 2525 | |
| 2526 | inline ULONG FireEtwMethodDCStart( |
| 2527 | const unsigned __int64 MethodID, |
| 2528 | const unsigned __int64 ModuleID, |
| 2529 | const unsigned __int64 MethodStartAddress, |
| 2530 | const unsigned int MethodSize, |
| 2531 | const unsigned int MethodToken, |
| 2532 | const unsigned int MethodFlags |
| 2533 | ) |
| 2534 | { |
| 2535 | ULONG status = EventPipeWriteEventMethodDCStart(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags); |
| 2536 | status &= FireEtXplatMethodDCStart(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags); |
| 2537 | return status; |
| 2538 | } |
| 2539 | |
| 2540 | inline BOOL EventEnabledMethodDCStart_V1() {return EventPipeEventEnabledMethodDCStart_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodDCStart_V1());} |
| 2541 | |
| 2542 | inline ULONG FireEtwMethodDCStart_V1( |
| 2543 | const unsigned __int64 MethodID, |
| 2544 | const unsigned __int64 ModuleID, |
| 2545 | const unsigned __int64 MethodStartAddress, |
| 2546 | const unsigned int MethodSize, |
| 2547 | const unsigned int MethodToken, |
| 2548 | const unsigned int MethodFlags, |
| 2549 | const unsigned short ClrInstanceID |
| 2550 | ) |
| 2551 | { |
| 2552 | ULONG status = EventPipeWriteEventMethodDCStart_V1(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,ClrInstanceID); |
| 2553 | status &= FireEtXplatMethodDCStart_V1(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,ClrInstanceID); |
| 2554 | return status; |
| 2555 | } |
| 2556 | |
| 2557 | inline BOOL EventEnabledMethodDCStart_V2() {return EventPipeEventEnabledMethodDCStart_V2() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodDCStart_V2());} |
| 2558 | |
| 2559 | inline ULONG FireEtwMethodDCStart_V2( |
| 2560 | const unsigned __int64 MethodID, |
| 2561 | const unsigned __int64 ModuleID, |
| 2562 | const unsigned __int64 MethodStartAddress, |
| 2563 | const unsigned int MethodSize, |
| 2564 | const unsigned int MethodToken, |
| 2565 | const unsigned int MethodFlags, |
| 2566 | const unsigned short ClrInstanceID, |
| 2567 | const unsigned __int64 ReJITID |
| 2568 | ) |
| 2569 | { |
| 2570 | ULONG status = EventPipeWriteEventMethodDCStart_V2(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,ClrInstanceID,ReJITID); |
| 2571 | status &= FireEtXplatMethodDCStart_V2(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,ClrInstanceID,ReJITID); |
| 2572 | return status; |
| 2573 | } |
| 2574 | |
| 2575 | inline BOOL EventEnabledMethodDCEnd() {return EventPipeEventEnabledMethodDCEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodDCEnd());} |
| 2576 | |
| 2577 | inline ULONG FireEtwMethodDCEnd( |
| 2578 | const unsigned __int64 MethodID, |
| 2579 | const unsigned __int64 ModuleID, |
| 2580 | const unsigned __int64 MethodStartAddress, |
| 2581 | const unsigned int MethodSize, |
| 2582 | const unsigned int MethodToken, |
| 2583 | const unsigned int MethodFlags |
| 2584 | ) |
| 2585 | { |
| 2586 | ULONG status = EventPipeWriteEventMethodDCEnd(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags); |
| 2587 | status &= FireEtXplatMethodDCEnd(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags); |
| 2588 | return status; |
| 2589 | } |
| 2590 | |
| 2591 | inline BOOL EventEnabledMethodDCEnd_V1() {return EventPipeEventEnabledMethodDCEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodDCEnd_V1());} |
| 2592 | |
| 2593 | inline ULONG FireEtwMethodDCEnd_V1( |
| 2594 | const unsigned __int64 MethodID, |
| 2595 | const unsigned __int64 ModuleID, |
| 2596 | const unsigned __int64 MethodStartAddress, |
| 2597 | const unsigned int MethodSize, |
| 2598 | const unsigned int MethodToken, |
| 2599 | const unsigned int MethodFlags, |
| 2600 | const unsigned short ClrInstanceID |
| 2601 | ) |
| 2602 | { |
| 2603 | ULONG status = EventPipeWriteEventMethodDCEnd_V1(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,ClrInstanceID); |
| 2604 | status &= FireEtXplatMethodDCEnd_V1(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,ClrInstanceID); |
| 2605 | return status; |
| 2606 | } |
| 2607 | |
| 2608 | inline BOOL EventEnabledMethodDCEnd_V2() {return EventPipeEventEnabledMethodDCEnd_V2() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodDCEnd_V2());} |
| 2609 | |
| 2610 | inline ULONG FireEtwMethodDCEnd_V2( |
| 2611 | const unsigned __int64 MethodID, |
| 2612 | const unsigned __int64 ModuleID, |
| 2613 | const unsigned __int64 MethodStartAddress, |
| 2614 | const unsigned int MethodSize, |
| 2615 | const unsigned int MethodToken, |
| 2616 | const unsigned int MethodFlags, |
| 2617 | const unsigned short ClrInstanceID, |
| 2618 | const unsigned __int64 ReJITID |
| 2619 | ) |
| 2620 | { |
| 2621 | ULONG status = EventPipeWriteEventMethodDCEnd_V2(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,ClrInstanceID,ReJITID); |
| 2622 | status &= FireEtXplatMethodDCEnd_V2(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,ClrInstanceID,ReJITID); |
| 2623 | return status; |
| 2624 | } |
| 2625 | |
| 2626 | inline BOOL EventEnabledMethodDCStartVerbose() {return EventPipeEventEnabledMethodDCStartVerbose() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodDCStartVerbose());} |
| 2627 | |
| 2628 | inline ULONG FireEtwMethodDCStartVerbose( |
| 2629 | const unsigned __int64 MethodID, |
| 2630 | const unsigned __int64 ModuleID, |
| 2631 | const unsigned __int64 MethodStartAddress, |
| 2632 | const unsigned int MethodSize, |
| 2633 | const unsigned int MethodToken, |
| 2634 | const unsigned int MethodFlags, |
| 2635 | PCWSTR MethodNamespace, |
| 2636 | PCWSTR MethodName, |
| 2637 | PCWSTR MethodSignature |
| 2638 | ) |
| 2639 | { |
| 2640 | ULONG status = EventPipeWriteEventMethodDCStartVerbose(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature); |
| 2641 | status &= FireEtXplatMethodDCStartVerbose(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature); |
| 2642 | return status; |
| 2643 | } |
| 2644 | |
| 2645 | inline BOOL EventEnabledMethodDCStartVerbose_V1() {return EventPipeEventEnabledMethodDCStartVerbose_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodDCStartVerbose_V1());} |
| 2646 | |
| 2647 | inline ULONG FireEtwMethodDCStartVerbose_V1( |
| 2648 | const unsigned __int64 MethodID, |
| 2649 | const unsigned __int64 ModuleID, |
| 2650 | const unsigned __int64 MethodStartAddress, |
| 2651 | const unsigned int MethodSize, |
| 2652 | const unsigned int MethodToken, |
| 2653 | const unsigned int MethodFlags, |
| 2654 | PCWSTR MethodNamespace, |
| 2655 | PCWSTR MethodName, |
| 2656 | PCWSTR MethodSignature, |
| 2657 | const unsigned short ClrInstanceID |
| 2658 | ) |
| 2659 | { |
| 2660 | ULONG status = EventPipeWriteEventMethodDCStartVerbose_V1(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature,ClrInstanceID); |
| 2661 | status &= FireEtXplatMethodDCStartVerbose_V1(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature,ClrInstanceID); |
| 2662 | return status; |
| 2663 | } |
| 2664 | |
| 2665 | inline BOOL EventEnabledMethodDCStartVerbose_V2() {return EventPipeEventEnabledMethodDCStartVerbose_V2() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodDCStartVerbose_V2());} |
| 2666 | |
| 2667 | inline ULONG FireEtwMethodDCStartVerbose_V2( |
| 2668 | const unsigned __int64 MethodID, |
| 2669 | const unsigned __int64 ModuleID, |
| 2670 | const unsigned __int64 MethodStartAddress, |
| 2671 | const unsigned int MethodSize, |
| 2672 | const unsigned int MethodToken, |
| 2673 | const unsigned int MethodFlags, |
| 2674 | PCWSTR MethodNamespace, |
| 2675 | PCWSTR MethodName, |
| 2676 | PCWSTR MethodSignature, |
| 2677 | const unsigned short ClrInstanceID, |
| 2678 | const unsigned __int64 ReJITID |
| 2679 | ) |
| 2680 | { |
| 2681 | ULONG status = EventPipeWriteEventMethodDCStartVerbose_V2(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature,ClrInstanceID,ReJITID); |
| 2682 | status &= FireEtXplatMethodDCStartVerbose_V2(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature,ClrInstanceID,ReJITID); |
| 2683 | return status; |
| 2684 | } |
| 2685 | |
| 2686 | inline BOOL EventEnabledMethodDCEndVerbose() {return EventPipeEventEnabledMethodDCEndVerbose() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodDCEndVerbose());} |
| 2687 | |
| 2688 | inline ULONG FireEtwMethodDCEndVerbose( |
| 2689 | const unsigned __int64 MethodID, |
| 2690 | const unsigned __int64 ModuleID, |
| 2691 | const unsigned __int64 MethodStartAddress, |
| 2692 | const unsigned int MethodSize, |
| 2693 | const unsigned int MethodToken, |
| 2694 | const unsigned int MethodFlags, |
| 2695 | PCWSTR MethodNamespace, |
| 2696 | PCWSTR MethodName, |
| 2697 | PCWSTR MethodSignature |
| 2698 | ) |
| 2699 | { |
| 2700 | ULONG status = EventPipeWriteEventMethodDCEndVerbose(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature); |
| 2701 | status &= FireEtXplatMethodDCEndVerbose(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature); |
| 2702 | return status; |
| 2703 | } |
| 2704 | |
| 2705 | inline BOOL EventEnabledMethodDCEndVerbose_V1() {return EventPipeEventEnabledMethodDCEndVerbose_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodDCEndVerbose_V1());} |
| 2706 | |
| 2707 | inline ULONG FireEtwMethodDCEndVerbose_V1( |
| 2708 | const unsigned __int64 MethodID, |
| 2709 | const unsigned __int64 ModuleID, |
| 2710 | const unsigned __int64 MethodStartAddress, |
| 2711 | const unsigned int MethodSize, |
| 2712 | const unsigned int MethodToken, |
| 2713 | const unsigned int MethodFlags, |
| 2714 | PCWSTR MethodNamespace, |
| 2715 | PCWSTR MethodName, |
| 2716 | PCWSTR MethodSignature, |
| 2717 | const unsigned short ClrInstanceID |
| 2718 | ) |
| 2719 | { |
| 2720 | ULONG status = EventPipeWriteEventMethodDCEndVerbose_V1(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature,ClrInstanceID); |
| 2721 | status &= FireEtXplatMethodDCEndVerbose_V1(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature,ClrInstanceID); |
| 2722 | return status; |
| 2723 | } |
| 2724 | |
| 2725 | inline BOOL EventEnabledMethodDCEndVerbose_V2() {return EventPipeEventEnabledMethodDCEndVerbose_V2() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodDCEndVerbose_V2());} |
| 2726 | |
| 2727 | inline ULONG FireEtwMethodDCEndVerbose_V2( |
| 2728 | const unsigned __int64 MethodID, |
| 2729 | const unsigned __int64 ModuleID, |
| 2730 | const unsigned __int64 MethodStartAddress, |
| 2731 | const unsigned int MethodSize, |
| 2732 | const unsigned int MethodToken, |
| 2733 | const unsigned int MethodFlags, |
| 2734 | PCWSTR MethodNamespace, |
| 2735 | PCWSTR MethodName, |
| 2736 | PCWSTR MethodSignature, |
| 2737 | const unsigned short ClrInstanceID, |
| 2738 | const unsigned __int64 ReJITID |
| 2739 | ) |
| 2740 | { |
| 2741 | ULONG status = EventPipeWriteEventMethodDCEndVerbose_V2(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature,ClrInstanceID,ReJITID); |
| 2742 | status &= FireEtXplatMethodDCEndVerbose_V2(MethodID,ModuleID,MethodStartAddress,MethodSize,MethodToken,MethodFlags,MethodNamespace,MethodName,MethodSignature,ClrInstanceID,ReJITID); |
| 2743 | return status; |
| 2744 | } |
| 2745 | |
| 2746 | inline BOOL EventEnabledDCStartComplete() {return EventPipeEventEnabledDCStartComplete() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledDCStartComplete());} |
| 2747 | |
| 2748 | inline ULONG FireEtwDCStartComplete( |
| 2749 | |
| 2750 | ) |
| 2751 | { |
| 2752 | ULONG status = EventPipeWriteEventDCStartComplete(); |
| 2753 | status &= FireEtXplatDCStartComplete(); |
| 2754 | return status; |
| 2755 | } |
| 2756 | |
| 2757 | inline BOOL EventEnabledDCStartComplete_V1() {return EventPipeEventEnabledDCStartComplete_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledDCStartComplete_V1());} |
| 2758 | |
| 2759 | inline ULONG FireEtwDCStartComplete_V1( |
| 2760 | const unsigned short ClrInstanceID |
| 2761 | ) |
| 2762 | { |
| 2763 | ULONG status = EventPipeWriteEventDCStartComplete_V1(ClrInstanceID); |
| 2764 | status &= FireEtXplatDCStartComplete_V1(ClrInstanceID); |
| 2765 | return status; |
| 2766 | } |
| 2767 | |
| 2768 | inline BOOL EventEnabledDCEndComplete() {return EventPipeEventEnabledDCEndComplete() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledDCEndComplete());} |
| 2769 | |
| 2770 | inline ULONG FireEtwDCEndComplete( |
| 2771 | |
| 2772 | ) |
| 2773 | { |
| 2774 | ULONG status = EventPipeWriteEventDCEndComplete(); |
| 2775 | status &= FireEtXplatDCEndComplete(); |
| 2776 | return status; |
| 2777 | } |
| 2778 | |
| 2779 | inline BOOL EventEnabledDCEndComplete_V1() {return EventPipeEventEnabledDCEndComplete_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledDCEndComplete_V1());} |
| 2780 | |
| 2781 | inline ULONG FireEtwDCEndComplete_V1( |
| 2782 | const unsigned short ClrInstanceID |
| 2783 | ) |
| 2784 | { |
| 2785 | ULONG status = EventPipeWriteEventDCEndComplete_V1(ClrInstanceID); |
| 2786 | status &= FireEtXplatDCEndComplete_V1(ClrInstanceID); |
| 2787 | return status; |
| 2788 | } |
| 2789 | |
| 2790 | inline BOOL EventEnabledDCStartInit() {return EventPipeEventEnabledDCStartInit() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledDCStartInit());} |
| 2791 | |
| 2792 | inline ULONG FireEtwDCStartInit( |
| 2793 | |
| 2794 | ) |
| 2795 | { |
| 2796 | ULONG status = EventPipeWriteEventDCStartInit(); |
| 2797 | status &= FireEtXplatDCStartInit(); |
| 2798 | return status; |
| 2799 | } |
| 2800 | |
| 2801 | inline BOOL EventEnabledDCStartInit_V1() {return EventPipeEventEnabledDCStartInit_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledDCStartInit_V1());} |
| 2802 | |
| 2803 | inline ULONG FireEtwDCStartInit_V1( |
| 2804 | const unsigned short ClrInstanceID |
| 2805 | ) |
| 2806 | { |
| 2807 | ULONG status = EventPipeWriteEventDCStartInit_V1(ClrInstanceID); |
| 2808 | status &= FireEtXplatDCStartInit_V1(ClrInstanceID); |
| 2809 | return status; |
| 2810 | } |
| 2811 | |
| 2812 | inline BOOL EventEnabledDCEndInit() {return EventPipeEventEnabledDCEndInit() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledDCEndInit());} |
| 2813 | |
| 2814 | inline ULONG FireEtwDCEndInit( |
| 2815 | |
| 2816 | ) |
| 2817 | { |
| 2818 | ULONG status = EventPipeWriteEventDCEndInit(); |
| 2819 | status &= FireEtXplatDCEndInit(); |
| 2820 | return status; |
| 2821 | } |
| 2822 | |
| 2823 | inline BOOL EventEnabledDCEndInit_V1() {return EventPipeEventEnabledDCEndInit_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledDCEndInit_V1());} |
| 2824 | |
| 2825 | inline ULONG FireEtwDCEndInit_V1( |
| 2826 | const unsigned short ClrInstanceID |
| 2827 | ) |
| 2828 | { |
| 2829 | ULONG status = EventPipeWriteEventDCEndInit_V1(ClrInstanceID); |
| 2830 | status &= FireEtXplatDCEndInit_V1(ClrInstanceID); |
| 2831 | return status; |
| 2832 | } |
| 2833 | |
| 2834 | inline BOOL EventEnabledMethodDCStartILToNativeMap() {return EventPipeEventEnabledMethodDCStartILToNativeMap() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodDCStartILToNativeMap());} |
| 2835 | |
| 2836 | inline ULONG FireEtwMethodDCStartILToNativeMap( |
| 2837 | const unsigned __int64 MethodID, |
| 2838 | const unsigned __int64 ReJITID, |
| 2839 | const unsigned char MethodExtent, |
| 2840 | const unsigned short CountOfMapEntries, |
| 2841 | const unsigned int* ILOffsets, |
| 2842 | const unsigned int* NativeOffsets, |
| 2843 | const unsigned short ClrInstanceID |
| 2844 | ) |
| 2845 | { |
| 2846 | ULONG status = EventPipeWriteEventMethodDCStartILToNativeMap(MethodID,ReJITID,MethodExtent,CountOfMapEntries,ILOffsets,NativeOffsets,ClrInstanceID); |
| 2847 | status &= FireEtXplatMethodDCStartILToNativeMap(MethodID,ReJITID,MethodExtent,CountOfMapEntries,ILOffsets,NativeOffsets,ClrInstanceID); |
| 2848 | return status; |
| 2849 | } |
| 2850 | |
| 2851 | inline BOOL EventEnabledMethodDCEndILToNativeMap() {return EventPipeEventEnabledMethodDCEndILToNativeMap() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodDCEndILToNativeMap());} |
| 2852 | |
| 2853 | inline ULONG FireEtwMethodDCEndILToNativeMap( |
| 2854 | const unsigned __int64 MethodID, |
| 2855 | const unsigned __int64 ReJITID, |
| 2856 | const unsigned char MethodExtent, |
| 2857 | const unsigned short CountOfMapEntries, |
| 2858 | const unsigned int* ILOffsets, |
| 2859 | const unsigned int* NativeOffsets, |
| 2860 | const unsigned short ClrInstanceID |
| 2861 | ) |
| 2862 | { |
| 2863 | ULONG status = EventPipeWriteEventMethodDCEndILToNativeMap(MethodID,ReJITID,MethodExtent,CountOfMapEntries,ILOffsets,NativeOffsets,ClrInstanceID); |
| 2864 | status &= FireEtXplatMethodDCEndILToNativeMap(MethodID,ReJITID,MethodExtent,CountOfMapEntries,ILOffsets,NativeOffsets,ClrInstanceID); |
| 2865 | return status; |
| 2866 | } |
| 2867 | |
| 2868 | inline BOOL EventEnabledDomainModuleDCStart() {return EventPipeEventEnabledDomainModuleDCStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledDomainModuleDCStart());} |
| 2869 | |
| 2870 | inline ULONG FireEtwDomainModuleDCStart( |
| 2871 | const unsigned __int64 ModuleID, |
| 2872 | const unsigned __int64 AssemblyID, |
| 2873 | const unsigned __int64 AppDomainID, |
| 2874 | const unsigned int ModuleFlags, |
| 2875 | const unsigned int Reserved1, |
| 2876 | PCWSTR ModuleILPath, |
| 2877 | PCWSTR ModuleNativePath |
| 2878 | ) |
| 2879 | { |
| 2880 | ULONG status = EventPipeWriteEventDomainModuleDCStart(ModuleID,AssemblyID,AppDomainID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath); |
| 2881 | status &= FireEtXplatDomainModuleDCStart(ModuleID,AssemblyID,AppDomainID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath); |
| 2882 | return status; |
| 2883 | } |
| 2884 | |
| 2885 | inline BOOL EventEnabledDomainModuleDCStart_V1() {return EventPipeEventEnabledDomainModuleDCStart_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledDomainModuleDCStart_V1());} |
| 2886 | |
| 2887 | inline ULONG FireEtwDomainModuleDCStart_V1( |
| 2888 | const unsigned __int64 ModuleID, |
| 2889 | const unsigned __int64 AssemblyID, |
| 2890 | const unsigned __int64 AppDomainID, |
| 2891 | const unsigned int ModuleFlags, |
| 2892 | const unsigned int Reserved1, |
| 2893 | PCWSTR ModuleILPath, |
| 2894 | PCWSTR ModuleNativePath, |
| 2895 | const unsigned short ClrInstanceID |
| 2896 | ) |
| 2897 | { |
| 2898 | ULONG status = EventPipeWriteEventDomainModuleDCStart_V1(ModuleID,AssemblyID,AppDomainID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath,ClrInstanceID); |
| 2899 | status &= FireEtXplatDomainModuleDCStart_V1(ModuleID,AssemblyID,AppDomainID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath,ClrInstanceID); |
| 2900 | return status; |
| 2901 | } |
| 2902 | |
| 2903 | inline BOOL EventEnabledDomainModuleDCEnd() {return EventPipeEventEnabledDomainModuleDCEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledDomainModuleDCEnd());} |
| 2904 | |
| 2905 | inline ULONG FireEtwDomainModuleDCEnd( |
| 2906 | const unsigned __int64 ModuleID, |
| 2907 | const unsigned __int64 AssemblyID, |
| 2908 | const unsigned __int64 AppDomainID, |
| 2909 | const unsigned int ModuleFlags, |
| 2910 | const unsigned int Reserved1, |
| 2911 | PCWSTR ModuleILPath, |
| 2912 | PCWSTR ModuleNativePath |
| 2913 | ) |
| 2914 | { |
| 2915 | ULONG status = EventPipeWriteEventDomainModuleDCEnd(ModuleID,AssemblyID,AppDomainID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath); |
| 2916 | status &= FireEtXplatDomainModuleDCEnd(ModuleID,AssemblyID,AppDomainID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath); |
| 2917 | return status; |
| 2918 | } |
| 2919 | |
| 2920 | inline BOOL EventEnabledDomainModuleDCEnd_V1() {return EventPipeEventEnabledDomainModuleDCEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledDomainModuleDCEnd_V1());} |
| 2921 | |
| 2922 | inline ULONG FireEtwDomainModuleDCEnd_V1( |
| 2923 | const unsigned __int64 ModuleID, |
| 2924 | const unsigned __int64 AssemblyID, |
| 2925 | const unsigned __int64 AppDomainID, |
| 2926 | const unsigned int ModuleFlags, |
| 2927 | const unsigned int Reserved1, |
| 2928 | PCWSTR ModuleILPath, |
| 2929 | PCWSTR ModuleNativePath, |
| 2930 | const unsigned short ClrInstanceID |
| 2931 | ) |
| 2932 | { |
| 2933 | ULONG status = EventPipeWriteEventDomainModuleDCEnd_V1(ModuleID,AssemblyID,AppDomainID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath,ClrInstanceID); |
| 2934 | status &= FireEtXplatDomainModuleDCEnd_V1(ModuleID,AssemblyID,AppDomainID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath,ClrInstanceID); |
| 2935 | return status; |
| 2936 | } |
| 2937 | |
| 2938 | inline BOOL EventEnabledModuleDCStart() {return EventPipeEventEnabledModuleDCStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledModuleDCStart());} |
| 2939 | |
| 2940 | inline ULONG FireEtwModuleDCStart( |
| 2941 | const unsigned __int64 ModuleID, |
| 2942 | const unsigned __int64 AssemblyID, |
| 2943 | const unsigned int ModuleFlags, |
| 2944 | const unsigned int Reserved1, |
| 2945 | PCWSTR ModuleILPath, |
| 2946 | PCWSTR ModuleNativePath |
| 2947 | ) |
| 2948 | { |
| 2949 | ULONG status = EventPipeWriteEventModuleDCStart(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath); |
| 2950 | status &= FireEtXplatModuleDCStart(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath); |
| 2951 | return status; |
| 2952 | } |
| 2953 | |
| 2954 | inline BOOL EventEnabledModuleDCStart_V1() {return EventPipeEventEnabledModuleDCStart_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledModuleDCStart_V1());} |
| 2955 | |
| 2956 | inline ULONG FireEtwModuleDCStart_V1( |
| 2957 | const unsigned __int64 ModuleID, |
| 2958 | const unsigned __int64 AssemblyID, |
| 2959 | const unsigned int ModuleFlags, |
| 2960 | const unsigned int Reserved1, |
| 2961 | PCWSTR ModuleILPath, |
| 2962 | PCWSTR ModuleNativePath, |
| 2963 | const unsigned short ClrInstanceID |
| 2964 | ) |
| 2965 | { |
| 2966 | ULONG status = EventPipeWriteEventModuleDCStart_V1(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath,ClrInstanceID); |
| 2967 | status &= FireEtXplatModuleDCStart_V1(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath,ClrInstanceID); |
| 2968 | return status; |
| 2969 | } |
| 2970 | |
| 2971 | inline BOOL EventEnabledModuleDCStart_V2() {return EventPipeEventEnabledModuleDCStart_V2() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledModuleDCStart_V2());} |
| 2972 | |
| 2973 | inline ULONG FireEtwModuleDCStart_V2( |
| 2974 | const unsigned __int64 ModuleID, |
| 2975 | const unsigned __int64 AssemblyID, |
| 2976 | const unsigned int ModuleFlags, |
| 2977 | const unsigned int Reserved1, |
| 2978 | PCWSTR ModuleILPath, |
| 2979 | PCWSTR ModuleNativePath, |
| 2980 | const unsigned short ClrInstanceID, |
| 2981 | const GUID* ManagedPdbSignature, |
| 2982 | const unsigned int ManagedPdbAge, |
| 2983 | PCWSTR ManagedPdbBuildPath, |
| 2984 | const GUID* NativePdbSignature, |
| 2985 | const unsigned int NativePdbAge, |
| 2986 | PCWSTR NativePdbBuildPath |
| 2987 | ) |
| 2988 | { |
| 2989 | ULONG status = EventPipeWriteEventModuleDCStart_V2(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath,ClrInstanceID,ManagedPdbSignature,ManagedPdbAge,ManagedPdbBuildPath,NativePdbSignature,NativePdbAge,NativePdbBuildPath); |
| 2990 | status &= FireEtXplatModuleDCStart_V2(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath,ClrInstanceID,ManagedPdbSignature,ManagedPdbAge,ManagedPdbBuildPath,NativePdbSignature,NativePdbAge,NativePdbBuildPath); |
| 2991 | return status; |
| 2992 | } |
| 2993 | |
| 2994 | inline BOOL EventEnabledModuleDCEnd() {return EventPipeEventEnabledModuleDCEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledModuleDCEnd());} |
| 2995 | |
| 2996 | inline ULONG FireEtwModuleDCEnd( |
| 2997 | const unsigned __int64 ModuleID, |
| 2998 | const unsigned __int64 AssemblyID, |
| 2999 | const unsigned int ModuleFlags, |
| 3000 | const unsigned int Reserved1, |
| 3001 | PCWSTR ModuleILPath, |
| 3002 | PCWSTR ModuleNativePath |
| 3003 | ) |
| 3004 | { |
| 3005 | ULONG status = EventPipeWriteEventModuleDCEnd(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath); |
| 3006 | status &= FireEtXplatModuleDCEnd(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath); |
| 3007 | return status; |
| 3008 | } |
| 3009 | |
| 3010 | inline BOOL EventEnabledModuleDCEnd_V1() {return EventPipeEventEnabledModuleDCEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledModuleDCEnd_V1());} |
| 3011 | |
| 3012 | inline ULONG FireEtwModuleDCEnd_V1( |
| 3013 | const unsigned __int64 ModuleID, |
| 3014 | const unsigned __int64 AssemblyID, |
| 3015 | const unsigned int ModuleFlags, |
| 3016 | const unsigned int Reserved1, |
| 3017 | PCWSTR ModuleILPath, |
| 3018 | PCWSTR ModuleNativePath, |
| 3019 | const unsigned short ClrInstanceID |
| 3020 | ) |
| 3021 | { |
| 3022 | ULONG status = EventPipeWriteEventModuleDCEnd_V1(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath,ClrInstanceID); |
| 3023 | status &= FireEtXplatModuleDCEnd_V1(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath,ClrInstanceID); |
| 3024 | return status; |
| 3025 | } |
| 3026 | |
| 3027 | inline BOOL EventEnabledModuleDCEnd_V2() {return EventPipeEventEnabledModuleDCEnd_V2() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledModuleDCEnd_V2());} |
| 3028 | |
| 3029 | inline ULONG FireEtwModuleDCEnd_V2( |
| 3030 | const unsigned __int64 ModuleID, |
| 3031 | const unsigned __int64 AssemblyID, |
| 3032 | const unsigned int ModuleFlags, |
| 3033 | const unsigned int Reserved1, |
| 3034 | PCWSTR ModuleILPath, |
| 3035 | PCWSTR ModuleNativePath, |
| 3036 | const unsigned short ClrInstanceID, |
| 3037 | const GUID* ManagedPdbSignature, |
| 3038 | const unsigned int ManagedPdbAge, |
| 3039 | PCWSTR ManagedPdbBuildPath, |
| 3040 | const GUID* NativePdbSignature, |
| 3041 | const unsigned int NativePdbAge, |
| 3042 | PCWSTR NativePdbBuildPath |
| 3043 | ) |
| 3044 | { |
| 3045 | ULONG status = EventPipeWriteEventModuleDCEnd_V2(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath,ClrInstanceID,ManagedPdbSignature,ManagedPdbAge,ManagedPdbBuildPath,NativePdbSignature,NativePdbAge,NativePdbBuildPath); |
| 3046 | status &= FireEtXplatModuleDCEnd_V2(ModuleID,AssemblyID,ModuleFlags,Reserved1,ModuleILPath,ModuleNativePath,ClrInstanceID,ManagedPdbSignature,ManagedPdbAge,ManagedPdbBuildPath,NativePdbSignature,NativePdbAge,NativePdbBuildPath); |
| 3047 | return status; |
| 3048 | } |
| 3049 | |
| 3050 | inline BOOL EventEnabledAssemblyDCStart() {return EventPipeEventEnabledAssemblyDCStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAssemblyDCStart());} |
| 3051 | |
| 3052 | inline ULONG FireEtwAssemblyDCStart( |
| 3053 | const unsigned __int64 AssemblyID, |
| 3054 | const unsigned __int64 AppDomainID, |
| 3055 | const unsigned int AssemblyFlags, |
| 3056 | PCWSTR FullyQualifiedAssemblyName |
| 3057 | ) |
| 3058 | { |
| 3059 | ULONG status = EventPipeWriteEventAssemblyDCStart(AssemblyID,AppDomainID,AssemblyFlags,FullyQualifiedAssemblyName); |
| 3060 | status &= FireEtXplatAssemblyDCStart(AssemblyID,AppDomainID,AssemblyFlags,FullyQualifiedAssemblyName); |
| 3061 | return status; |
| 3062 | } |
| 3063 | |
| 3064 | inline BOOL EventEnabledAssemblyDCStart_V1() {return EventPipeEventEnabledAssemblyDCStart_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAssemblyDCStart_V1());} |
| 3065 | |
| 3066 | inline ULONG FireEtwAssemblyDCStart_V1( |
| 3067 | const unsigned __int64 AssemblyID, |
| 3068 | const unsigned __int64 AppDomainID, |
| 3069 | const unsigned __int64 BindingID, |
| 3070 | const unsigned int AssemblyFlags, |
| 3071 | PCWSTR FullyQualifiedAssemblyName, |
| 3072 | const unsigned short ClrInstanceID |
| 3073 | ) |
| 3074 | { |
| 3075 | ULONG status = EventPipeWriteEventAssemblyDCStart_V1(AssemblyID,AppDomainID,BindingID,AssemblyFlags,FullyQualifiedAssemblyName,ClrInstanceID); |
| 3076 | status &= FireEtXplatAssemblyDCStart_V1(AssemblyID,AppDomainID,BindingID,AssemblyFlags,FullyQualifiedAssemblyName,ClrInstanceID); |
| 3077 | return status; |
| 3078 | } |
| 3079 | |
| 3080 | inline BOOL EventEnabledAssemblyDCEnd() {return EventPipeEventEnabledAssemblyDCEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAssemblyDCEnd());} |
| 3081 | |
| 3082 | inline ULONG FireEtwAssemblyDCEnd( |
| 3083 | const unsigned __int64 AssemblyID, |
| 3084 | const unsigned __int64 AppDomainID, |
| 3085 | const unsigned int AssemblyFlags, |
| 3086 | PCWSTR FullyQualifiedAssemblyName |
| 3087 | ) |
| 3088 | { |
| 3089 | ULONG status = EventPipeWriteEventAssemblyDCEnd(AssemblyID,AppDomainID,AssemblyFlags,FullyQualifiedAssemblyName); |
| 3090 | status &= FireEtXplatAssemblyDCEnd(AssemblyID,AppDomainID,AssemblyFlags,FullyQualifiedAssemblyName); |
| 3091 | return status; |
| 3092 | } |
| 3093 | |
| 3094 | inline BOOL EventEnabledAssemblyDCEnd_V1() {return EventPipeEventEnabledAssemblyDCEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAssemblyDCEnd_V1());} |
| 3095 | |
| 3096 | inline ULONG FireEtwAssemblyDCEnd_V1( |
| 3097 | const unsigned __int64 AssemblyID, |
| 3098 | const unsigned __int64 AppDomainID, |
| 3099 | const unsigned __int64 BindingID, |
| 3100 | const unsigned int AssemblyFlags, |
| 3101 | PCWSTR FullyQualifiedAssemblyName, |
| 3102 | const unsigned short ClrInstanceID |
| 3103 | ) |
| 3104 | { |
| 3105 | ULONG status = EventPipeWriteEventAssemblyDCEnd_V1(AssemblyID,AppDomainID,BindingID,AssemblyFlags,FullyQualifiedAssemblyName,ClrInstanceID); |
| 3106 | status &= FireEtXplatAssemblyDCEnd_V1(AssemblyID,AppDomainID,BindingID,AssemblyFlags,FullyQualifiedAssemblyName,ClrInstanceID); |
| 3107 | return status; |
| 3108 | } |
| 3109 | |
| 3110 | inline BOOL EventEnabledAppDomainDCStart() {return EventPipeEventEnabledAppDomainDCStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAppDomainDCStart());} |
| 3111 | |
| 3112 | inline ULONG FireEtwAppDomainDCStart( |
| 3113 | const unsigned __int64 AppDomainID, |
| 3114 | const unsigned int AppDomainFlags, |
| 3115 | PCWSTR AppDomainName |
| 3116 | ) |
| 3117 | { |
| 3118 | ULONG status = EventPipeWriteEventAppDomainDCStart(AppDomainID,AppDomainFlags,AppDomainName); |
| 3119 | status &= FireEtXplatAppDomainDCStart(AppDomainID,AppDomainFlags,AppDomainName); |
| 3120 | return status; |
| 3121 | } |
| 3122 | |
| 3123 | inline BOOL EventEnabledAppDomainDCStart_V1() {return EventPipeEventEnabledAppDomainDCStart_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAppDomainDCStart_V1());} |
| 3124 | |
| 3125 | inline ULONG FireEtwAppDomainDCStart_V1( |
| 3126 | const unsigned __int64 AppDomainID, |
| 3127 | const unsigned int AppDomainFlags, |
| 3128 | PCWSTR AppDomainName, |
| 3129 | const unsigned int AppDomainIndex, |
| 3130 | const unsigned short ClrInstanceID |
| 3131 | ) |
| 3132 | { |
| 3133 | ULONG status = EventPipeWriteEventAppDomainDCStart_V1(AppDomainID,AppDomainFlags,AppDomainName,AppDomainIndex,ClrInstanceID); |
| 3134 | status &= FireEtXplatAppDomainDCStart_V1(AppDomainID,AppDomainFlags,AppDomainName,AppDomainIndex,ClrInstanceID); |
| 3135 | return status; |
| 3136 | } |
| 3137 | |
| 3138 | inline BOOL EventEnabledAppDomainDCEnd() {return EventPipeEventEnabledAppDomainDCEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAppDomainDCEnd());} |
| 3139 | |
| 3140 | inline ULONG FireEtwAppDomainDCEnd( |
| 3141 | const unsigned __int64 AppDomainID, |
| 3142 | const unsigned int AppDomainFlags, |
| 3143 | PCWSTR AppDomainName |
| 3144 | ) |
| 3145 | { |
| 3146 | ULONG status = EventPipeWriteEventAppDomainDCEnd(AppDomainID,AppDomainFlags,AppDomainName); |
| 3147 | status &= FireEtXplatAppDomainDCEnd(AppDomainID,AppDomainFlags,AppDomainName); |
| 3148 | return status; |
| 3149 | } |
| 3150 | |
| 3151 | inline BOOL EventEnabledAppDomainDCEnd_V1() {return EventPipeEventEnabledAppDomainDCEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAppDomainDCEnd_V1());} |
| 3152 | |
| 3153 | inline ULONG FireEtwAppDomainDCEnd_V1( |
| 3154 | const unsigned __int64 AppDomainID, |
| 3155 | const unsigned int AppDomainFlags, |
| 3156 | PCWSTR AppDomainName, |
| 3157 | const unsigned int AppDomainIndex, |
| 3158 | const unsigned short ClrInstanceID |
| 3159 | ) |
| 3160 | { |
| 3161 | ULONG status = EventPipeWriteEventAppDomainDCEnd_V1(AppDomainID,AppDomainFlags,AppDomainName,AppDomainIndex,ClrInstanceID); |
| 3162 | status &= FireEtXplatAppDomainDCEnd_V1(AppDomainID,AppDomainFlags,AppDomainName,AppDomainIndex,ClrInstanceID); |
| 3163 | return status; |
| 3164 | } |
| 3165 | |
| 3166 | inline BOOL EventEnabledThreadDC() {return EventPipeEventEnabledThreadDC() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledThreadDC());} |
| 3167 | |
| 3168 | inline ULONG FireEtwThreadDC( |
| 3169 | const unsigned __int64 ManagedThreadID, |
| 3170 | const unsigned __int64 AppDomainID, |
| 3171 | const unsigned int Flags, |
| 3172 | const unsigned int ManagedThreadIndex, |
| 3173 | const unsigned int OSThreadID, |
| 3174 | const unsigned short ClrInstanceID |
| 3175 | ) |
| 3176 | { |
| 3177 | ULONG status = EventPipeWriteEventThreadDC(ManagedThreadID,AppDomainID,Flags,ManagedThreadIndex,OSThreadID,ClrInstanceID); |
| 3178 | status &= FireEtXplatThreadDC(ManagedThreadID,AppDomainID,Flags,ManagedThreadIndex,OSThreadID,ClrInstanceID); |
| 3179 | return status; |
| 3180 | } |
| 3181 | |
| 3182 | inline BOOL EventEnabledModuleRangeDCStart() {return EventPipeEventEnabledModuleRangeDCStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledModuleRangeDCStart());} |
| 3183 | |
| 3184 | inline ULONG FireEtwModuleRangeDCStart( |
| 3185 | const unsigned short ClrInstanceID, |
| 3186 | const unsigned __int64 ModuleID, |
| 3187 | const unsigned int RangeBegin, |
| 3188 | const unsigned int RangeSize, |
| 3189 | const unsigned char RangeType |
| 3190 | ) |
| 3191 | { |
| 3192 | ULONG status = EventPipeWriteEventModuleRangeDCStart(ClrInstanceID,ModuleID,RangeBegin,RangeSize,RangeType); |
| 3193 | status &= FireEtXplatModuleRangeDCStart(ClrInstanceID,ModuleID,RangeBegin,RangeSize,RangeType); |
| 3194 | return status; |
| 3195 | } |
| 3196 | |
| 3197 | inline BOOL EventEnabledModuleRangeDCEnd() {return EventPipeEventEnabledModuleRangeDCEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledModuleRangeDCEnd());} |
| 3198 | |
| 3199 | inline ULONG FireEtwModuleRangeDCEnd( |
| 3200 | const unsigned short ClrInstanceID, |
| 3201 | const unsigned __int64 ModuleID, |
| 3202 | const unsigned int RangeBegin, |
| 3203 | const unsigned int RangeSize, |
| 3204 | const unsigned char RangeType |
| 3205 | ) |
| 3206 | { |
| 3207 | ULONG status = EventPipeWriteEventModuleRangeDCEnd(ClrInstanceID,ModuleID,RangeBegin,RangeSize,RangeType); |
| 3208 | status &= FireEtXplatModuleRangeDCEnd(ClrInstanceID,ModuleID,RangeBegin,RangeSize,RangeType); |
| 3209 | return status; |
| 3210 | } |
| 3211 | |
| 3212 | inline BOOL EventEnabledRuntimeInformationDCStart() {return EventPipeEventEnabledRuntimeInformationDCStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledRuntimeInformationDCStart());} |
| 3213 | |
| 3214 | inline ULONG FireEtwRuntimeInformationDCStart( |
| 3215 | const unsigned short ClrInstanceID, |
| 3216 | const unsigned short Sku, |
| 3217 | const unsigned short BclMajorVersion, |
| 3218 | const unsigned short BclMinorVersion, |
| 3219 | const unsigned short BclBuildNumber, |
| 3220 | const unsigned short BclQfeNumber, |
| 3221 | const unsigned short VMMajorVersion, |
| 3222 | const unsigned short VMMinorVersion, |
| 3223 | const unsigned short VMBuildNumber, |
| 3224 | const unsigned short VMQfeNumber, |
| 3225 | const unsigned int StartupFlags, |
| 3226 | const unsigned char StartupMode, |
| 3227 | PCWSTR CommandLine, |
| 3228 | const GUID* ComObjectGuid, |
| 3229 | PCWSTR RuntimeDllPath |
| 3230 | ) |
| 3231 | { |
| 3232 | ULONG status = EventPipeWriteEventRuntimeInformationDCStart(ClrInstanceID,Sku,BclMajorVersion,BclMinorVersion,BclBuildNumber,BclQfeNumber,VMMajorVersion,VMMinorVersion,VMBuildNumber,VMQfeNumber,StartupFlags,StartupMode,CommandLine,ComObjectGuid,RuntimeDllPath); |
| 3233 | status &= FireEtXplatRuntimeInformationDCStart(ClrInstanceID,Sku,BclMajorVersion,BclMinorVersion,BclBuildNumber,BclQfeNumber,VMMajorVersion,VMMinorVersion,VMBuildNumber,VMQfeNumber,StartupFlags,StartupMode,CommandLine,ComObjectGuid,RuntimeDllPath); |
| 3234 | return status; |
| 3235 | } |
| 3236 | |
| 3237 | |
| 3238 | inline BOOL EventEnabledStressLogEvent() {return EventPipeEventEnabledStressLogEvent() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledStressLogEvent());} |
| 3239 | |
| 3240 | inline ULONG FireEtwStressLogEvent( |
| 3241 | const unsigned int Facility, |
| 3242 | const unsigned char LogLevel, |
| 3243 | LPCSTR Message |
| 3244 | ) |
| 3245 | { |
| 3246 | ULONG status = EventPipeWriteEventStressLogEvent(Facility,LogLevel,Message); |
| 3247 | status &= FireEtXplatStressLogEvent(Facility,LogLevel,Message); |
| 3248 | return status; |
| 3249 | } |
| 3250 | |
| 3251 | inline BOOL EventEnabledStressLogEvent_V1() {return EventPipeEventEnabledStressLogEvent_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledStressLogEvent_V1());} |
| 3252 | |
| 3253 | inline ULONG FireEtwStressLogEvent_V1( |
| 3254 | const unsigned int Facility, |
| 3255 | const unsigned char LogLevel, |
| 3256 | LPCSTR Message, |
| 3257 | const unsigned short ClrInstanceID |
| 3258 | ) |
| 3259 | { |
| 3260 | ULONG status = EventPipeWriteEventStressLogEvent_V1(Facility,LogLevel,Message,ClrInstanceID); |
| 3261 | status &= FireEtXplatStressLogEvent_V1(Facility,LogLevel,Message,ClrInstanceID); |
| 3262 | return status; |
| 3263 | } |
| 3264 | |
| 3265 | inline BOOL EventEnabledCLRStackWalkStress() {return EventPipeEventEnabledCLRStackWalkStress() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledCLRStackWalkStress());} |
| 3266 | |
| 3267 | inline ULONG FireEtwCLRStackWalkStress( |
| 3268 | const unsigned short ClrInstanceID, |
| 3269 | const unsigned char Reserved1, |
| 3270 | const unsigned char Reserved2, |
| 3271 | const unsigned int FrameCount, |
| 3272 | const void** Stack |
| 3273 | ) |
| 3274 | { |
| 3275 | ULONG status = EventPipeWriteEventCLRStackWalkStress(ClrInstanceID,Reserved1,Reserved2,FrameCount,Stack); |
| 3276 | status &= FireEtXplatCLRStackWalkStress(ClrInstanceID,Reserved1,Reserved2,FrameCount,Stack); |
| 3277 | return status; |
| 3278 | } |
| 3279 | |
| 3280 | |
| 3281 | inline BOOL EventEnabledGCDecision() {return EventPipeEventEnabledGCDecision() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCDecision());} |
| 3282 | |
| 3283 | inline ULONG FireEtwGCDecision( |
| 3284 | const BOOL DoCompact |
| 3285 | ) |
| 3286 | { |
| 3287 | ULONG status = EventPipeWriteEventGCDecision(DoCompact); |
| 3288 | status &= FireEtXplatGCDecision(DoCompact); |
| 3289 | return status; |
| 3290 | } |
| 3291 | |
| 3292 | inline BOOL EventEnabledGCDecision_V1() {return EventPipeEventEnabledGCDecision_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCDecision_V1());} |
| 3293 | |
| 3294 | inline ULONG FireEtwGCDecision_V1( |
| 3295 | const BOOL DoCompact, |
| 3296 | const unsigned short ClrInstanceID |
| 3297 | ) |
| 3298 | { |
| 3299 | ULONG status = EventPipeWriteEventGCDecision_V1(DoCompact,ClrInstanceID); |
| 3300 | status &= FireEtXplatGCDecision_V1(DoCompact,ClrInstanceID); |
| 3301 | return status; |
| 3302 | } |
| 3303 | |
| 3304 | inline BOOL EventEnabledGCSettings() {return EventPipeEventEnabledGCSettings() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCSettings());} |
| 3305 | |
| 3306 | inline ULONG FireEtwGCSettings( |
| 3307 | const unsigned __int64 SegmentSize, |
| 3308 | const unsigned __int64 LargeObjectSegmentSize, |
| 3309 | const BOOL ServerGC |
| 3310 | ) |
| 3311 | { |
| 3312 | ULONG status = EventPipeWriteEventGCSettings(SegmentSize,LargeObjectSegmentSize,ServerGC); |
| 3313 | status &= FireEtXplatGCSettings(SegmentSize,LargeObjectSegmentSize,ServerGC); |
| 3314 | return status; |
| 3315 | } |
| 3316 | |
| 3317 | inline BOOL EventEnabledGCSettings_V1() {return EventPipeEventEnabledGCSettings_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCSettings_V1());} |
| 3318 | |
| 3319 | inline ULONG FireEtwGCSettings_V1( |
| 3320 | const unsigned __int64 SegmentSize, |
| 3321 | const unsigned __int64 LargeObjectSegmentSize, |
| 3322 | const BOOL ServerGC, |
| 3323 | const unsigned short ClrInstanceID |
| 3324 | ) |
| 3325 | { |
| 3326 | ULONG status = EventPipeWriteEventGCSettings_V1(SegmentSize,LargeObjectSegmentSize,ServerGC,ClrInstanceID); |
| 3327 | status &= FireEtXplatGCSettings_V1(SegmentSize,LargeObjectSegmentSize,ServerGC,ClrInstanceID); |
| 3328 | return status; |
| 3329 | } |
| 3330 | |
| 3331 | inline BOOL EventEnabledGCOptimized() {return EventPipeEventEnabledGCOptimized() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCOptimized());} |
| 3332 | |
| 3333 | inline ULONG FireEtwGCOptimized( |
| 3334 | const unsigned __int64 DesiredAllocation, |
| 3335 | const unsigned __int64 NewAllocation, |
| 3336 | const unsigned int GenerationNumber |
| 3337 | ) |
| 3338 | { |
| 3339 | ULONG status = EventPipeWriteEventGCOptimized(DesiredAllocation,NewAllocation,GenerationNumber); |
| 3340 | status &= FireEtXplatGCOptimized(DesiredAllocation,NewAllocation,GenerationNumber); |
| 3341 | return status; |
| 3342 | } |
| 3343 | |
| 3344 | inline BOOL EventEnabledGCOptimized_V1() {return EventPipeEventEnabledGCOptimized_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCOptimized_V1());} |
| 3345 | |
| 3346 | inline ULONG FireEtwGCOptimized_V1( |
| 3347 | const unsigned __int64 DesiredAllocation, |
| 3348 | const unsigned __int64 NewAllocation, |
| 3349 | const unsigned int GenerationNumber, |
| 3350 | const unsigned short ClrInstanceID |
| 3351 | ) |
| 3352 | { |
| 3353 | ULONG status = EventPipeWriteEventGCOptimized_V1(DesiredAllocation,NewAllocation,GenerationNumber,ClrInstanceID); |
| 3354 | status &= FireEtXplatGCOptimized_V1(DesiredAllocation,NewAllocation,GenerationNumber,ClrInstanceID); |
| 3355 | return status; |
| 3356 | } |
| 3357 | |
| 3358 | inline BOOL EventEnabledGCPerHeapHistory() {return EventPipeEventEnabledGCPerHeapHistory() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCPerHeapHistory());} |
| 3359 | |
| 3360 | inline ULONG FireEtwGCPerHeapHistory( |
| 3361 | |
| 3362 | ) |
| 3363 | { |
| 3364 | ULONG status = EventPipeWriteEventGCPerHeapHistory(); |
| 3365 | status &= FireEtXplatGCPerHeapHistory(); |
| 3366 | return status; |
| 3367 | } |
| 3368 | |
| 3369 | inline BOOL EventEnabledGCPerHeapHistory_V1() {return EventPipeEventEnabledGCPerHeapHistory_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCPerHeapHistory_V1());} |
| 3370 | |
| 3371 | inline ULONG FireEtwGCPerHeapHistory_V1( |
| 3372 | const unsigned short ClrInstanceID |
| 3373 | ) |
| 3374 | { |
| 3375 | ULONG status = EventPipeWriteEventGCPerHeapHistory_V1(ClrInstanceID); |
| 3376 | status &= FireEtXplatGCPerHeapHistory_V1(ClrInstanceID); |
| 3377 | return status; |
| 3378 | } |
| 3379 | |
| 3380 | inline BOOL EventEnabledGCGlobalHeapHistory() {return EventPipeEventEnabledGCGlobalHeapHistory() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCGlobalHeapHistory());} |
| 3381 | |
| 3382 | inline ULONG FireEtwGCGlobalHeapHistory( |
| 3383 | const unsigned __int64 FinalYoungestDesired, |
| 3384 | const signed int NumHeaps, |
| 3385 | const unsigned int CondemnedGeneration, |
| 3386 | const unsigned int Gen0ReductionCount, |
| 3387 | const unsigned int Reason, |
| 3388 | const unsigned int GlobalMechanisms |
| 3389 | ) |
| 3390 | { |
| 3391 | ULONG status = EventPipeWriteEventGCGlobalHeapHistory(FinalYoungestDesired,NumHeaps,CondemnedGeneration,Gen0ReductionCount,Reason,GlobalMechanisms); |
| 3392 | status &= FireEtXplatGCGlobalHeapHistory(FinalYoungestDesired,NumHeaps,CondemnedGeneration,Gen0ReductionCount,Reason,GlobalMechanisms); |
| 3393 | return status; |
| 3394 | } |
| 3395 | |
| 3396 | inline BOOL EventEnabledGCGlobalHeapHistory_V1() {return EventPipeEventEnabledGCGlobalHeapHistory_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCGlobalHeapHistory_V1());} |
| 3397 | |
| 3398 | inline ULONG FireEtwGCGlobalHeapHistory_V1( |
| 3399 | const unsigned __int64 FinalYoungestDesired, |
| 3400 | const signed int NumHeaps, |
| 3401 | const unsigned int CondemnedGeneration, |
| 3402 | const unsigned int Gen0ReductionCount, |
| 3403 | const unsigned int Reason, |
| 3404 | const unsigned int GlobalMechanisms, |
| 3405 | const unsigned short ClrInstanceID |
| 3406 | ) |
| 3407 | { |
| 3408 | ULONG status = EventPipeWriteEventGCGlobalHeapHistory_V1(FinalYoungestDesired,NumHeaps,CondemnedGeneration,Gen0ReductionCount,Reason,GlobalMechanisms,ClrInstanceID); |
| 3409 | status &= FireEtXplatGCGlobalHeapHistory_V1(FinalYoungestDesired,NumHeaps,CondemnedGeneration,Gen0ReductionCount,Reason,GlobalMechanisms,ClrInstanceID); |
| 3410 | return status; |
| 3411 | } |
| 3412 | |
| 3413 | inline BOOL EventEnabledGCJoin() {return EventPipeEventEnabledGCJoin() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCJoin());} |
| 3414 | |
| 3415 | inline ULONG FireEtwGCJoin( |
| 3416 | const unsigned int Heap, |
| 3417 | const unsigned int JoinTime, |
| 3418 | const unsigned int JoinType |
| 3419 | ) |
| 3420 | { |
| 3421 | ULONG status = EventPipeWriteEventGCJoin(Heap,JoinTime,JoinType); |
| 3422 | status &= FireEtXplatGCJoin(Heap,JoinTime,JoinType); |
| 3423 | return status; |
| 3424 | } |
| 3425 | |
| 3426 | inline BOOL EventEnabledGCJoin_V1() {return EventPipeEventEnabledGCJoin_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCJoin_V1());} |
| 3427 | |
| 3428 | inline ULONG FireEtwGCJoin_V1( |
| 3429 | const unsigned int Heap, |
| 3430 | const unsigned int JoinTime, |
| 3431 | const unsigned int JoinType, |
| 3432 | const unsigned short ClrInstanceID |
| 3433 | ) |
| 3434 | { |
| 3435 | ULONG status = EventPipeWriteEventGCJoin_V1(Heap,JoinTime,JoinType,ClrInstanceID); |
| 3436 | status &= FireEtXplatGCJoin_V1(Heap,JoinTime,JoinType,ClrInstanceID); |
| 3437 | return status; |
| 3438 | } |
| 3439 | |
| 3440 | inline BOOL EventEnabledPrvGCMarkStackRoots() {return EventPipeEventEnabledPrvGCMarkStackRoots() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledPrvGCMarkStackRoots());} |
| 3441 | |
| 3442 | inline ULONG FireEtwPrvGCMarkStackRoots( |
| 3443 | const unsigned int HeapNum |
| 3444 | ) |
| 3445 | { |
| 3446 | ULONG status = EventPipeWriteEventPrvGCMarkStackRoots(HeapNum); |
| 3447 | status &= FireEtXplatPrvGCMarkStackRoots(HeapNum); |
| 3448 | return status; |
| 3449 | } |
| 3450 | |
| 3451 | inline BOOL EventEnabledPrvGCMarkStackRoots_V1() {return EventPipeEventEnabledPrvGCMarkStackRoots_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledPrvGCMarkStackRoots_V1());} |
| 3452 | |
| 3453 | inline ULONG FireEtwPrvGCMarkStackRoots_V1( |
| 3454 | const unsigned int HeapNum, |
| 3455 | const unsigned short ClrInstanceID |
| 3456 | ) |
| 3457 | { |
| 3458 | ULONG status = EventPipeWriteEventPrvGCMarkStackRoots_V1(HeapNum,ClrInstanceID); |
| 3459 | status &= FireEtXplatPrvGCMarkStackRoots_V1(HeapNum,ClrInstanceID); |
| 3460 | return status; |
| 3461 | } |
| 3462 | |
| 3463 | inline BOOL EventEnabledPrvGCMarkFinalizeQueueRoots() {return EventPipeEventEnabledPrvGCMarkFinalizeQueueRoots() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledPrvGCMarkFinalizeQueueRoots());} |
| 3464 | |
| 3465 | inline ULONG FireEtwPrvGCMarkFinalizeQueueRoots( |
| 3466 | const unsigned int HeapNum |
| 3467 | ) |
| 3468 | { |
| 3469 | ULONG status = EventPipeWriteEventPrvGCMarkFinalizeQueueRoots(HeapNum); |
| 3470 | status &= FireEtXplatPrvGCMarkFinalizeQueueRoots(HeapNum); |
| 3471 | return status; |
| 3472 | } |
| 3473 | |
| 3474 | inline BOOL EventEnabledPrvGCMarkFinalizeQueueRoots_V1() {return EventPipeEventEnabledPrvGCMarkFinalizeQueueRoots_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledPrvGCMarkFinalizeQueueRoots_V1());} |
| 3475 | |
| 3476 | inline ULONG FireEtwPrvGCMarkFinalizeQueueRoots_V1( |
| 3477 | const unsigned int HeapNum, |
| 3478 | const unsigned short ClrInstanceID |
| 3479 | ) |
| 3480 | { |
| 3481 | ULONG status = EventPipeWriteEventPrvGCMarkFinalizeQueueRoots_V1(HeapNum,ClrInstanceID); |
| 3482 | status &= FireEtXplatPrvGCMarkFinalizeQueueRoots_V1(HeapNum,ClrInstanceID); |
| 3483 | return status; |
| 3484 | } |
| 3485 | |
| 3486 | inline BOOL EventEnabledPrvGCMarkHandles() {return EventPipeEventEnabledPrvGCMarkHandles() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledPrvGCMarkHandles());} |
| 3487 | |
| 3488 | inline ULONG FireEtwPrvGCMarkHandles( |
| 3489 | const unsigned int HeapNum |
| 3490 | ) |
| 3491 | { |
| 3492 | ULONG status = EventPipeWriteEventPrvGCMarkHandles(HeapNum); |
| 3493 | status &= FireEtXplatPrvGCMarkHandles(HeapNum); |
| 3494 | return status; |
| 3495 | } |
| 3496 | |
| 3497 | inline BOOL EventEnabledPrvGCMarkHandles_V1() {return EventPipeEventEnabledPrvGCMarkHandles_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledPrvGCMarkHandles_V1());} |
| 3498 | |
| 3499 | inline ULONG FireEtwPrvGCMarkHandles_V1( |
| 3500 | const unsigned int HeapNum, |
| 3501 | const unsigned short ClrInstanceID |
| 3502 | ) |
| 3503 | { |
| 3504 | ULONG status = EventPipeWriteEventPrvGCMarkHandles_V1(HeapNum,ClrInstanceID); |
| 3505 | status &= FireEtXplatPrvGCMarkHandles_V1(HeapNum,ClrInstanceID); |
| 3506 | return status; |
| 3507 | } |
| 3508 | |
| 3509 | inline BOOL EventEnabledPrvGCMarkCards() {return EventPipeEventEnabledPrvGCMarkCards() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledPrvGCMarkCards());} |
| 3510 | |
| 3511 | inline ULONG FireEtwPrvGCMarkCards( |
| 3512 | const unsigned int HeapNum |
| 3513 | ) |
| 3514 | { |
| 3515 | ULONG status = EventPipeWriteEventPrvGCMarkCards(HeapNum); |
| 3516 | status &= FireEtXplatPrvGCMarkCards(HeapNum); |
| 3517 | return status; |
| 3518 | } |
| 3519 | |
| 3520 | inline BOOL EventEnabledPrvGCMarkCards_V1() {return EventPipeEventEnabledPrvGCMarkCards_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledPrvGCMarkCards_V1());} |
| 3521 | |
| 3522 | inline ULONG FireEtwPrvGCMarkCards_V1( |
| 3523 | const unsigned int HeapNum, |
| 3524 | const unsigned short ClrInstanceID |
| 3525 | ) |
| 3526 | { |
| 3527 | ULONG status = EventPipeWriteEventPrvGCMarkCards_V1(HeapNum,ClrInstanceID); |
| 3528 | status &= FireEtXplatPrvGCMarkCards_V1(HeapNum,ClrInstanceID); |
| 3529 | return status; |
| 3530 | } |
| 3531 | |
| 3532 | inline BOOL EventEnabledBGCBegin() {return EventPipeEventEnabledBGCBegin() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBGCBegin());} |
| 3533 | |
| 3534 | inline ULONG FireEtwBGCBegin( |
| 3535 | const unsigned short ClrInstanceID |
| 3536 | ) |
| 3537 | { |
| 3538 | ULONG status = EventPipeWriteEventBGCBegin(ClrInstanceID); |
| 3539 | status &= FireEtXplatBGCBegin(ClrInstanceID); |
| 3540 | return status; |
| 3541 | } |
| 3542 | |
| 3543 | inline BOOL EventEnabledBGC1stNonConEnd() {return EventPipeEventEnabledBGC1stNonConEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBGC1stNonConEnd());} |
| 3544 | |
| 3545 | inline ULONG FireEtwBGC1stNonConEnd( |
| 3546 | const unsigned short ClrInstanceID |
| 3547 | ) |
| 3548 | { |
| 3549 | ULONG status = EventPipeWriteEventBGC1stNonConEnd(ClrInstanceID); |
| 3550 | status &= FireEtXplatBGC1stNonConEnd(ClrInstanceID); |
| 3551 | return status; |
| 3552 | } |
| 3553 | |
| 3554 | inline BOOL EventEnabledBGC1stConEnd() {return EventPipeEventEnabledBGC1stConEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBGC1stConEnd());} |
| 3555 | |
| 3556 | inline ULONG FireEtwBGC1stConEnd( |
| 3557 | const unsigned short ClrInstanceID |
| 3558 | ) |
| 3559 | { |
| 3560 | ULONG status = EventPipeWriteEventBGC1stConEnd(ClrInstanceID); |
| 3561 | status &= FireEtXplatBGC1stConEnd(ClrInstanceID); |
| 3562 | return status; |
| 3563 | } |
| 3564 | |
| 3565 | inline BOOL EventEnabledBGC2ndNonConBegin() {return EventPipeEventEnabledBGC2ndNonConBegin() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBGC2ndNonConBegin());} |
| 3566 | |
| 3567 | inline ULONG FireEtwBGC2ndNonConBegin( |
| 3568 | const unsigned short ClrInstanceID |
| 3569 | ) |
| 3570 | { |
| 3571 | ULONG status = EventPipeWriteEventBGC2ndNonConBegin(ClrInstanceID); |
| 3572 | status &= FireEtXplatBGC2ndNonConBegin(ClrInstanceID); |
| 3573 | return status; |
| 3574 | } |
| 3575 | |
| 3576 | inline BOOL EventEnabledBGC2ndNonConEnd() {return EventPipeEventEnabledBGC2ndNonConEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBGC2ndNonConEnd());} |
| 3577 | |
| 3578 | inline ULONG FireEtwBGC2ndNonConEnd( |
| 3579 | const unsigned short ClrInstanceID |
| 3580 | ) |
| 3581 | { |
| 3582 | ULONG status = EventPipeWriteEventBGC2ndNonConEnd(ClrInstanceID); |
| 3583 | status &= FireEtXplatBGC2ndNonConEnd(ClrInstanceID); |
| 3584 | return status; |
| 3585 | } |
| 3586 | |
| 3587 | inline BOOL EventEnabledBGC2ndConBegin() {return EventPipeEventEnabledBGC2ndConBegin() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBGC2ndConBegin());} |
| 3588 | |
| 3589 | inline ULONG FireEtwBGC2ndConBegin( |
| 3590 | const unsigned short ClrInstanceID |
| 3591 | ) |
| 3592 | { |
| 3593 | ULONG status = EventPipeWriteEventBGC2ndConBegin(ClrInstanceID); |
| 3594 | status &= FireEtXplatBGC2ndConBegin(ClrInstanceID); |
| 3595 | return status; |
| 3596 | } |
| 3597 | |
| 3598 | inline BOOL EventEnabledBGC2ndConEnd() {return EventPipeEventEnabledBGC2ndConEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBGC2ndConEnd());} |
| 3599 | |
| 3600 | inline ULONG FireEtwBGC2ndConEnd( |
| 3601 | const unsigned short ClrInstanceID |
| 3602 | ) |
| 3603 | { |
| 3604 | ULONG status = EventPipeWriteEventBGC2ndConEnd(ClrInstanceID); |
| 3605 | status &= FireEtXplatBGC2ndConEnd(ClrInstanceID); |
| 3606 | return status; |
| 3607 | } |
| 3608 | |
| 3609 | inline BOOL EventEnabledBGCPlanEnd() {return EventPipeEventEnabledBGCPlanEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBGCPlanEnd());} |
| 3610 | |
| 3611 | inline ULONG FireEtwBGCPlanEnd( |
| 3612 | const unsigned short ClrInstanceID |
| 3613 | ) |
| 3614 | { |
| 3615 | ULONG status = EventPipeWriteEventBGCPlanEnd(ClrInstanceID); |
| 3616 | status &= FireEtXplatBGCPlanEnd(ClrInstanceID); |
| 3617 | return status; |
| 3618 | } |
| 3619 | |
| 3620 | inline BOOL EventEnabledBGCSweepEnd() {return EventPipeEventEnabledBGCSweepEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBGCSweepEnd());} |
| 3621 | |
| 3622 | inline ULONG FireEtwBGCSweepEnd( |
| 3623 | const unsigned short ClrInstanceID |
| 3624 | ) |
| 3625 | { |
| 3626 | ULONG status = EventPipeWriteEventBGCSweepEnd(ClrInstanceID); |
| 3627 | status &= FireEtXplatBGCSweepEnd(ClrInstanceID); |
| 3628 | return status; |
| 3629 | } |
| 3630 | |
| 3631 | inline BOOL EventEnabledBGCDrainMark() {return EventPipeEventEnabledBGCDrainMark() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBGCDrainMark());} |
| 3632 | |
| 3633 | inline ULONG FireEtwBGCDrainMark( |
| 3634 | const unsigned __int64 Objects, |
| 3635 | const unsigned short ClrInstanceID |
| 3636 | ) |
| 3637 | { |
| 3638 | ULONG status = EventPipeWriteEventBGCDrainMark(Objects,ClrInstanceID); |
| 3639 | status &= FireEtXplatBGCDrainMark(Objects,ClrInstanceID); |
| 3640 | return status; |
| 3641 | } |
| 3642 | |
| 3643 | inline BOOL EventEnabledBGCRevisit() {return EventPipeEventEnabledBGCRevisit() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBGCRevisit());} |
| 3644 | |
| 3645 | inline ULONG FireEtwBGCRevisit( |
| 3646 | const unsigned __int64 Pages, |
| 3647 | const unsigned __int64 Objects, |
| 3648 | const unsigned int IsLarge, |
| 3649 | const unsigned short ClrInstanceID |
| 3650 | ) |
| 3651 | { |
| 3652 | ULONG status = EventPipeWriteEventBGCRevisit(Pages,Objects,IsLarge,ClrInstanceID); |
| 3653 | status &= FireEtXplatBGCRevisit(Pages,Objects,IsLarge,ClrInstanceID); |
| 3654 | return status; |
| 3655 | } |
| 3656 | |
| 3657 | inline BOOL EventEnabledBGCOverflow() {return EventPipeEventEnabledBGCOverflow() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBGCOverflow());} |
| 3658 | |
| 3659 | inline ULONG FireEtwBGCOverflow( |
| 3660 | const unsigned __int64 Min, |
| 3661 | const unsigned __int64 Max, |
| 3662 | const unsigned __int64 Objects, |
| 3663 | const unsigned int IsLarge, |
| 3664 | const unsigned short ClrInstanceID |
| 3665 | ) |
| 3666 | { |
| 3667 | ULONG status = EventPipeWriteEventBGCOverflow(Min,Max,Objects,IsLarge,ClrInstanceID); |
| 3668 | status &= FireEtXplatBGCOverflow(Min,Max,Objects,IsLarge,ClrInstanceID); |
| 3669 | return status; |
| 3670 | } |
| 3671 | |
| 3672 | inline BOOL EventEnabledBGCAllocWaitBegin() {return EventPipeEventEnabledBGCAllocWaitBegin() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBGCAllocWaitBegin());} |
| 3673 | |
| 3674 | inline ULONG FireEtwBGCAllocWaitBegin( |
| 3675 | const unsigned int Reason, |
| 3676 | const unsigned short ClrInstanceID |
| 3677 | ) |
| 3678 | { |
| 3679 | ULONG status = EventPipeWriteEventBGCAllocWaitBegin(Reason,ClrInstanceID); |
| 3680 | status &= FireEtXplatBGCAllocWaitBegin(Reason,ClrInstanceID); |
| 3681 | return status; |
| 3682 | } |
| 3683 | |
| 3684 | inline BOOL EventEnabledBGCAllocWaitEnd() {return EventPipeEventEnabledBGCAllocWaitEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBGCAllocWaitEnd());} |
| 3685 | |
| 3686 | inline ULONG FireEtwBGCAllocWaitEnd( |
| 3687 | const unsigned int Reason, |
| 3688 | const unsigned short ClrInstanceID |
| 3689 | ) |
| 3690 | { |
| 3691 | ULONG status = EventPipeWriteEventBGCAllocWaitEnd(Reason,ClrInstanceID); |
| 3692 | status &= FireEtXplatBGCAllocWaitEnd(Reason,ClrInstanceID); |
| 3693 | return status; |
| 3694 | } |
| 3695 | |
| 3696 | inline BOOL EventEnabledGCFullNotify() {return EventPipeEventEnabledGCFullNotify() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCFullNotify());} |
| 3697 | |
| 3698 | inline ULONG FireEtwGCFullNotify( |
| 3699 | const unsigned int GenNumber, |
| 3700 | const unsigned int IsAlloc |
| 3701 | ) |
| 3702 | { |
| 3703 | ULONG status = EventPipeWriteEventGCFullNotify(GenNumber,IsAlloc); |
| 3704 | status &= FireEtXplatGCFullNotify(GenNumber,IsAlloc); |
| 3705 | return status; |
| 3706 | } |
| 3707 | |
| 3708 | inline BOOL EventEnabledGCFullNotify_V1() {return EventPipeEventEnabledGCFullNotify_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGCFullNotify_V1());} |
| 3709 | |
| 3710 | inline ULONG FireEtwGCFullNotify_V1( |
| 3711 | const unsigned int GenNumber, |
| 3712 | const unsigned int IsAlloc, |
| 3713 | const unsigned short ClrInstanceID |
| 3714 | ) |
| 3715 | { |
| 3716 | ULONG status = EventPipeWriteEventGCFullNotify_V1(GenNumber,IsAlloc,ClrInstanceID); |
| 3717 | status &= FireEtXplatGCFullNotify_V1(GenNumber,IsAlloc,ClrInstanceID); |
| 3718 | return status; |
| 3719 | } |
| 3720 | |
| 3721 | inline BOOL EventEnabledBGC1stSweepEnd() {return EventPipeEventEnabledBGC1stSweepEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBGC1stSweepEnd());} |
| 3722 | |
| 3723 | inline ULONG FireEtwBGC1stSweepEnd( |
| 3724 | const unsigned int GenNumber, |
| 3725 | const unsigned short ClrInstanceID |
| 3726 | ) |
| 3727 | { |
| 3728 | ULONG status = EventPipeWriteEventBGC1stSweepEnd(GenNumber,ClrInstanceID); |
| 3729 | status &= FireEtXplatBGC1stSweepEnd(GenNumber,ClrInstanceID); |
| 3730 | return status; |
| 3731 | } |
| 3732 | |
| 3733 | inline BOOL EventEnabledEEStartupStart() {return EventPipeEventEnabledEEStartupStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledEEStartupStart());} |
| 3734 | |
| 3735 | inline ULONG FireEtwEEStartupStart( |
| 3736 | |
| 3737 | ) |
| 3738 | { |
| 3739 | ULONG status = EventPipeWriteEventEEStartupStart(); |
| 3740 | status &= FireEtXplatEEStartupStart(); |
| 3741 | return status; |
| 3742 | } |
| 3743 | |
| 3744 | inline BOOL EventEnabledEEStartupStart_V1() {return EventPipeEventEnabledEEStartupStart_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledEEStartupStart_V1());} |
| 3745 | |
| 3746 | inline ULONG FireEtwEEStartupStart_V1( |
| 3747 | const unsigned short ClrInstanceID |
| 3748 | ) |
| 3749 | { |
| 3750 | ULONG status = EventPipeWriteEventEEStartupStart_V1(ClrInstanceID); |
| 3751 | status &= FireEtXplatEEStartupStart_V1(ClrInstanceID); |
| 3752 | return status; |
| 3753 | } |
| 3754 | |
| 3755 | inline BOOL EventEnabledEEStartupEnd() {return EventPipeEventEnabledEEStartupEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledEEStartupEnd());} |
| 3756 | |
| 3757 | inline ULONG FireEtwEEStartupEnd( |
| 3758 | |
| 3759 | ) |
| 3760 | { |
| 3761 | ULONG status = EventPipeWriteEventEEStartupEnd(); |
| 3762 | status &= FireEtXplatEEStartupEnd(); |
| 3763 | return status; |
| 3764 | } |
| 3765 | |
| 3766 | inline BOOL EventEnabledEEStartupEnd_V1() {return EventPipeEventEnabledEEStartupEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledEEStartupEnd_V1());} |
| 3767 | |
| 3768 | inline ULONG FireEtwEEStartupEnd_V1( |
| 3769 | const unsigned short ClrInstanceID |
| 3770 | ) |
| 3771 | { |
| 3772 | ULONG status = EventPipeWriteEventEEStartupEnd_V1(ClrInstanceID); |
| 3773 | status &= FireEtXplatEEStartupEnd_V1(ClrInstanceID); |
| 3774 | return status; |
| 3775 | } |
| 3776 | |
| 3777 | inline BOOL EventEnabledEEConfigSetup() {return EventPipeEventEnabledEEConfigSetup() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledEEConfigSetup());} |
| 3778 | |
| 3779 | inline ULONG FireEtwEEConfigSetup( |
| 3780 | |
| 3781 | ) |
| 3782 | { |
| 3783 | ULONG status = EventPipeWriteEventEEConfigSetup(); |
| 3784 | status &= FireEtXplatEEConfigSetup(); |
| 3785 | return status; |
| 3786 | } |
| 3787 | |
| 3788 | inline BOOL EventEnabledEEConfigSetup_V1() {return EventPipeEventEnabledEEConfigSetup_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledEEConfigSetup_V1());} |
| 3789 | |
| 3790 | inline ULONG FireEtwEEConfigSetup_V1( |
| 3791 | const unsigned short ClrInstanceID |
| 3792 | ) |
| 3793 | { |
| 3794 | ULONG status = EventPipeWriteEventEEConfigSetup_V1(ClrInstanceID); |
| 3795 | status &= FireEtXplatEEConfigSetup_V1(ClrInstanceID); |
| 3796 | return status; |
| 3797 | } |
| 3798 | |
| 3799 | inline BOOL EventEnabledEEConfigSetupEnd() {return EventPipeEventEnabledEEConfigSetupEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledEEConfigSetupEnd());} |
| 3800 | |
| 3801 | inline ULONG FireEtwEEConfigSetupEnd( |
| 3802 | |
| 3803 | ) |
| 3804 | { |
| 3805 | ULONG status = EventPipeWriteEventEEConfigSetupEnd(); |
| 3806 | status &= FireEtXplatEEConfigSetupEnd(); |
| 3807 | return status; |
| 3808 | } |
| 3809 | |
| 3810 | inline BOOL EventEnabledEEConfigSetupEnd_V1() {return EventPipeEventEnabledEEConfigSetupEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledEEConfigSetupEnd_V1());} |
| 3811 | |
| 3812 | inline ULONG FireEtwEEConfigSetupEnd_V1( |
| 3813 | const unsigned short ClrInstanceID |
| 3814 | ) |
| 3815 | { |
| 3816 | ULONG status = EventPipeWriteEventEEConfigSetupEnd_V1(ClrInstanceID); |
| 3817 | status &= FireEtXplatEEConfigSetupEnd_V1(ClrInstanceID); |
| 3818 | return status; |
| 3819 | } |
| 3820 | |
| 3821 | inline BOOL EventEnabledLdSysBases() {return EventPipeEventEnabledLdSysBases() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledLdSysBases());} |
| 3822 | |
| 3823 | inline ULONG FireEtwLdSysBases( |
| 3824 | |
| 3825 | ) |
| 3826 | { |
| 3827 | ULONG status = EventPipeWriteEventLdSysBases(); |
| 3828 | status &= FireEtXplatLdSysBases(); |
| 3829 | return status; |
| 3830 | } |
| 3831 | |
| 3832 | inline BOOL EventEnabledLdSysBases_V1() {return EventPipeEventEnabledLdSysBases_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledLdSysBases_V1());} |
| 3833 | |
| 3834 | inline ULONG FireEtwLdSysBases_V1( |
| 3835 | const unsigned short ClrInstanceID |
| 3836 | ) |
| 3837 | { |
| 3838 | ULONG status = EventPipeWriteEventLdSysBases_V1(ClrInstanceID); |
| 3839 | status &= FireEtXplatLdSysBases_V1(ClrInstanceID); |
| 3840 | return status; |
| 3841 | } |
| 3842 | |
| 3843 | inline BOOL EventEnabledLdSysBasesEnd() {return EventPipeEventEnabledLdSysBasesEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledLdSysBasesEnd());} |
| 3844 | |
| 3845 | inline ULONG FireEtwLdSysBasesEnd( |
| 3846 | |
| 3847 | ) |
| 3848 | { |
| 3849 | ULONG status = EventPipeWriteEventLdSysBasesEnd(); |
| 3850 | status &= FireEtXplatLdSysBasesEnd(); |
| 3851 | return status; |
| 3852 | } |
| 3853 | |
| 3854 | inline BOOL EventEnabledLdSysBasesEnd_V1() {return EventPipeEventEnabledLdSysBasesEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledLdSysBasesEnd_V1());} |
| 3855 | |
| 3856 | inline ULONG FireEtwLdSysBasesEnd_V1( |
| 3857 | const unsigned short ClrInstanceID |
| 3858 | ) |
| 3859 | { |
| 3860 | ULONG status = EventPipeWriteEventLdSysBasesEnd_V1(ClrInstanceID); |
| 3861 | status &= FireEtXplatLdSysBasesEnd_V1(ClrInstanceID); |
| 3862 | return status; |
| 3863 | } |
| 3864 | |
| 3865 | inline BOOL EventEnabledExecExe() {return EventPipeEventEnabledExecExe() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledExecExe());} |
| 3866 | |
| 3867 | inline ULONG FireEtwExecExe( |
| 3868 | |
| 3869 | ) |
| 3870 | { |
| 3871 | ULONG status = EventPipeWriteEventExecExe(); |
| 3872 | status &= FireEtXplatExecExe(); |
| 3873 | return status; |
| 3874 | } |
| 3875 | |
| 3876 | inline BOOL EventEnabledExecExe_V1() {return EventPipeEventEnabledExecExe_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledExecExe_V1());} |
| 3877 | |
| 3878 | inline ULONG FireEtwExecExe_V1( |
| 3879 | const unsigned short ClrInstanceID |
| 3880 | ) |
| 3881 | { |
| 3882 | ULONG status = EventPipeWriteEventExecExe_V1(ClrInstanceID); |
| 3883 | status &= FireEtXplatExecExe_V1(ClrInstanceID); |
| 3884 | return status; |
| 3885 | } |
| 3886 | |
| 3887 | inline BOOL EventEnabledExecExeEnd() {return EventPipeEventEnabledExecExeEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledExecExeEnd());} |
| 3888 | |
| 3889 | inline ULONG FireEtwExecExeEnd( |
| 3890 | |
| 3891 | ) |
| 3892 | { |
| 3893 | ULONG status = EventPipeWriteEventExecExeEnd(); |
| 3894 | status &= FireEtXplatExecExeEnd(); |
| 3895 | return status; |
| 3896 | } |
| 3897 | |
| 3898 | inline BOOL EventEnabledExecExeEnd_V1() {return EventPipeEventEnabledExecExeEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledExecExeEnd_V1());} |
| 3899 | |
| 3900 | inline ULONG FireEtwExecExeEnd_V1( |
| 3901 | const unsigned short ClrInstanceID |
| 3902 | ) |
| 3903 | { |
| 3904 | ULONG status = EventPipeWriteEventExecExeEnd_V1(ClrInstanceID); |
| 3905 | status &= FireEtXplatExecExeEnd_V1(ClrInstanceID); |
| 3906 | return status; |
| 3907 | } |
| 3908 | |
| 3909 | inline BOOL EventEnabledMain() {return EventPipeEventEnabledMain() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMain());} |
| 3910 | |
| 3911 | inline ULONG FireEtwMain( |
| 3912 | |
| 3913 | ) |
| 3914 | { |
| 3915 | ULONG status = EventPipeWriteEventMain(); |
| 3916 | status &= FireEtXplatMain(); |
| 3917 | return status; |
| 3918 | } |
| 3919 | |
| 3920 | inline BOOL EventEnabledMain_V1() {return EventPipeEventEnabledMain_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMain_V1());} |
| 3921 | |
| 3922 | inline ULONG FireEtwMain_V1( |
| 3923 | const unsigned short ClrInstanceID |
| 3924 | ) |
| 3925 | { |
| 3926 | ULONG status = EventPipeWriteEventMain_V1(ClrInstanceID); |
| 3927 | status &= FireEtXplatMain_V1(ClrInstanceID); |
| 3928 | return status; |
| 3929 | } |
| 3930 | |
| 3931 | inline BOOL EventEnabledMainEnd() {return EventPipeEventEnabledMainEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMainEnd());} |
| 3932 | |
| 3933 | inline ULONG FireEtwMainEnd( |
| 3934 | |
| 3935 | ) |
| 3936 | { |
| 3937 | ULONG status = EventPipeWriteEventMainEnd(); |
| 3938 | status &= FireEtXplatMainEnd(); |
| 3939 | return status; |
| 3940 | } |
| 3941 | |
| 3942 | inline BOOL EventEnabledMainEnd_V1() {return EventPipeEventEnabledMainEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMainEnd_V1());} |
| 3943 | |
| 3944 | inline ULONG FireEtwMainEnd_V1( |
| 3945 | const unsigned short ClrInstanceID |
| 3946 | ) |
| 3947 | { |
| 3948 | ULONG status = EventPipeWriteEventMainEnd_V1(ClrInstanceID); |
| 3949 | status &= FireEtXplatMainEnd_V1(ClrInstanceID); |
| 3950 | return status; |
| 3951 | } |
| 3952 | |
| 3953 | inline BOOL EventEnabledApplyPolicyStart() {return EventPipeEventEnabledApplyPolicyStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledApplyPolicyStart());} |
| 3954 | |
| 3955 | inline ULONG FireEtwApplyPolicyStart( |
| 3956 | |
| 3957 | ) |
| 3958 | { |
| 3959 | ULONG status = EventPipeWriteEventApplyPolicyStart(); |
| 3960 | status &= FireEtXplatApplyPolicyStart(); |
| 3961 | return status; |
| 3962 | } |
| 3963 | |
| 3964 | inline BOOL EventEnabledApplyPolicyStart_V1() {return EventPipeEventEnabledApplyPolicyStart_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledApplyPolicyStart_V1());} |
| 3965 | |
| 3966 | inline ULONG FireEtwApplyPolicyStart_V1( |
| 3967 | const unsigned short ClrInstanceID |
| 3968 | ) |
| 3969 | { |
| 3970 | ULONG status = EventPipeWriteEventApplyPolicyStart_V1(ClrInstanceID); |
| 3971 | status &= FireEtXplatApplyPolicyStart_V1(ClrInstanceID); |
| 3972 | return status; |
| 3973 | } |
| 3974 | |
| 3975 | inline BOOL EventEnabledApplyPolicyEnd() {return EventPipeEventEnabledApplyPolicyEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledApplyPolicyEnd());} |
| 3976 | |
| 3977 | inline ULONG FireEtwApplyPolicyEnd( |
| 3978 | |
| 3979 | ) |
| 3980 | { |
| 3981 | ULONG status = EventPipeWriteEventApplyPolicyEnd(); |
| 3982 | status &= FireEtXplatApplyPolicyEnd(); |
| 3983 | return status; |
| 3984 | } |
| 3985 | |
| 3986 | inline BOOL EventEnabledApplyPolicyEnd_V1() {return EventPipeEventEnabledApplyPolicyEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledApplyPolicyEnd_V1());} |
| 3987 | |
| 3988 | inline ULONG FireEtwApplyPolicyEnd_V1( |
| 3989 | const unsigned short ClrInstanceID |
| 3990 | ) |
| 3991 | { |
| 3992 | ULONG status = EventPipeWriteEventApplyPolicyEnd_V1(ClrInstanceID); |
| 3993 | status &= FireEtXplatApplyPolicyEnd_V1(ClrInstanceID); |
| 3994 | return status; |
| 3995 | } |
| 3996 | |
| 3997 | inline BOOL EventEnabledLdLibShFolder() {return EventPipeEventEnabledLdLibShFolder() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledLdLibShFolder());} |
| 3998 | |
| 3999 | inline ULONG FireEtwLdLibShFolder( |
| 4000 | |
| 4001 | ) |
| 4002 | { |
| 4003 | ULONG status = EventPipeWriteEventLdLibShFolder(); |
| 4004 | status &= FireEtXplatLdLibShFolder(); |
| 4005 | return status; |
| 4006 | } |
| 4007 | |
| 4008 | inline BOOL EventEnabledLdLibShFolder_V1() {return EventPipeEventEnabledLdLibShFolder_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledLdLibShFolder_V1());} |
| 4009 | |
| 4010 | inline ULONG FireEtwLdLibShFolder_V1( |
| 4011 | const unsigned short ClrInstanceID |
| 4012 | ) |
| 4013 | { |
| 4014 | ULONG status = EventPipeWriteEventLdLibShFolder_V1(ClrInstanceID); |
| 4015 | status &= FireEtXplatLdLibShFolder_V1(ClrInstanceID); |
| 4016 | return status; |
| 4017 | } |
| 4018 | |
| 4019 | inline BOOL EventEnabledLdLibShFolderEnd() {return EventPipeEventEnabledLdLibShFolderEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledLdLibShFolderEnd());} |
| 4020 | |
| 4021 | inline ULONG FireEtwLdLibShFolderEnd( |
| 4022 | |
| 4023 | ) |
| 4024 | { |
| 4025 | ULONG status = EventPipeWriteEventLdLibShFolderEnd(); |
| 4026 | status &= FireEtXplatLdLibShFolderEnd(); |
| 4027 | return status; |
| 4028 | } |
| 4029 | |
| 4030 | inline BOOL EventEnabledLdLibShFolderEnd_V1() {return EventPipeEventEnabledLdLibShFolderEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledLdLibShFolderEnd_V1());} |
| 4031 | |
| 4032 | inline ULONG FireEtwLdLibShFolderEnd_V1( |
| 4033 | const unsigned short ClrInstanceID |
| 4034 | ) |
| 4035 | { |
| 4036 | ULONG status = EventPipeWriteEventLdLibShFolderEnd_V1(ClrInstanceID); |
| 4037 | status &= FireEtXplatLdLibShFolderEnd_V1(ClrInstanceID); |
| 4038 | return status; |
| 4039 | } |
| 4040 | |
| 4041 | inline BOOL EventEnabledPrestubWorker() {return EventPipeEventEnabledPrestubWorker() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledPrestubWorker());} |
| 4042 | |
| 4043 | inline ULONG FireEtwPrestubWorker( |
| 4044 | |
| 4045 | ) |
| 4046 | { |
| 4047 | ULONG status = EventPipeWriteEventPrestubWorker(); |
| 4048 | status &= FireEtXplatPrestubWorker(); |
| 4049 | return status; |
| 4050 | } |
| 4051 | |
| 4052 | inline BOOL EventEnabledPrestubWorker_V1() {return EventPipeEventEnabledPrestubWorker_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledPrestubWorker_V1());} |
| 4053 | |
| 4054 | inline ULONG FireEtwPrestubWorker_V1( |
| 4055 | const unsigned short ClrInstanceID |
| 4056 | ) |
| 4057 | { |
| 4058 | ULONG status = EventPipeWriteEventPrestubWorker_V1(ClrInstanceID); |
| 4059 | status &= FireEtXplatPrestubWorker_V1(ClrInstanceID); |
| 4060 | return status; |
| 4061 | } |
| 4062 | |
| 4063 | inline BOOL EventEnabledPrestubWorkerEnd() {return EventPipeEventEnabledPrestubWorkerEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledPrestubWorkerEnd());} |
| 4064 | |
| 4065 | inline ULONG FireEtwPrestubWorkerEnd( |
| 4066 | |
| 4067 | ) |
| 4068 | { |
| 4069 | ULONG status = EventPipeWriteEventPrestubWorkerEnd(); |
| 4070 | status &= FireEtXplatPrestubWorkerEnd(); |
| 4071 | return status; |
| 4072 | } |
| 4073 | |
| 4074 | inline BOOL EventEnabledPrestubWorkerEnd_V1() {return EventPipeEventEnabledPrestubWorkerEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledPrestubWorkerEnd_V1());} |
| 4075 | |
| 4076 | inline ULONG FireEtwPrestubWorkerEnd_V1( |
| 4077 | const unsigned short ClrInstanceID |
| 4078 | ) |
| 4079 | { |
| 4080 | ULONG status = EventPipeWriteEventPrestubWorkerEnd_V1(ClrInstanceID); |
| 4081 | status &= FireEtXplatPrestubWorkerEnd_V1(ClrInstanceID); |
| 4082 | return status; |
| 4083 | } |
| 4084 | |
| 4085 | inline BOOL EventEnabledGetInstallationStart() {return EventPipeEventEnabledGetInstallationStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGetInstallationStart());} |
| 4086 | |
| 4087 | inline ULONG FireEtwGetInstallationStart( |
| 4088 | |
| 4089 | ) |
| 4090 | { |
| 4091 | ULONG status = EventPipeWriteEventGetInstallationStart(); |
| 4092 | status &= FireEtXplatGetInstallationStart(); |
| 4093 | return status; |
| 4094 | } |
| 4095 | |
| 4096 | inline BOOL EventEnabledGetInstallationStart_V1() {return EventPipeEventEnabledGetInstallationStart_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGetInstallationStart_V1());} |
| 4097 | |
| 4098 | inline ULONG FireEtwGetInstallationStart_V1( |
| 4099 | const unsigned short ClrInstanceID |
| 4100 | ) |
| 4101 | { |
| 4102 | ULONG status = EventPipeWriteEventGetInstallationStart_V1(ClrInstanceID); |
| 4103 | status &= FireEtXplatGetInstallationStart_V1(ClrInstanceID); |
| 4104 | return status; |
| 4105 | } |
| 4106 | |
| 4107 | inline BOOL EventEnabledGetInstallationEnd() {return EventPipeEventEnabledGetInstallationEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGetInstallationEnd());} |
| 4108 | |
| 4109 | inline ULONG FireEtwGetInstallationEnd( |
| 4110 | |
| 4111 | ) |
| 4112 | { |
| 4113 | ULONG status = EventPipeWriteEventGetInstallationEnd(); |
| 4114 | status &= FireEtXplatGetInstallationEnd(); |
| 4115 | return status; |
| 4116 | } |
| 4117 | |
| 4118 | inline BOOL EventEnabledGetInstallationEnd_V1() {return EventPipeEventEnabledGetInstallationEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGetInstallationEnd_V1());} |
| 4119 | |
| 4120 | inline ULONG FireEtwGetInstallationEnd_V1( |
| 4121 | const unsigned short ClrInstanceID |
| 4122 | ) |
| 4123 | { |
| 4124 | ULONG status = EventPipeWriteEventGetInstallationEnd_V1(ClrInstanceID); |
| 4125 | status &= FireEtXplatGetInstallationEnd_V1(ClrInstanceID); |
| 4126 | return status; |
| 4127 | } |
| 4128 | |
| 4129 | inline BOOL EventEnabledOpenHModule() {return EventPipeEventEnabledOpenHModule() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledOpenHModule());} |
| 4130 | |
| 4131 | inline ULONG FireEtwOpenHModule( |
| 4132 | |
| 4133 | ) |
| 4134 | { |
| 4135 | ULONG status = EventPipeWriteEventOpenHModule(); |
| 4136 | status &= FireEtXplatOpenHModule(); |
| 4137 | return status; |
| 4138 | } |
| 4139 | |
| 4140 | inline BOOL EventEnabledOpenHModule_V1() {return EventPipeEventEnabledOpenHModule_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledOpenHModule_V1());} |
| 4141 | |
| 4142 | inline ULONG FireEtwOpenHModule_V1( |
| 4143 | const unsigned short ClrInstanceID |
| 4144 | ) |
| 4145 | { |
| 4146 | ULONG status = EventPipeWriteEventOpenHModule_V1(ClrInstanceID); |
| 4147 | status &= FireEtXplatOpenHModule_V1(ClrInstanceID); |
| 4148 | return status; |
| 4149 | } |
| 4150 | |
| 4151 | inline BOOL EventEnabledOpenHModuleEnd() {return EventPipeEventEnabledOpenHModuleEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledOpenHModuleEnd());} |
| 4152 | |
| 4153 | inline ULONG FireEtwOpenHModuleEnd( |
| 4154 | |
| 4155 | ) |
| 4156 | { |
| 4157 | ULONG status = EventPipeWriteEventOpenHModuleEnd(); |
| 4158 | status &= FireEtXplatOpenHModuleEnd(); |
| 4159 | return status; |
| 4160 | } |
| 4161 | |
| 4162 | inline BOOL EventEnabledOpenHModuleEnd_V1() {return EventPipeEventEnabledOpenHModuleEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledOpenHModuleEnd_V1());} |
| 4163 | |
| 4164 | inline ULONG FireEtwOpenHModuleEnd_V1( |
| 4165 | const unsigned short ClrInstanceID |
| 4166 | ) |
| 4167 | { |
| 4168 | ULONG status = EventPipeWriteEventOpenHModuleEnd_V1(ClrInstanceID); |
| 4169 | status &= FireEtXplatOpenHModuleEnd_V1(ClrInstanceID); |
| 4170 | return status; |
| 4171 | } |
| 4172 | |
| 4173 | inline BOOL EventEnabledExplicitBindStart() {return EventPipeEventEnabledExplicitBindStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledExplicitBindStart());} |
| 4174 | |
| 4175 | inline ULONG FireEtwExplicitBindStart( |
| 4176 | |
| 4177 | ) |
| 4178 | { |
| 4179 | ULONG status = EventPipeWriteEventExplicitBindStart(); |
| 4180 | status &= FireEtXplatExplicitBindStart(); |
| 4181 | return status; |
| 4182 | } |
| 4183 | |
| 4184 | inline BOOL EventEnabledExplicitBindStart_V1() {return EventPipeEventEnabledExplicitBindStart_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledExplicitBindStart_V1());} |
| 4185 | |
| 4186 | inline ULONG FireEtwExplicitBindStart_V1( |
| 4187 | const unsigned short ClrInstanceID |
| 4188 | ) |
| 4189 | { |
| 4190 | ULONG status = EventPipeWriteEventExplicitBindStart_V1(ClrInstanceID); |
| 4191 | status &= FireEtXplatExplicitBindStart_V1(ClrInstanceID); |
| 4192 | return status; |
| 4193 | } |
| 4194 | |
| 4195 | inline BOOL EventEnabledExplicitBindEnd() {return EventPipeEventEnabledExplicitBindEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledExplicitBindEnd());} |
| 4196 | |
| 4197 | inline ULONG FireEtwExplicitBindEnd( |
| 4198 | |
| 4199 | ) |
| 4200 | { |
| 4201 | ULONG status = EventPipeWriteEventExplicitBindEnd(); |
| 4202 | status &= FireEtXplatExplicitBindEnd(); |
| 4203 | return status; |
| 4204 | } |
| 4205 | |
| 4206 | inline BOOL EventEnabledExplicitBindEnd_V1() {return EventPipeEventEnabledExplicitBindEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledExplicitBindEnd_V1());} |
| 4207 | |
| 4208 | inline ULONG FireEtwExplicitBindEnd_V1( |
| 4209 | const unsigned short ClrInstanceID |
| 4210 | ) |
| 4211 | { |
| 4212 | ULONG status = EventPipeWriteEventExplicitBindEnd_V1(ClrInstanceID); |
| 4213 | status &= FireEtXplatExplicitBindEnd_V1(ClrInstanceID); |
| 4214 | return status; |
| 4215 | } |
| 4216 | |
| 4217 | inline BOOL EventEnabledParseXml() {return EventPipeEventEnabledParseXml() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledParseXml());} |
| 4218 | |
| 4219 | inline ULONG FireEtwParseXml( |
| 4220 | |
| 4221 | ) |
| 4222 | { |
| 4223 | ULONG status = EventPipeWriteEventParseXml(); |
| 4224 | status &= FireEtXplatParseXml(); |
| 4225 | return status; |
| 4226 | } |
| 4227 | |
| 4228 | inline BOOL EventEnabledParseXml_V1() {return EventPipeEventEnabledParseXml_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledParseXml_V1());} |
| 4229 | |
| 4230 | inline ULONG FireEtwParseXml_V1( |
| 4231 | const unsigned short ClrInstanceID |
| 4232 | ) |
| 4233 | { |
| 4234 | ULONG status = EventPipeWriteEventParseXml_V1(ClrInstanceID); |
| 4235 | status &= FireEtXplatParseXml_V1(ClrInstanceID); |
| 4236 | return status; |
| 4237 | } |
| 4238 | |
| 4239 | inline BOOL EventEnabledParseXmlEnd() {return EventPipeEventEnabledParseXmlEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledParseXmlEnd());} |
| 4240 | |
| 4241 | inline ULONG FireEtwParseXmlEnd( |
| 4242 | |
| 4243 | ) |
| 4244 | { |
| 4245 | ULONG status = EventPipeWriteEventParseXmlEnd(); |
| 4246 | status &= FireEtXplatParseXmlEnd(); |
| 4247 | return status; |
| 4248 | } |
| 4249 | |
| 4250 | inline BOOL EventEnabledParseXmlEnd_V1() {return EventPipeEventEnabledParseXmlEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledParseXmlEnd_V1());} |
| 4251 | |
| 4252 | inline ULONG FireEtwParseXmlEnd_V1( |
| 4253 | const unsigned short ClrInstanceID |
| 4254 | ) |
| 4255 | { |
| 4256 | ULONG status = EventPipeWriteEventParseXmlEnd_V1(ClrInstanceID); |
| 4257 | status &= FireEtXplatParseXmlEnd_V1(ClrInstanceID); |
| 4258 | return status; |
| 4259 | } |
| 4260 | |
| 4261 | inline BOOL EventEnabledInitDefaultDomain() {return EventPipeEventEnabledInitDefaultDomain() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledInitDefaultDomain());} |
| 4262 | |
| 4263 | inline ULONG FireEtwInitDefaultDomain( |
| 4264 | |
| 4265 | ) |
| 4266 | { |
| 4267 | ULONG status = EventPipeWriteEventInitDefaultDomain(); |
| 4268 | status &= FireEtXplatInitDefaultDomain(); |
| 4269 | return status; |
| 4270 | } |
| 4271 | |
| 4272 | inline BOOL EventEnabledInitDefaultDomain_V1() {return EventPipeEventEnabledInitDefaultDomain_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledInitDefaultDomain_V1());} |
| 4273 | |
| 4274 | inline ULONG FireEtwInitDefaultDomain_V1( |
| 4275 | const unsigned short ClrInstanceID |
| 4276 | ) |
| 4277 | { |
| 4278 | ULONG status = EventPipeWriteEventInitDefaultDomain_V1(ClrInstanceID); |
| 4279 | status &= FireEtXplatInitDefaultDomain_V1(ClrInstanceID); |
| 4280 | return status; |
| 4281 | } |
| 4282 | |
| 4283 | inline BOOL EventEnabledInitDefaultDomainEnd() {return EventPipeEventEnabledInitDefaultDomainEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledInitDefaultDomainEnd());} |
| 4284 | |
| 4285 | inline ULONG FireEtwInitDefaultDomainEnd( |
| 4286 | |
| 4287 | ) |
| 4288 | { |
| 4289 | ULONG status = EventPipeWriteEventInitDefaultDomainEnd(); |
| 4290 | status &= FireEtXplatInitDefaultDomainEnd(); |
| 4291 | return status; |
| 4292 | } |
| 4293 | |
| 4294 | inline BOOL EventEnabledInitDefaultDomainEnd_V1() {return EventPipeEventEnabledInitDefaultDomainEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledInitDefaultDomainEnd_V1());} |
| 4295 | |
| 4296 | inline ULONG FireEtwInitDefaultDomainEnd_V1( |
| 4297 | const unsigned short ClrInstanceID |
| 4298 | ) |
| 4299 | { |
| 4300 | ULONG status = EventPipeWriteEventInitDefaultDomainEnd_V1(ClrInstanceID); |
| 4301 | status &= FireEtXplatInitDefaultDomainEnd_V1(ClrInstanceID); |
| 4302 | return status; |
| 4303 | } |
| 4304 | |
| 4305 | inline BOOL EventEnabledInitSecurity() {return EventPipeEventEnabledInitSecurity() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledInitSecurity());} |
| 4306 | |
| 4307 | inline ULONG FireEtwInitSecurity( |
| 4308 | |
| 4309 | ) |
| 4310 | { |
| 4311 | ULONG status = EventPipeWriteEventInitSecurity(); |
| 4312 | status &= FireEtXplatInitSecurity(); |
| 4313 | return status; |
| 4314 | } |
| 4315 | |
| 4316 | inline BOOL EventEnabledInitSecurity_V1() {return EventPipeEventEnabledInitSecurity_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledInitSecurity_V1());} |
| 4317 | |
| 4318 | inline ULONG FireEtwInitSecurity_V1( |
| 4319 | const unsigned short ClrInstanceID |
| 4320 | ) |
| 4321 | { |
| 4322 | ULONG status = EventPipeWriteEventInitSecurity_V1(ClrInstanceID); |
| 4323 | status &= FireEtXplatInitSecurity_V1(ClrInstanceID); |
| 4324 | return status; |
| 4325 | } |
| 4326 | |
| 4327 | inline BOOL EventEnabledInitSecurityEnd() {return EventPipeEventEnabledInitSecurityEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledInitSecurityEnd());} |
| 4328 | |
| 4329 | inline ULONG FireEtwInitSecurityEnd( |
| 4330 | |
| 4331 | ) |
| 4332 | { |
| 4333 | ULONG status = EventPipeWriteEventInitSecurityEnd(); |
| 4334 | status &= FireEtXplatInitSecurityEnd(); |
| 4335 | return status; |
| 4336 | } |
| 4337 | |
| 4338 | inline BOOL EventEnabledInitSecurityEnd_V1() {return EventPipeEventEnabledInitSecurityEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledInitSecurityEnd_V1());} |
| 4339 | |
| 4340 | inline ULONG FireEtwInitSecurityEnd_V1( |
| 4341 | const unsigned short ClrInstanceID |
| 4342 | ) |
| 4343 | { |
| 4344 | ULONG status = EventPipeWriteEventInitSecurityEnd_V1(ClrInstanceID); |
| 4345 | status &= FireEtXplatInitSecurityEnd_V1(ClrInstanceID); |
| 4346 | return status; |
| 4347 | } |
| 4348 | |
| 4349 | inline BOOL EventEnabledAllowBindingRedirs() {return EventPipeEventEnabledAllowBindingRedirs() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAllowBindingRedirs());} |
| 4350 | |
| 4351 | inline ULONG FireEtwAllowBindingRedirs( |
| 4352 | |
| 4353 | ) |
| 4354 | { |
| 4355 | ULONG status = EventPipeWriteEventAllowBindingRedirs(); |
| 4356 | status &= FireEtXplatAllowBindingRedirs(); |
| 4357 | return status; |
| 4358 | } |
| 4359 | |
| 4360 | inline BOOL EventEnabledAllowBindingRedirs_V1() {return EventPipeEventEnabledAllowBindingRedirs_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAllowBindingRedirs_V1());} |
| 4361 | |
| 4362 | inline ULONG FireEtwAllowBindingRedirs_V1( |
| 4363 | const unsigned short ClrInstanceID |
| 4364 | ) |
| 4365 | { |
| 4366 | ULONG status = EventPipeWriteEventAllowBindingRedirs_V1(ClrInstanceID); |
| 4367 | status &= FireEtXplatAllowBindingRedirs_V1(ClrInstanceID); |
| 4368 | return status; |
| 4369 | } |
| 4370 | |
| 4371 | inline BOOL EventEnabledAllowBindingRedirsEnd() {return EventPipeEventEnabledAllowBindingRedirsEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAllowBindingRedirsEnd());} |
| 4372 | |
| 4373 | inline ULONG FireEtwAllowBindingRedirsEnd( |
| 4374 | |
| 4375 | ) |
| 4376 | { |
| 4377 | ULONG status = EventPipeWriteEventAllowBindingRedirsEnd(); |
| 4378 | status &= FireEtXplatAllowBindingRedirsEnd(); |
| 4379 | return status; |
| 4380 | } |
| 4381 | |
| 4382 | inline BOOL EventEnabledAllowBindingRedirsEnd_V1() {return EventPipeEventEnabledAllowBindingRedirsEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAllowBindingRedirsEnd_V1());} |
| 4383 | |
| 4384 | inline ULONG FireEtwAllowBindingRedirsEnd_V1( |
| 4385 | const unsigned short ClrInstanceID |
| 4386 | ) |
| 4387 | { |
| 4388 | ULONG status = EventPipeWriteEventAllowBindingRedirsEnd_V1(ClrInstanceID); |
| 4389 | status &= FireEtXplatAllowBindingRedirsEnd_V1(ClrInstanceID); |
| 4390 | return status; |
| 4391 | } |
| 4392 | |
| 4393 | inline BOOL EventEnabledEEConfigSync() {return EventPipeEventEnabledEEConfigSync() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledEEConfigSync());} |
| 4394 | |
| 4395 | inline ULONG FireEtwEEConfigSync( |
| 4396 | |
| 4397 | ) |
| 4398 | { |
| 4399 | ULONG status = EventPipeWriteEventEEConfigSync(); |
| 4400 | status &= FireEtXplatEEConfigSync(); |
| 4401 | return status; |
| 4402 | } |
| 4403 | |
| 4404 | inline BOOL EventEnabledEEConfigSync_V1() {return EventPipeEventEnabledEEConfigSync_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledEEConfigSync_V1());} |
| 4405 | |
| 4406 | inline ULONG FireEtwEEConfigSync_V1( |
| 4407 | const unsigned short ClrInstanceID |
| 4408 | ) |
| 4409 | { |
| 4410 | ULONG status = EventPipeWriteEventEEConfigSync_V1(ClrInstanceID); |
| 4411 | status &= FireEtXplatEEConfigSync_V1(ClrInstanceID); |
| 4412 | return status; |
| 4413 | } |
| 4414 | |
| 4415 | inline BOOL EventEnabledEEConfigSyncEnd() {return EventPipeEventEnabledEEConfigSyncEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledEEConfigSyncEnd());} |
| 4416 | |
| 4417 | inline ULONG FireEtwEEConfigSyncEnd( |
| 4418 | |
| 4419 | ) |
| 4420 | { |
| 4421 | ULONG status = EventPipeWriteEventEEConfigSyncEnd(); |
| 4422 | status &= FireEtXplatEEConfigSyncEnd(); |
| 4423 | return status; |
| 4424 | } |
| 4425 | |
| 4426 | inline BOOL EventEnabledEEConfigSyncEnd_V1() {return EventPipeEventEnabledEEConfigSyncEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledEEConfigSyncEnd_V1());} |
| 4427 | |
| 4428 | inline ULONG FireEtwEEConfigSyncEnd_V1( |
| 4429 | const unsigned short ClrInstanceID |
| 4430 | ) |
| 4431 | { |
| 4432 | ULONG status = EventPipeWriteEventEEConfigSyncEnd_V1(ClrInstanceID); |
| 4433 | status &= FireEtXplatEEConfigSyncEnd_V1(ClrInstanceID); |
| 4434 | return status; |
| 4435 | } |
| 4436 | |
| 4437 | inline BOOL EventEnabledFusionBinding() {return EventPipeEventEnabledFusionBinding() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledFusionBinding());} |
| 4438 | |
| 4439 | inline ULONG FireEtwFusionBinding( |
| 4440 | |
| 4441 | ) |
| 4442 | { |
| 4443 | ULONG status = EventPipeWriteEventFusionBinding(); |
| 4444 | status &= FireEtXplatFusionBinding(); |
| 4445 | return status; |
| 4446 | } |
| 4447 | |
| 4448 | inline BOOL EventEnabledFusionBinding_V1() {return EventPipeEventEnabledFusionBinding_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledFusionBinding_V1());} |
| 4449 | |
| 4450 | inline ULONG FireEtwFusionBinding_V1( |
| 4451 | const unsigned short ClrInstanceID |
| 4452 | ) |
| 4453 | { |
| 4454 | ULONG status = EventPipeWriteEventFusionBinding_V1(ClrInstanceID); |
| 4455 | status &= FireEtXplatFusionBinding_V1(ClrInstanceID); |
| 4456 | return status; |
| 4457 | } |
| 4458 | |
| 4459 | inline BOOL EventEnabledFusionBindingEnd() {return EventPipeEventEnabledFusionBindingEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledFusionBindingEnd());} |
| 4460 | |
| 4461 | inline ULONG FireEtwFusionBindingEnd( |
| 4462 | |
| 4463 | ) |
| 4464 | { |
| 4465 | ULONG status = EventPipeWriteEventFusionBindingEnd(); |
| 4466 | status &= FireEtXplatFusionBindingEnd(); |
| 4467 | return status; |
| 4468 | } |
| 4469 | |
| 4470 | inline BOOL EventEnabledFusionBindingEnd_V1() {return EventPipeEventEnabledFusionBindingEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledFusionBindingEnd_V1());} |
| 4471 | |
| 4472 | inline ULONG FireEtwFusionBindingEnd_V1( |
| 4473 | const unsigned short ClrInstanceID |
| 4474 | ) |
| 4475 | { |
| 4476 | ULONG status = EventPipeWriteEventFusionBindingEnd_V1(ClrInstanceID); |
| 4477 | status &= FireEtXplatFusionBindingEnd_V1(ClrInstanceID); |
| 4478 | return status; |
| 4479 | } |
| 4480 | |
| 4481 | inline BOOL EventEnabledLoaderCatchCall() {return EventPipeEventEnabledLoaderCatchCall() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledLoaderCatchCall());} |
| 4482 | |
| 4483 | inline ULONG FireEtwLoaderCatchCall( |
| 4484 | |
| 4485 | ) |
| 4486 | { |
| 4487 | ULONG status = EventPipeWriteEventLoaderCatchCall(); |
| 4488 | status &= FireEtXplatLoaderCatchCall(); |
| 4489 | return status; |
| 4490 | } |
| 4491 | |
| 4492 | inline BOOL EventEnabledLoaderCatchCall_V1() {return EventPipeEventEnabledLoaderCatchCall_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledLoaderCatchCall_V1());} |
| 4493 | |
| 4494 | inline ULONG FireEtwLoaderCatchCall_V1( |
| 4495 | const unsigned short ClrInstanceID |
| 4496 | ) |
| 4497 | { |
| 4498 | ULONG status = EventPipeWriteEventLoaderCatchCall_V1(ClrInstanceID); |
| 4499 | status &= FireEtXplatLoaderCatchCall_V1(ClrInstanceID); |
| 4500 | return status; |
| 4501 | } |
| 4502 | |
| 4503 | inline BOOL EventEnabledLoaderCatchCallEnd() {return EventPipeEventEnabledLoaderCatchCallEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledLoaderCatchCallEnd());} |
| 4504 | |
| 4505 | inline ULONG FireEtwLoaderCatchCallEnd( |
| 4506 | |
| 4507 | ) |
| 4508 | { |
| 4509 | ULONG status = EventPipeWriteEventLoaderCatchCallEnd(); |
| 4510 | status &= FireEtXplatLoaderCatchCallEnd(); |
| 4511 | return status; |
| 4512 | } |
| 4513 | |
| 4514 | inline BOOL EventEnabledLoaderCatchCallEnd_V1() {return EventPipeEventEnabledLoaderCatchCallEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledLoaderCatchCallEnd_V1());} |
| 4515 | |
| 4516 | inline ULONG FireEtwLoaderCatchCallEnd_V1( |
| 4517 | const unsigned short ClrInstanceID |
| 4518 | ) |
| 4519 | { |
| 4520 | ULONG status = EventPipeWriteEventLoaderCatchCallEnd_V1(ClrInstanceID); |
| 4521 | status &= FireEtXplatLoaderCatchCallEnd_V1(ClrInstanceID); |
| 4522 | return status; |
| 4523 | } |
| 4524 | |
| 4525 | inline BOOL EventEnabledFusionInit() {return EventPipeEventEnabledFusionInit() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledFusionInit());} |
| 4526 | |
| 4527 | inline ULONG FireEtwFusionInit( |
| 4528 | |
| 4529 | ) |
| 4530 | { |
| 4531 | ULONG status = EventPipeWriteEventFusionInit(); |
| 4532 | status &= FireEtXplatFusionInit(); |
| 4533 | return status; |
| 4534 | } |
| 4535 | |
| 4536 | inline BOOL EventEnabledFusionInit_V1() {return EventPipeEventEnabledFusionInit_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledFusionInit_V1());} |
| 4537 | |
| 4538 | inline ULONG FireEtwFusionInit_V1( |
| 4539 | const unsigned short ClrInstanceID |
| 4540 | ) |
| 4541 | { |
| 4542 | ULONG status = EventPipeWriteEventFusionInit_V1(ClrInstanceID); |
| 4543 | status &= FireEtXplatFusionInit_V1(ClrInstanceID); |
| 4544 | return status; |
| 4545 | } |
| 4546 | |
| 4547 | inline BOOL EventEnabledFusionInitEnd() {return EventPipeEventEnabledFusionInitEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledFusionInitEnd());} |
| 4548 | |
| 4549 | inline ULONG FireEtwFusionInitEnd( |
| 4550 | |
| 4551 | ) |
| 4552 | { |
| 4553 | ULONG status = EventPipeWriteEventFusionInitEnd(); |
| 4554 | status &= FireEtXplatFusionInitEnd(); |
| 4555 | return status; |
| 4556 | } |
| 4557 | |
| 4558 | inline BOOL EventEnabledFusionInitEnd_V1() {return EventPipeEventEnabledFusionInitEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledFusionInitEnd_V1());} |
| 4559 | |
| 4560 | inline ULONG FireEtwFusionInitEnd_V1( |
| 4561 | const unsigned short ClrInstanceID |
| 4562 | ) |
| 4563 | { |
| 4564 | ULONG status = EventPipeWriteEventFusionInitEnd_V1(ClrInstanceID); |
| 4565 | status &= FireEtXplatFusionInitEnd_V1(ClrInstanceID); |
| 4566 | return status; |
| 4567 | } |
| 4568 | |
| 4569 | inline BOOL EventEnabledFusionAppCtx() {return EventPipeEventEnabledFusionAppCtx() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledFusionAppCtx());} |
| 4570 | |
| 4571 | inline ULONG FireEtwFusionAppCtx( |
| 4572 | |
| 4573 | ) |
| 4574 | { |
| 4575 | ULONG status = EventPipeWriteEventFusionAppCtx(); |
| 4576 | status &= FireEtXplatFusionAppCtx(); |
| 4577 | return status; |
| 4578 | } |
| 4579 | |
| 4580 | inline BOOL EventEnabledFusionAppCtx_V1() {return EventPipeEventEnabledFusionAppCtx_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledFusionAppCtx_V1());} |
| 4581 | |
| 4582 | inline ULONG FireEtwFusionAppCtx_V1( |
| 4583 | const unsigned short ClrInstanceID |
| 4584 | ) |
| 4585 | { |
| 4586 | ULONG status = EventPipeWriteEventFusionAppCtx_V1(ClrInstanceID); |
| 4587 | status &= FireEtXplatFusionAppCtx_V1(ClrInstanceID); |
| 4588 | return status; |
| 4589 | } |
| 4590 | |
| 4591 | inline BOOL EventEnabledFusionAppCtxEnd() {return EventPipeEventEnabledFusionAppCtxEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledFusionAppCtxEnd());} |
| 4592 | |
| 4593 | inline ULONG FireEtwFusionAppCtxEnd( |
| 4594 | |
| 4595 | ) |
| 4596 | { |
| 4597 | ULONG status = EventPipeWriteEventFusionAppCtxEnd(); |
| 4598 | status &= FireEtXplatFusionAppCtxEnd(); |
| 4599 | return status; |
| 4600 | } |
| 4601 | |
| 4602 | inline BOOL EventEnabledFusionAppCtxEnd_V1() {return EventPipeEventEnabledFusionAppCtxEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledFusionAppCtxEnd_V1());} |
| 4603 | |
| 4604 | inline ULONG FireEtwFusionAppCtxEnd_V1( |
| 4605 | const unsigned short ClrInstanceID |
| 4606 | ) |
| 4607 | { |
| 4608 | ULONG status = EventPipeWriteEventFusionAppCtxEnd_V1(ClrInstanceID); |
| 4609 | status &= FireEtXplatFusionAppCtxEnd_V1(ClrInstanceID); |
| 4610 | return status; |
| 4611 | } |
| 4612 | |
| 4613 | inline BOOL EventEnabledFusion2EE() {return EventPipeEventEnabledFusion2EE() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledFusion2EE());} |
| 4614 | |
| 4615 | inline ULONG FireEtwFusion2EE( |
| 4616 | |
| 4617 | ) |
| 4618 | { |
| 4619 | ULONG status = EventPipeWriteEventFusion2EE(); |
| 4620 | status &= FireEtXplatFusion2EE(); |
| 4621 | return status; |
| 4622 | } |
| 4623 | |
| 4624 | inline BOOL EventEnabledFusion2EE_V1() {return EventPipeEventEnabledFusion2EE_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledFusion2EE_V1());} |
| 4625 | |
| 4626 | inline ULONG FireEtwFusion2EE_V1( |
| 4627 | const unsigned short ClrInstanceID |
| 4628 | ) |
| 4629 | { |
| 4630 | ULONG status = EventPipeWriteEventFusion2EE_V1(ClrInstanceID); |
| 4631 | status &= FireEtXplatFusion2EE_V1(ClrInstanceID); |
| 4632 | return status; |
| 4633 | } |
| 4634 | |
| 4635 | inline BOOL EventEnabledFusion2EEEnd() {return EventPipeEventEnabledFusion2EEEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledFusion2EEEnd());} |
| 4636 | |
| 4637 | inline ULONG FireEtwFusion2EEEnd( |
| 4638 | |
| 4639 | ) |
| 4640 | { |
| 4641 | ULONG status = EventPipeWriteEventFusion2EEEnd(); |
| 4642 | status &= FireEtXplatFusion2EEEnd(); |
| 4643 | return status; |
| 4644 | } |
| 4645 | |
| 4646 | inline BOOL EventEnabledFusion2EEEnd_V1() {return EventPipeEventEnabledFusion2EEEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledFusion2EEEnd_V1());} |
| 4647 | |
| 4648 | inline ULONG FireEtwFusion2EEEnd_V1( |
| 4649 | const unsigned short ClrInstanceID |
| 4650 | ) |
| 4651 | { |
| 4652 | ULONG status = EventPipeWriteEventFusion2EEEnd_V1(ClrInstanceID); |
| 4653 | status &= FireEtXplatFusion2EEEnd_V1(ClrInstanceID); |
| 4654 | return status; |
| 4655 | } |
| 4656 | |
| 4657 | inline BOOL EventEnabledSecurityCatchCall() {return EventPipeEventEnabledSecurityCatchCall() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledSecurityCatchCall());} |
| 4658 | |
| 4659 | inline ULONG FireEtwSecurityCatchCall( |
| 4660 | |
| 4661 | ) |
| 4662 | { |
| 4663 | ULONG status = EventPipeWriteEventSecurityCatchCall(); |
| 4664 | status &= FireEtXplatSecurityCatchCall(); |
| 4665 | return status; |
| 4666 | } |
| 4667 | |
| 4668 | inline BOOL EventEnabledSecurityCatchCall_V1() {return EventPipeEventEnabledSecurityCatchCall_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledSecurityCatchCall_V1());} |
| 4669 | |
| 4670 | inline ULONG FireEtwSecurityCatchCall_V1( |
| 4671 | const unsigned short ClrInstanceID |
| 4672 | ) |
| 4673 | { |
| 4674 | ULONG status = EventPipeWriteEventSecurityCatchCall_V1(ClrInstanceID); |
| 4675 | status &= FireEtXplatSecurityCatchCall_V1(ClrInstanceID); |
| 4676 | return status; |
| 4677 | } |
| 4678 | |
| 4679 | inline BOOL EventEnabledSecurityCatchCallEnd() {return EventPipeEventEnabledSecurityCatchCallEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledSecurityCatchCallEnd());} |
| 4680 | |
| 4681 | inline ULONG FireEtwSecurityCatchCallEnd( |
| 4682 | |
| 4683 | ) |
| 4684 | { |
| 4685 | ULONG status = EventPipeWriteEventSecurityCatchCallEnd(); |
| 4686 | status &= FireEtXplatSecurityCatchCallEnd(); |
| 4687 | return status; |
| 4688 | } |
| 4689 | |
| 4690 | inline BOOL EventEnabledSecurityCatchCallEnd_V1() {return EventPipeEventEnabledSecurityCatchCallEnd_V1() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledSecurityCatchCallEnd_V1());} |
| 4691 | |
| 4692 | inline ULONG FireEtwSecurityCatchCallEnd_V1( |
| 4693 | const unsigned short ClrInstanceID |
| 4694 | ) |
| 4695 | { |
| 4696 | ULONG status = EventPipeWriteEventSecurityCatchCallEnd_V1(ClrInstanceID); |
| 4697 | status &= FireEtXplatSecurityCatchCallEnd_V1(ClrInstanceID); |
| 4698 | return status; |
| 4699 | } |
| 4700 | |
| 4701 | inline BOOL EventEnabledCLRStackWalkPrivate() {return EventPipeEventEnabledCLRStackWalkPrivate() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledCLRStackWalkPrivate());} |
| 4702 | |
| 4703 | inline ULONG FireEtwCLRStackWalkPrivate( |
| 4704 | const unsigned short ClrInstanceID, |
| 4705 | const unsigned char Reserved1, |
| 4706 | const unsigned char Reserved2, |
| 4707 | const unsigned int FrameCount, |
| 4708 | const void** Stack |
| 4709 | ) |
| 4710 | { |
| 4711 | ULONG status = EventPipeWriteEventCLRStackWalkPrivate(ClrInstanceID,Reserved1,Reserved2,FrameCount,Stack); |
| 4712 | status &= FireEtXplatCLRStackWalkPrivate(ClrInstanceID,Reserved1,Reserved2,FrameCount,Stack); |
| 4713 | return status; |
| 4714 | } |
| 4715 | |
| 4716 | inline BOOL EventEnabledModuleRangeLoadPrivate() {return EventPipeEventEnabledModuleRangeLoadPrivate() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledModuleRangeLoadPrivate());} |
| 4717 | |
| 4718 | inline ULONG FireEtwModuleRangeLoadPrivate( |
| 4719 | const unsigned short ClrInstanceID, |
| 4720 | const unsigned __int64 ModuleID, |
| 4721 | const unsigned int RangeBegin, |
| 4722 | const unsigned int RangeSize, |
| 4723 | const unsigned char RangeType, |
| 4724 | const unsigned char IBCType, |
| 4725 | const unsigned short SectionType |
| 4726 | ) |
| 4727 | { |
| 4728 | ULONG status = EventPipeWriteEventModuleRangeLoadPrivate(ClrInstanceID,ModuleID,RangeBegin,RangeSize,RangeType,IBCType,SectionType); |
| 4729 | status &= FireEtXplatModuleRangeLoadPrivate(ClrInstanceID,ModuleID,RangeBegin,RangeSize,RangeType,IBCType,SectionType); |
| 4730 | return status; |
| 4731 | } |
| 4732 | |
| 4733 | inline BOOL EventEnabledBindingPolicyPhaseStart() {return EventPipeEventEnabledBindingPolicyPhaseStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBindingPolicyPhaseStart());} |
| 4734 | |
| 4735 | inline ULONG FireEtwBindingPolicyPhaseStart( |
| 4736 | const unsigned int AppDomainID, |
| 4737 | const unsigned int LoadContextID, |
| 4738 | const unsigned int FromLoaderCache, |
| 4739 | const unsigned int DynamicLoad, |
| 4740 | PCWSTR AssemblyCodebase, |
| 4741 | PCWSTR AssemblyName, |
| 4742 | const unsigned short ClrInstanceID |
| 4743 | ) |
| 4744 | { |
| 4745 | ULONG status = EventPipeWriteEventBindingPolicyPhaseStart(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4746 | status &= FireEtXplatBindingPolicyPhaseStart(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4747 | return status; |
| 4748 | } |
| 4749 | |
| 4750 | inline BOOL EventEnabledBindingPolicyPhaseEnd() {return EventPipeEventEnabledBindingPolicyPhaseEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBindingPolicyPhaseEnd());} |
| 4751 | |
| 4752 | inline ULONG FireEtwBindingPolicyPhaseEnd( |
| 4753 | const unsigned int AppDomainID, |
| 4754 | const unsigned int LoadContextID, |
| 4755 | const unsigned int FromLoaderCache, |
| 4756 | const unsigned int DynamicLoad, |
| 4757 | PCWSTR AssemblyCodebase, |
| 4758 | PCWSTR AssemblyName, |
| 4759 | const unsigned short ClrInstanceID |
| 4760 | ) |
| 4761 | { |
| 4762 | ULONG status = EventPipeWriteEventBindingPolicyPhaseEnd(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4763 | status &= FireEtXplatBindingPolicyPhaseEnd(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4764 | return status; |
| 4765 | } |
| 4766 | |
| 4767 | inline BOOL EventEnabledBindingNgenPhaseStart() {return EventPipeEventEnabledBindingNgenPhaseStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBindingNgenPhaseStart());} |
| 4768 | |
| 4769 | inline ULONG FireEtwBindingNgenPhaseStart( |
| 4770 | const unsigned int AppDomainID, |
| 4771 | const unsigned int LoadContextID, |
| 4772 | const unsigned int FromLoaderCache, |
| 4773 | const unsigned int DynamicLoad, |
| 4774 | PCWSTR AssemblyCodebase, |
| 4775 | PCWSTR AssemblyName, |
| 4776 | const unsigned short ClrInstanceID |
| 4777 | ) |
| 4778 | { |
| 4779 | ULONG status = EventPipeWriteEventBindingNgenPhaseStart(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4780 | status &= FireEtXplatBindingNgenPhaseStart(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4781 | return status; |
| 4782 | } |
| 4783 | |
| 4784 | inline BOOL EventEnabledBindingNgenPhaseEnd() {return EventPipeEventEnabledBindingNgenPhaseEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBindingNgenPhaseEnd());} |
| 4785 | |
| 4786 | inline ULONG FireEtwBindingNgenPhaseEnd( |
| 4787 | const unsigned int AppDomainID, |
| 4788 | const unsigned int LoadContextID, |
| 4789 | const unsigned int FromLoaderCache, |
| 4790 | const unsigned int DynamicLoad, |
| 4791 | PCWSTR AssemblyCodebase, |
| 4792 | PCWSTR AssemblyName, |
| 4793 | const unsigned short ClrInstanceID |
| 4794 | ) |
| 4795 | { |
| 4796 | ULONG status = EventPipeWriteEventBindingNgenPhaseEnd(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4797 | status &= FireEtXplatBindingNgenPhaseEnd(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4798 | return status; |
| 4799 | } |
| 4800 | |
| 4801 | inline BOOL EventEnabledBindingLookupAndProbingPhaseStart() {return EventPipeEventEnabledBindingLookupAndProbingPhaseStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBindingLookupAndProbingPhaseStart());} |
| 4802 | |
| 4803 | inline ULONG FireEtwBindingLookupAndProbingPhaseStart( |
| 4804 | const unsigned int AppDomainID, |
| 4805 | const unsigned int LoadContextID, |
| 4806 | const unsigned int FromLoaderCache, |
| 4807 | const unsigned int DynamicLoad, |
| 4808 | PCWSTR AssemblyCodebase, |
| 4809 | PCWSTR AssemblyName, |
| 4810 | const unsigned short ClrInstanceID |
| 4811 | ) |
| 4812 | { |
| 4813 | ULONG status = EventPipeWriteEventBindingLookupAndProbingPhaseStart(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4814 | status &= FireEtXplatBindingLookupAndProbingPhaseStart(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4815 | return status; |
| 4816 | } |
| 4817 | |
| 4818 | inline BOOL EventEnabledBindingLookupAndProbingPhaseEnd() {return EventPipeEventEnabledBindingLookupAndProbingPhaseEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBindingLookupAndProbingPhaseEnd());} |
| 4819 | |
| 4820 | inline ULONG FireEtwBindingLookupAndProbingPhaseEnd( |
| 4821 | const unsigned int AppDomainID, |
| 4822 | const unsigned int LoadContextID, |
| 4823 | const unsigned int FromLoaderCache, |
| 4824 | const unsigned int DynamicLoad, |
| 4825 | PCWSTR AssemblyCodebase, |
| 4826 | PCWSTR AssemblyName, |
| 4827 | const unsigned short ClrInstanceID |
| 4828 | ) |
| 4829 | { |
| 4830 | ULONG status = EventPipeWriteEventBindingLookupAndProbingPhaseEnd(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4831 | status &= FireEtXplatBindingLookupAndProbingPhaseEnd(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4832 | return status; |
| 4833 | } |
| 4834 | |
| 4835 | inline BOOL EventEnabledLoaderPhaseStart() {return EventPipeEventEnabledLoaderPhaseStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledLoaderPhaseStart());} |
| 4836 | |
| 4837 | inline ULONG FireEtwLoaderPhaseStart( |
| 4838 | const unsigned int AppDomainID, |
| 4839 | const unsigned int LoadContextID, |
| 4840 | const unsigned int FromLoaderCache, |
| 4841 | const unsigned int DynamicLoad, |
| 4842 | PCWSTR AssemblyCodebase, |
| 4843 | PCWSTR AssemblyName, |
| 4844 | const unsigned short ClrInstanceID |
| 4845 | ) |
| 4846 | { |
| 4847 | ULONG status = EventPipeWriteEventLoaderPhaseStart(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4848 | status &= FireEtXplatLoaderPhaseStart(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4849 | return status; |
| 4850 | } |
| 4851 | |
| 4852 | inline BOOL EventEnabledLoaderPhaseEnd() {return EventPipeEventEnabledLoaderPhaseEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledLoaderPhaseEnd());} |
| 4853 | |
| 4854 | inline ULONG FireEtwLoaderPhaseEnd( |
| 4855 | const unsigned int AppDomainID, |
| 4856 | const unsigned int LoadContextID, |
| 4857 | const unsigned int FromLoaderCache, |
| 4858 | const unsigned int DynamicLoad, |
| 4859 | PCWSTR AssemblyCodebase, |
| 4860 | PCWSTR AssemblyName, |
| 4861 | const unsigned short ClrInstanceID |
| 4862 | ) |
| 4863 | { |
| 4864 | ULONG status = EventPipeWriteEventLoaderPhaseEnd(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4865 | status &= FireEtXplatLoaderPhaseEnd(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4866 | return status; |
| 4867 | } |
| 4868 | |
| 4869 | inline BOOL EventEnabledBindingPhaseStart() {return EventPipeEventEnabledBindingPhaseStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBindingPhaseStart());} |
| 4870 | |
| 4871 | inline ULONG FireEtwBindingPhaseStart( |
| 4872 | const unsigned int AppDomainID, |
| 4873 | const unsigned int LoadContextID, |
| 4874 | const unsigned int FromLoaderCache, |
| 4875 | const unsigned int DynamicLoad, |
| 4876 | PCWSTR AssemblyCodebase, |
| 4877 | PCWSTR AssemblyName, |
| 4878 | const unsigned short ClrInstanceID |
| 4879 | ) |
| 4880 | { |
| 4881 | ULONG status = EventPipeWriteEventBindingPhaseStart(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4882 | status &= FireEtXplatBindingPhaseStart(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4883 | return status; |
| 4884 | } |
| 4885 | |
| 4886 | inline BOOL EventEnabledBindingPhaseEnd() {return EventPipeEventEnabledBindingPhaseEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBindingPhaseEnd());} |
| 4887 | |
| 4888 | inline ULONG FireEtwBindingPhaseEnd( |
| 4889 | const unsigned int AppDomainID, |
| 4890 | const unsigned int LoadContextID, |
| 4891 | const unsigned int FromLoaderCache, |
| 4892 | const unsigned int DynamicLoad, |
| 4893 | PCWSTR AssemblyCodebase, |
| 4894 | PCWSTR AssemblyName, |
| 4895 | const unsigned short ClrInstanceID |
| 4896 | ) |
| 4897 | { |
| 4898 | ULONG status = EventPipeWriteEventBindingPhaseEnd(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4899 | status &= FireEtXplatBindingPhaseEnd(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4900 | return status; |
| 4901 | } |
| 4902 | |
| 4903 | inline BOOL EventEnabledBindingDownloadPhaseStart() {return EventPipeEventEnabledBindingDownloadPhaseStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBindingDownloadPhaseStart());} |
| 4904 | |
| 4905 | inline ULONG FireEtwBindingDownloadPhaseStart( |
| 4906 | const unsigned int AppDomainID, |
| 4907 | const unsigned int LoadContextID, |
| 4908 | const unsigned int FromLoaderCache, |
| 4909 | const unsigned int DynamicLoad, |
| 4910 | PCWSTR AssemblyCodebase, |
| 4911 | PCWSTR AssemblyName, |
| 4912 | const unsigned short ClrInstanceID |
| 4913 | ) |
| 4914 | { |
| 4915 | ULONG status = EventPipeWriteEventBindingDownloadPhaseStart(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4916 | status &= FireEtXplatBindingDownloadPhaseStart(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4917 | return status; |
| 4918 | } |
| 4919 | |
| 4920 | inline BOOL EventEnabledBindingDownloadPhaseEnd() {return EventPipeEventEnabledBindingDownloadPhaseEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBindingDownloadPhaseEnd());} |
| 4921 | |
| 4922 | inline ULONG FireEtwBindingDownloadPhaseEnd( |
| 4923 | const unsigned int AppDomainID, |
| 4924 | const unsigned int LoadContextID, |
| 4925 | const unsigned int FromLoaderCache, |
| 4926 | const unsigned int DynamicLoad, |
| 4927 | PCWSTR AssemblyCodebase, |
| 4928 | PCWSTR AssemblyName, |
| 4929 | const unsigned short ClrInstanceID |
| 4930 | ) |
| 4931 | { |
| 4932 | ULONG status = EventPipeWriteEventBindingDownloadPhaseEnd(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4933 | status &= FireEtXplatBindingDownloadPhaseEnd(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4934 | return status; |
| 4935 | } |
| 4936 | |
| 4937 | inline BOOL EventEnabledLoaderAssemblyInitPhaseStart() {return EventPipeEventEnabledLoaderAssemblyInitPhaseStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledLoaderAssemblyInitPhaseStart());} |
| 4938 | |
| 4939 | inline ULONG FireEtwLoaderAssemblyInitPhaseStart( |
| 4940 | const unsigned int AppDomainID, |
| 4941 | const unsigned int LoadContextID, |
| 4942 | const unsigned int FromLoaderCache, |
| 4943 | const unsigned int DynamicLoad, |
| 4944 | PCWSTR AssemblyCodebase, |
| 4945 | PCWSTR AssemblyName, |
| 4946 | const unsigned short ClrInstanceID |
| 4947 | ) |
| 4948 | { |
| 4949 | ULONG status = EventPipeWriteEventLoaderAssemblyInitPhaseStart(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4950 | status &= FireEtXplatLoaderAssemblyInitPhaseStart(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4951 | return status; |
| 4952 | } |
| 4953 | |
| 4954 | inline BOOL EventEnabledLoaderAssemblyInitPhaseEnd() {return EventPipeEventEnabledLoaderAssemblyInitPhaseEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledLoaderAssemblyInitPhaseEnd());} |
| 4955 | |
| 4956 | inline ULONG FireEtwLoaderAssemblyInitPhaseEnd( |
| 4957 | const unsigned int AppDomainID, |
| 4958 | const unsigned int LoadContextID, |
| 4959 | const unsigned int FromLoaderCache, |
| 4960 | const unsigned int DynamicLoad, |
| 4961 | PCWSTR AssemblyCodebase, |
| 4962 | PCWSTR AssemblyName, |
| 4963 | const unsigned short ClrInstanceID |
| 4964 | ) |
| 4965 | { |
| 4966 | ULONG status = EventPipeWriteEventLoaderAssemblyInitPhaseEnd(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4967 | status &= FireEtXplatLoaderAssemblyInitPhaseEnd(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4968 | return status; |
| 4969 | } |
| 4970 | |
| 4971 | inline BOOL EventEnabledLoaderMappingPhaseStart() {return EventPipeEventEnabledLoaderMappingPhaseStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledLoaderMappingPhaseStart());} |
| 4972 | |
| 4973 | inline ULONG FireEtwLoaderMappingPhaseStart( |
| 4974 | const unsigned int AppDomainID, |
| 4975 | const unsigned int LoadContextID, |
| 4976 | const unsigned int FromLoaderCache, |
| 4977 | const unsigned int DynamicLoad, |
| 4978 | PCWSTR AssemblyCodebase, |
| 4979 | PCWSTR AssemblyName, |
| 4980 | const unsigned short ClrInstanceID |
| 4981 | ) |
| 4982 | { |
| 4983 | ULONG status = EventPipeWriteEventLoaderMappingPhaseStart(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4984 | status &= FireEtXplatLoaderMappingPhaseStart(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 4985 | return status; |
| 4986 | } |
| 4987 | |
| 4988 | inline BOOL EventEnabledLoaderMappingPhaseEnd() {return EventPipeEventEnabledLoaderMappingPhaseEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledLoaderMappingPhaseEnd());} |
| 4989 | |
| 4990 | inline ULONG FireEtwLoaderMappingPhaseEnd( |
| 4991 | const unsigned int AppDomainID, |
| 4992 | const unsigned int LoadContextID, |
| 4993 | const unsigned int FromLoaderCache, |
| 4994 | const unsigned int DynamicLoad, |
| 4995 | PCWSTR AssemblyCodebase, |
| 4996 | PCWSTR AssemblyName, |
| 4997 | const unsigned short ClrInstanceID |
| 4998 | ) |
| 4999 | { |
| 5000 | ULONG status = EventPipeWriteEventLoaderMappingPhaseEnd(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 5001 | status &= FireEtXplatLoaderMappingPhaseEnd(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 5002 | return status; |
| 5003 | } |
| 5004 | |
| 5005 | inline BOOL EventEnabledLoaderDeliverEventsPhaseStart() {return EventPipeEventEnabledLoaderDeliverEventsPhaseStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledLoaderDeliverEventsPhaseStart());} |
| 5006 | |
| 5007 | inline ULONG FireEtwLoaderDeliverEventsPhaseStart( |
| 5008 | const unsigned int AppDomainID, |
| 5009 | const unsigned int LoadContextID, |
| 5010 | const unsigned int FromLoaderCache, |
| 5011 | const unsigned int DynamicLoad, |
| 5012 | PCWSTR AssemblyCodebase, |
| 5013 | PCWSTR AssemblyName, |
| 5014 | const unsigned short ClrInstanceID |
| 5015 | ) |
| 5016 | { |
| 5017 | ULONG status = EventPipeWriteEventLoaderDeliverEventsPhaseStart(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 5018 | status &= FireEtXplatLoaderDeliverEventsPhaseStart(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 5019 | return status; |
| 5020 | } |
| 5021 | |
| 5022 | inline BOOL EventEnabledLoaderDeliverEventsPhaseEnd() {return EventPipeEventEnabledLoaderDeliverEventsPhaseEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledLoaderDeliverEventsPhaseEnd());} |
| 5023 | |
| 5024 | inline ULONG FireEtwLoaderDeliverEventsPhaseEnd( |
| 5025 | const unsigned int AppDomainID, |
| 5026 | const unsigned int LoadContextID, |
| 5027 | const unsigned int FromLoaderCache, |
| 5028 | const unsigned int DynamicLoad, |
| 5029 | PCWSTR AssemblyCodebase, |
| 5030 | PCWSTR AssemblyName, |
| 5031 | const unsigned short ClrInstanceID |
| 5032 | ) |
| 5033 | { |
| 5034 | ULONG status = EventPipeWriteEventLoaderDeliverEventsPhaseEnd(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 5035 | status &= FireEtXplatLoaderDeliverEventsPhaseEnd(AppDomainID,LoadContextID,FromLoaderCache,DynamicLoad,AssemblyCodebase,AssemblyName,ClrInstanceID); |
| 5036 | return status; |
| 5037 | } |
| 5038 | |
| 5039 | inline BOOL EventEnabledEvidenceGenerated() {return EventPipeEventEnabledEvidenceGenerated() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledEvidenceGenerated());} |
| 5040 | |
| 5041 | inline ULONG FireEtwEvidenceGenerated( |
| 5042 | const unsigned int Type, |
| 5043 | const unsigned int AppDomain, |
| 5044 | PCWSTR ILImage, |
| 5045 | const unsigned short ClrInstanceID |
| 5046 | ) |
| 5047 | { |
| 5048 | ULONG status = EventPipeWriteEventEvidenceGenerated(Type,AppDomain,ILImage,ClrInstanceID); |
| 5049 | status &= FireEtXplatEvidenceGenerated(Type,AppDomain,ILImage,ClrInstanceID); |
| 5050 | return status; |
| 5051 | } |
| 5052 | |
| 5053 | inline BOOL EventEnabledModuleTransparencyComputationStart() {return EventPipeEventEnabledModuleTransparencyComputationStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledModuleTransparencyComputationStart());} |
| 5054 | |
| 5055 | inline ULONG FireEtwModuleTransparencyComputationStart( |
| 5056 | PCWSTR Module, |
| 5057 | const unsigned int AppDomainID, |
| 5058 | const unsigned short ClrInstanceID |
| 5059 | ) |
| 5060 | { |
| 5061 | ULONG status = EventPipeWriteEventModuleTransparencyComputationStart(Module,AppDomainID,ClrInstanceID); |
| 5062 | status &= FireEtXplatModuleTransparencyComputationStart(Module,AppDomainID,ClrInstanceID); |
| 5063 | return status; |
| 5064 | } |
| 5065 | |
| 5066 | inline BOOL EventEnabledModuleTransparencyComputationEnd() {return EventPipeEventEnabledModuleTransparencyComputationEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledModuleTransparencyComputationEnd());} |
| 5067 | |
| 5068 | inline ULONG FireEtwModuleTransparencyComputationEnd( |
| 5069 | PCWSTR Module, |
| 5070 | const unsigned int AppDomainID, |
| 5071 | const BOOL IsAllCritical, |
| 5072 | const BOOL IsAllTransparent, |
| 5073 | const BOOL IsTreatAsSafe, |
| 5074 | const BOOL IsOpportunisticallyCritical, |
| 5075 | const unsigned int SecurityRuleSet, |
| 5076 | const unsigned short ClrInstanceID |
| 5077 | ) |
| 5078 | { |
| 5079 | ULONG status = EventPipeWriteEventModuleTransparencyComputationEnd(Module,AppDomainID,IsAllCritical,IsAllTransparent,IsTreatAsSafe,IsOpportunisticallyCritical,SecurityRuleSet,ClrInstanceID); |
| 5080 | status &= FireEtXplatModuleTransparencyComputationEnd(Module,AppDomainID,IsAllCritical,IsAllTransparent,IsTreatAsSafe,IsOpportunisticallyCritical,SecurityRuleSet,ClrInstanceID); |
| 5081 | return status; |
| 5082 | } |
| 5083 | |
| 5084 | inline BOOL EventEnabledTypeTransparencyComputationStart() {return EventPipeEventEnabledTypeTransparencyComputationStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledTypeTransparencyComputationStart());} |
| 5085 | |
| 5086 | inline ULONG FireEtwTypeTransparencyComputationStart( |
| 5087 | PCWSTR Type, |
| 5088 | PCWSTR Module, |
| 5089 | const unsigned int AppDomainID, |
| 5090 | const unsigned short ClrInstanceID |
| 5091 | ) |
| 5092 | { |
| 5093 | ULONG status = EventPipeWriteEventTypeTransparencyComputationStart(Type,Module,AppDomainID,ClrInstanceID); |
| 5094 | status &= FireEtXplatTypeTransparencyComputationStart(Type,Module,AppDomainID,ClrInstanceID); |
| 5095 | return status; |
| 5096 | } |
| 5097 | |
| 5098 | inline BOOL EventEnabledTypeTransparencyComputationEnd() {return EventPipeEventEnabledTypeTransparencyComputationEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledTypeTransparencyComputationEnd());} |
| 5099 | |
| 5100 | inline ULONG FireEtwTypeTransparencyComputationEnd( |
| 5101 | PCWSTR Type, |
| 5102 | PCWSTR Module, |
| 5103 | const unsigned int AppDomainID, |
| 5104 | const BOOL IsAllCritical, |
| 5105 | const BOOL IsAllTransparent, |
| 5106 | const BOOL IsCritical, |
| 5107 | const BOOL IsTreatAsSafe, |
| 5108 | const unsigned short ClrInstanceID |
| 5109 | ) |
| 5110 | { |
| 5111 | ULONG status = EventPipeWriteEventTypeTransparencyComputationEnd(Type,Module,AppDomainID,IsAllCritical,IsAllTransparent,IsCritical,IsTreatAsSafe,ClrInstanceID); |
| 5112 | status &= FireEtXplatTypeTransparencyComputationEnd(Type,Module,AppDomainID,IsAllCritical,IsAllTransparent,IsCritical,IsTreatAsSafe,ClrInstanceID); |
| 5113 | return status; |
| 5114 | } |
| 5115 | |
| 5116 | inline BOOL EventEnabledMethodTransparencyComputationStart() {return EventPipeEventEnabledMethodTransparencyComputationStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodTransparencyComputationStart());} |
| 5117 | |
| 5118 | inline ULONG FireEtwMethodTransparencyComputationStart( |
| 5119 | PCWSTR Method, |
| 5120 | PCWSTR Module, |
| 5121 | const unsigned int AppDomainID, |
| 5122 | const unsigned short ClrInstanceID |
| 5123 | ) |
| 5124 | { |
| 5125 | ULONG status = EventPipeWriteEventMethodTransparencyComputationStart(Method,Module,AppDomainID,ClrInstanceID); |
| 5126 | status &= FireEtXplatMethodTransparencyComputationStart(Method,Module,AppDomainID,ClrInstanceID); |
| 5127 | return status; |
| 5128 | } |
| 5129 | |
| 5130 | inline BOOL EventEnabledMethodTransparencyComputationEnd() {return EventPipeEventEnabledMethodTransparencyComputationEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMethodTransparencyComputationEnd());} |
| 5131 | |
| 5132 | inline ULONG FireEtwMethodTransparencyComputationEnd( |
| 5133 | PCWSTR Method, |
| 5134 | PCWSTR Module, |
| 5135 | const unsigned int AppDomainID, |
| 5136 | const BOOL IsCritical, |
| 5137 | const BOOL IsTreatAsSafe, |
| 5138 | const unsigned short ClrInstanceID |
| 5139 | ) |
| 5140 | { |
| 5141 | ULONG status = EventPipeWriteEventMethodTransparencyComputationEnd(Method,Module,AppDomainID,IsCritical,IsTreatAsSafe,ClrInstanceID); |
| 5142 | status &= FireEtXplatMethodTransparencyComputationEnd(Method,Module,AppDomainID,IsCritical,IsTreatAsSafe,ClrInstanceID); |
| 5143 | return status; |
| 5144 | } |
| 5145 | |
| 5146 | inline BOOL EventEnabledFieldTransparencyComputationStart() {return EventPipeEventEnabledFieldTransparencyComputationStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledFieldTransparencyComputationStart());} |
| 5147 | |
| 5148 | inline ULONG FireEtwFieldTransparencyComputationStart( |
| 5149 | PCWSTR Field, |
| 5150 | PCWSTR Module, |
| 5151 | const unsigned int AppDomainID, |
| 5152 | const unsigned short ClrInstanceID |
| 5153 | ) |
| 5154 | { |
| 5155 | ULONG status = EventPipeWriteEventFieldTransparencyComputationStart(Field,Module,AppDomainID,ClrInstanceID); |
| 5156 | status &= FireEtXplatFieldTransparencyComputationStart(Field,Module,AppDomainID,ClrInstanceID); |
| 5157 | return status; |
| 5158 | } |
| 5159 | |
| 5160 | inline BOOL EventEnabledFieldTransparencyComputationEnd() {return EventPipeEventEnabledFieldTransparencyComputationEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledFieldTransparencyComputationEnd());} |
| 5161 | |
| 5162 | inline ULONG FireEtwFieldTransparencyComputationEnd( |
| 5163 | PCWSTR Field, |
| 5164 | PCWSTR Module, |
| 5165 | const unsigned int AppDomainID, |
| 5166 | const BOOL IsCritical, |
| 5167 | const BOOL IsTreatAsSafe, |
| 5168 | const unsigned short ClrInstanceID |
| 5169 | ) |
| 5170 | { |
| 5171 | ULONG status = EventPipeWriteEventFieldTransparencyComputationEnd(Field,Module,AppDomainID,IsCritical,IsTreatAsSafe,ClrInstanceID); |
| 5172 | status &= FireEtXplatFieldTransparencyComputationEnd(Field,Module,AppDomainID,IsCritical,IsTreatAsSafe,ClrInstanceID); |
| 5173 | return status; |
| 5174 | } |
| 5175 | |
| 5176 | inline BOOL EventEnabledTokenTransparencyComputationStart() {return EventPipeEventEnabledTokenTransparencyComputationStart() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledTokenTransparencyComputationStart());} |
| 5177 | |
| 5178 | inline ULONG FireEtwTokenTransparencyComputationStart( |
| 5179 | const unsigned int Token, |
| 5180 | PCWSTR Module, |
| 5181 | const unsigned int AppDomainID, |
| 5182 | const unsigned short ClrInstanceID |
| 5183 | ) |
| 5184 | { |
| 5185 | ULONG status = EventPipeWriteEventTokenTransparencyComputationStart(Token,Module,AppDomainID,ClrInstanceID); |
| 5186 | status &= FireEtXplatTokenTransparencyComputationStart(Token,Module,AppDomainID,ClrInstanceID); |
| 5187 | return status; |
| 5188 | } |
| 5189 | |
| 5190 | inline BOOL EventEnabledTokenTransparencyComputationEnd() {return EventPipeEventEnabledTokenTransparencyComputationEnd() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledTokenTransparencyComputationEnd());} |
| 5191 | |
| 5192 | inline ULONG FireEtwTokenTransparencyComputationEnd( |
| 5193 | const unsigned int Token, |
| 5194 | PCWSTR Module, |
| 5195 | const unsigned int AppDomainID, |
| 5196 | const BOOL IsCritical, |
| 5197 | const BOOL IsTreatAsSafe, |
| 5198 | const unsigned short ClrInstanceID |
| 5199 | ) |
| 5200 | { |
| 5201 | ULONG status = EventPipeWriteEventTokenTransparencyComputationEnd(Token,Module,AppDomainID,IsCritical,IsTreatAsSafe,ClrInstanceID); |
| 5202 | status &= FireEtXplatTokenTransparencyComputationEnd(Token,Module,AppDomainID,IsCritical,IsTreatAsSafe,ClrInstanceID); |
| 5203 | return status; |
| 5204 | } |
| 5205 | |
| 5206 | inline BOOL EventEnabledNgenBindEvent() {return EventPipeEventEnabledNgenBindEvent() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledNgenBindEvent());} |
| 5207 | |
| 5208 | inline ULONG FireEtwNgenBindEvent( |
| 5209 | const unsigned short ClrInstanceID, |
| 5210 | const unsigned __int64 BindingID, |
| 5211 | const unsigned int ReasonCode, |
| 5212 | PCWSTR AssemblyName |
| 5213 | ) |
| 5214 | { |
| 5215 | ULONG status = EventPipeWriteEventNgenBindEvent(ClrInstanceID,BindingID,ReasonCode,AssemblyName); |
| 5216 | status &= FireEtXplatNgenBindEvent(ClrInstanceID,BindingID,ReasonCode,AssemblyName); |
| 5217 | return status; |
| 5218 | } |
| 5219 | |
| 5220 | inline BOOL EventEnabledFailFast() {return EventPipeEventEnabledFailFast() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledFailFast());} |
| 5221 | |
| 5222 | inline ULONG FireEtwFailFast( |
| 5223 | PCWSTR FailFastUserMessage, |
| 5224 | const void* FailedEIP, |
| 5225 | const unsigned int OSExitCode, |
| 5226 | const unsigned int ClrExitCode, |
| 5227 | const unsigned short ClrInstanceID |
| 5228 | ) |
| 5229 | { |
| 5230 | ULONG status = EventPipeWriteEventFailFast(FailFastUserMessage,FailedEIP,OSExitCode,ClrExitCode,ClrInstanceID); |
| 5231 | status &= FireEtXplatFailFast(FailFastUserMessage,FailedEIP,OSExitCode,ClrExitCode,ClrInstanceID); |
| 5232 | return status; |
| 5233 | } |
| 5234 | |
| 5235 | inline BOOL EventEnabledPrvFinalizeObject() {return EventPipeEventEnabledPrvFinalizeObject() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledPrvFinalizeObject());} |
| 5236 | |
| 5237 | inline ULONG FireEtwPrvFinalizeObject( |
| 5238 | const void* TypeID, |
| 5239 | const void* ObjectID, |
| 5240 | const unsigned short ClrInstanceID, |
| 5241 | PCWSTR TypeName |
| 5242 | ) |
| 5243 | { |
| 5244 | ULONG status = EventPipeWriteEventPrvFinalizeObject(TypeID,ObjectID,ClrInstanceID,TypeName); |
| 5245 | status &= FireEtXplatPrvFinalizeObject(TypeID,ObjectID,ClrInstanceID,TypeName); |
| 5246 | return status; |
| 5247 | } |
| 5248 | |
| 5249 | inline BOOL EventEnabledCCWRefCountChangeAnsi() {return EventPipeEventEnabledCCWRefCountChangeAnsi() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledCCWRefCountChangeAnsi());} |
| 5250 | |
| 5251 | inline ULONG FireEtwCCWRefCountChangeAnsi( |
| 5252 | const void* HandleID, |
| 5253 | const void* ObjectID, |
| 5254 | const void* COMInterfacePointer, |
| 5255 | const unsigned int NewRefCount, |
| 5256 | const unsigned __int64 AppDomainID, |
| 5257 | LPCSTR ClassName, |
| 5258 | LPCSTR NameSpace, |
| 5259 | PCWSTR Operation, |
| 5260 | const unsigned short ClrInstanceID |
| 5261 | ) |
| 5262 | { |
| 5263 | ULONG status = EventPipeWriteEventCCWRefCountChangeAnsi(HandleID,ObjectID,COMInterfacePointer,NewRefCount,AppDomainID,ClassName,NameSpace,Operation,ClrInstanceID); |
| 5264 | status &= FireEtXplatCCWRefCountChangeAnsi(HandleID,ObjectID,COMInterfacePointer,NewRefCount,AppDomainID,ClassName,NameSpace,Operation,ClrInstanceID); |
| 5265 | return status; |
| 5266 | } |
| 5267 | |
| 5268 | inline BOOL EventEnabledPrvSetGCHandle() {return EventPipeEventEnabledPrvSetGCHandle() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledPrvSetGCHandle());} |
| 5269 | |
| 5270 | inline ULONG FireEtwPrvSetGCHandle( |
| 5271 | const void* HandleID, |
| 5272 | const void* ObjectID, |
| 5273 | const unsigned int Kind, |
| 5274 | const unsigned int Generation, |
| 5275 | const unsigned __int64 AppDomainID, |
| 5276 | const unsigned short ClrInstanceID |
| 5277 | ) |
| 5278 | { |
| 5279 | ULONG status = EventPipeWriteEventPrvSetGCHandle(HandleID,ObjectID,Kind,Generation,AppDomainID,ClrInstanceID); |
| 5280 | status &= FireEtXplatPrvSetGCHandle(HandleID,ObjectID,Kind,Generation,AppDomainID,ClrInstanceID); |
| 5281 | return status; |
| 5282 | } |
| 5283 | |
| 5284 | inline BOOL EventEnabledPrvDestroyGCHandle() {return EventPipeEventEnabledPrvDestroyGCHandle() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledPrvDestroyGCHandle());} |
| 5285 | |
| 5286 | inline ULONG FireEtwPrvDestroyGCHandle( |
| 5287 | const void* HandleID, |
| 5288 | const unsigned short ClrInstanceID |
| 5289 | ) |
| 5290 | { |
| 5291 | ULONG status = EventPipeWriteEventPrvDestroyGCHandle(HandleID,ClrInstanceID); |
| 5292 | status &= FireEtXplatPrvDestroyGCHandle(HandleID,ClrInstanceID); |
| 5293 | return status; |
| 5294 | } |
| 5295 | |
| 5296 | inline BOOL EventEnabledFusionMessageEvent() {return EventPipeEventEnabledFusionMessageEvent() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledFusionMessageEvent());} |
| 5297 | |
| 5298 | inline ULONG FireEtwFusionMessageEvent( |
| 5299 | const unsigned short ClrInstanceID, |
| 5300 | const BOOL Prepend, |
| 5301 | PCWSTR Message |
| 5302 | ) |
| 5303 | { |
| 5304 | ULONG status = EventPipeWriteEventFusionMessageEvent(ClrInstanceID,Prepend,Message); |
| 5305 | status &= FireEtXplatFusionMessageEvent(ClrInstanceID,Prepend,Message); |
| 5306 | return status; |
| 5307 | } |
| 5308 | |
| 5309 | inline BOOL EventEnabledFusionErrorCodeEvent() {return EventPipeEventEnabledFusionErrorCodeEvent() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledFusionErrorCodeEvent());} |
| 5310 | |
| 5311 | inline ULONG FireEtwFusionErrorCodeEvent( |
| 5312 | const unsigned short ClrInstanceID, |
| 5313 | const unsigned int Category, |
| 5314 | const unsigned int ErrorCode |
| 5315 | ) |
| 5316 | { |
| 5317 | ULONG status = EventPipeWriteEventFusionErrorCodeEvent(ClrInstanceID,Category,ErrorCode); |
| 5318 | status &= FireEtXplatFusionErrorCodeEvent(ClrInstanceID,Category,ErrorCode); |
| 5319 | return status; |
| 5320 | } |
| 5321 | |
| 5322 | inline BOOL EventEnabledPinPlugAtGCTime() {return EventPipeEventEnabledPinPlugAtGCTime() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledPinPlugAtGCTime());} |
| 5323 | |
| 5324 | inline ULONG FireEtwPinPlugAtGCTime( |
| 5325 | const void* PlugStart, |
| 5326 | const void* PlugEnd, |
| 5327 | const void* GapBeforeSize, |
| 5328 | const unsigned short ClrInstanceID |
| 5329 | ) |
| 5330 | { |
| 5331 | ULONG status = EventPipeWriteEventPinPlugAtGCTime(PlugStart,PlugEnd,GapBeforeSize,ClrInstanceID); |
| 5332 | status &= FireEtXplatPinPlugAtGCTime(PlugStart,PlugEnd,GapBeforeSize,ClrInstanceID); |
| 5333 | return status; |
| 5334 | } |
| 5335 | |
| 5336 | inline BOOL EventEnabledCCWRefCountChange() {return EventPipeEventEnabledCCWRefCountChange() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledCCWRefCountChange());} |
| 5337 | |
| 5338 | inline ULONG FireEtwCCWRefCountChange( |
| 5339 | const void* HandleID, |
| 5340 | const void* ObjectID, |
| 5341 | const void* COMInterfacePointer, |
| 5342 | const unsigned int NewRefCount, |
| 5343 | const unsigned __int64 AppDomainID, |
| 5344 | PCWSTR ClassName, |
| 5345 | PCWSTR NameSpace, |
| 5346 | PCWSTR Operation, |
| 5347 | const unsigned short ClrInstanceID |
| 5348 | ) |
| 5349 | { |
| 5350 | ULONG status = EventPipeWriteEventCCWRefCountChange(HandleID,ObjectID,COMInterfacePointer,NewRefCount,AppDomainID,ClassName,NameSpace,Operation,ClrInstanceID); |
| 5351 | status &= FireEtXplatCCWRefCountChange(HandleID,ObjectID,COMInterfacePointer,NewRefCount,AppDomainID,ClassName,NameSpace,Operation,ClrInstanceID); |
| 5352 | return status; |
| 5353 | } |
| 5354 | |
| 5355 | inline BOOL EventEnabledAllocRequest() {return EventPipeEventEnabledAllocRequest() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledAllocRequest());} |
| 5356 | |
| 5357 | inline ULONG FireEtwAllocRequest( |
| 5358 | const void* LoaderHeapPtr, |
| 5359 | const void* MemoryAddress, |
| 5360 | const unsigned int RequestSize, |
| 5361 | const unsigned int Unused1, |
| 5362 | const unsigned __int64 Unused2, |
| 5363 | const unsigned short ClrInstanceID |
| 5364 | ) |
| 5365 | { |
| 5366 | ULONG status = EventPipeWriteEventAllocRequest(LoaderHeapPtr,MemoryAddress,RequestSize,Unused1,Unused2,ClrInstanceID); |
| 5367 | status &= FireEtXplatAllocRequest(LoaderHeapPtr,MemoryAddress,RequestSize,Unused1,Unused2,ClrInstanceID); |
| 5368 | return status; |
| 5369 | } |
| 5370 | |
| 5371 | inline BOOL EventEnabledMulticoreJit() {return EventPipeEventEnabledMulticoreJit() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMulticoreJit());} |
| 5372 | |
| 5373 | inline ULONG FireEtwMulticoreJit( |
| 5374 | const unsigned short ClrInstanceID, |
| 5375 | PCWSTR String1, |
| 5376 | PCWSTR String2, |
| 5377 | const signed int Int1, |
| 5378 | const signed int Int2, |
| 5379 | const signed int Int3 |
| 5380 | ) |
| 5381 | { |
| 5382 | ULONG status = EventPipeWriteEventMulticoreJit(ClrInstanceID,String1,String2,Int1,Int2,Int3); |
| 5383 | status &= FireEtXplatMulticoreJit(ClrInstanceID,String1,String2,Int1,Int2,Int3); |
| 5384 | return status; |
| 5385 | } |
| 5386 | |
| 5387 | inline BOOL EventEnabledMulticoreJitMethodCodeReturned() {return EventPipeEventEnabledMulticoreJitMethodCodeReturned() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledMulticoreJitMethodCodeReturned());} |
| 5388 | |
| 5389 | inline ULONG FireEtwMulticoreJitMethodCodeReturned( |
| 5390 | const unsigned short ClrInstanceID, |
| 5391 | const unsigned __int64 ModuleID, |
| 5392 | const unsigned __int64 MethodID |
| 5393 | ) |
| 5394 | { |
| 5395 | ULONG status = EventPipeWriteEventMulticoreJitMethodCodeReturned(ClrInstanceID,ModuleID,MethodID); |
| 5396 | status &= FireEtXplatMulticoreJitMethodCodeReturned(ClrInstanceID,ModuleID,MethodID); |
| 5397 | return status; |
| 5398 | } |
| 5399 | |
| 5400 | inline BOOL EventEnabledIInspectableRuntimeClassName() {return EventPipeEventEnabledIInspectableRuntimeClassName() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledIInspectableRuntimeClassName());} |
| 5401 | |
| 5402 | inline ULONG FireEtwIInspectableRuntimeClassName( |
| 5403 | PCWSTR TypeName, |
| 5404 | const unsigned short ClrInstanceID |
| 5405 | ) |
| 5406 | { |
| 5407 | ULONG status = EventPipeWriteEventIInspectableRuntimeClassName(TypeName,ClrInstanceID); |
| 5408 | status &= FireEtXplatIInspectableRuntimeClassName(TypeName,ClrInstanceID); |
| 5409 | return status; |
| 5410 | } |
| 5411 | |
| 5412 | inline BOOL EventEnabledWinRTUnbox() {return EventPipeEventEnabledWinRTUnbox() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledWinRTUnbox());} |
| 5413 | |
| 5414 | inline ULONG FireEtwWinRTUnbox( |
| 5415 | PCWSTR TypeName, |
| 5416 | PCWSTR SecondTypeName, |
| 5417 | const unsigned short ClrInstanceID |
| 5418 | ) |
| 5419 | { |
| 5420 | ULONG status = EventPipeWriteEventWinRTUnbox(TypeName,SecondTypeName,ClrInstanceID); |
| 5421 | status &= FireEtXplatWinRTUnbox(TypeName,SecondTypeName,ClrInstanceID); |
| 5422 | return status; |
| 5423 | } |
| 5424 | |
| 5425 | inline BOOL EventEnabledCreateRCW() {return EventPipeEventEnabledCreateRCW() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledCreateRCW());} |
| 5426 | |
| 5427 | inline ULONG FireEtwCreateRCW( |
| 5428 | PCWSTR TypeName, |
| 5429 | const unsigned short ClrInstanceID |
| 5430 | ) |
| 5431 | { |
| 5432 | ULONG status = EventPipeWriteEventCreateRCW(TypeName,ClrInstanceID); |
| 5433 | status &= FireEtXplatCreateRCW(TypeName,ClrInstanceID); |
| 5434 | return status; |
| 5435 | } |
| 5436 | |
| 5437 | inline BOOL EventEnabledRCWVariance() {return EventPipeEventEnabledRCWVariance() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledRCWVariance());} |
| 5438 | |
| 5439 | inline ULONG FireEtwRCWVariance( |
| 5440 | PCWSTR TypeName, |
| 5441 | PCWSTR InterfaceTypeName, |
| 5442 | PCWSTR VariantInterfaceTypeName, |
| 5443 | const unsigned short ClrInstanceID |
| 5444 | ) |
| 5445 | { |
| 5446 | ULONG status = EventPipeWriteEventRCWVariance(TypeName,InterfaceTypeName,VariantInterfaceTypeName,ClrInstanceID); |
| 5447 | status &= FireEtXplatRCWVariance(TypeName,InterfaceTypeName,VariantInterfaceTypeName,ClrInstanceID); |
| 5448 | return status; |
| 5449 | } |
| 5450 | |
| 5451 | inline BOOL EventEnabledRCWIEnumerableCasting() {return EventPipeEventEnabledRCWIEnumerableCasting() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledRCWIEnumerableCasting());} |
| 5452 | |
| 5453 | inline ULONG FireEtwRCWIEnumerableCasting( |
| 5454 | PCWSTR TypeName, |
| 5455 | PCWSTR SecondTypeName, |
| 5456 | const unsigned short ClrInstanceID |
| 5457 | ) |
| 5458 | { |
| 5459 | ULONG status = EventPipeWriteEventRCWIEnumerableCasting(TypeName,SecondTypeName,ClrInstanceID); |
| 5460 | status &= FireEtXplatRCWIEnumerableCasting(TypeName,SecondTypeName,ClrInstanceID); |
| 5461 | return status; |
| 5462 | } |
| 5463 | |
| 5464 | inline BOOL EventEnabledCreateCCW() {return EventPipeEventEnabledCreateCCW() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledCreateCCW());} |
| 5465 | |
| 5466 | inline ULONG FireEtwCreateCCW( |
| 5467 | PCWSTR TypeName, |
| 5468 | const unsigned short ClrInstanceID |
| 5469 | ) |
| 5470 | { |
| 5471 | ULONG status = EventPipeWriteEventCreateCCW(TypeName,ClrInstanceID); |
| 5472 | status &= FireEtXplatCreateCCW(TypeName,ClrInstanceID); |
| 5473 | return status; |
| 5474 | } |
| 5475 | |
| 5476 | inline BOOL EventEnabledCCWVariance() {return EventPipeEventEnabledCCWVariance() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledCCWVariance());} |
| 5477 | |
| 5478 | inline ULONG FireEtwCCWVariance( |
| 5479 | PCWSTR TypeName, |
| 5480 | PCWSTR InterfaceTypeName, |
| 5481 | PCWSTR VariantInterfaceTypeName, |
| 5482 | const unsigned short ClrInstanceID |
| 5483 | ) |
| 5484 | { |
| 5485 | ULONG status = EventPipeWriteEventCCWVariance(TypeName,InterfaceTypeName,VariantInterfaceTypeName,ClrInstanceID); |
| 5486 | status &= FireEtXplatCCWVariance(TypeName,InterfaceTypeName,VariantInterfaceTypeName,ClrInstanceID); |
| 5487 | return status; |
| 5488 | } |
| 5489 | |
| 5490 | inline BOOL EventEnabledObjectVariantMarshallingToNative() {return EventPipeEventEnabledObjectVariantMarshallingToNative() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledObjectVariantMarshallingToNative());} |
| 5491 | |
| 5492 | inline ULONG FireEtwObjectVariantMarshallingToNative( |
| 5493 | PCWSTR TypeName, |
| 5494 | const signed int Int1, |
| 5495 | const unsigned short ClrInstanceID |
| 5496 | ) |
| 5497 | { |
| 5498 | ULONG status = EventPipeWriteEventObjectVariantMarshallingToNative(TypeName,Int1,ClrInstanceID); |
| 5499 | status &= FireEtXplatObjectVariantMarshallingToNative(TypeName,Int1,ClrInstanceID); |
| 5500 | return status; |
| 5501 | } |
| 5502 | |
| 5503 | inline BOOL EventEnabledGetTypeFromGUID() {return EventPipeEventEnabledGetTypeFromGUID() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGetTypeFromGUID());} |
| 5504 | |
| 5505 | inline ULONG FireEtwGetTypeFromGUID( |
| 5506 | PCWSTR TypeName, |
| 5507 | PCWSTR SecondTypeName, |
| 5508 | const unsigned short ClrInstanceID |
| 5509 | ) |
| 5510 | { |
| 5511 | ULONG status = EventPipeWriteEventGetTypeFromGUID(TypeName,SecondTypeName,ClrInstanceID); |
| 5512 | status &= FireEtXplatGetTypeFromGUID(TypeName,SecondTypeName,ClrInstanceID); |
| 5513 | return status; |
| 5514 | } |
| 5515 | |
| 5516 | inline BOOL EventEnabledGetTypeFromProgID() {return EventPipeEventEnabledGetTypeFromProgID() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledGetTypeFromProgID());} |
| 5517 | |
| 5518 | inline ULONG FireEtwGetTypeFromProgID( |
| 5519 | PCWSTR TypeName, |
| 5520 | PCWSTR SecondTypeName, |
| 5521 | const unsigned short ClrInstanceID |
| 5522 | ) |
| 5523 | { |
| 5524 | ULONG status = EventPipeWriteEventGetTypeFromProgID(TypeName,SecondTypeName,ClrInstanceID); |
| 5525 | status &= FireEtXplatGetTypeFromProgID(TypeName,SecondTypeName,ClrInstanceID); |
| 5526 | return status; |
| 5527 | } |
| 5528 | |
| 5529 | inline BOOL EventEnabledConvertToCallbackEtw() {return EventPipeEventEnabledConvertToCallbackEtw() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledConvertToCallbackEtw());} |
| 5530 | |
| 5531 | inline ULONG FireEtwConvertToCallbackEtw( |
| 5532 | PCWSTR TypeName, |
| 5533 | PCWSTR SecondTypeName, |
| 5534 | const unsigned short ClrInstanceID |
| 5535 | ) |
| 5536 | { |
| 5537 | ULONG status = EventPipeWriteEventConvertToCallbackEtw(TypeName,SecondTypeName,ClrInstanceID); |
| 5538 | status &= FireEtXplatConvertToCallbackEtw(TypeName,SecondTypeName,ClrInstanceID); |
| 5539 | return status; |
| 5540 | } |
| 5541 | |
| 5542 | inline BOOL EventEnabledBeginCreateManagedReference() {return EventPipeEventEnabledBeginCreateManagedReference() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledBeginCreateManagedReference());} |
| 5543 | |
| 5544 | inline ULONG FireEtwBeginCreateManagedReference( |
| 5545 | const unsigned short ClrInstanceID |
| 5546 | ) |
| 5547 | { |
| 5548 | ULONG status = EventPipeWriteEventBeginCreateManagedReference(ClrInstanceID); |
| 5549 | status &= FireEtXplatBeginCreateManagedReference(ClrInstanceID); |
| 5550 | return status; |
| 5551 | } |
| 5552 | |
| 5553 | inline BOOL EventEnabledEndCreateManagedReference() {return EventPipeEventEnabledEndCreateManagedReference() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledEndCreateManagedReference());} |
| 5554 | |
| 5555 | inline ULONG FireEtwEndCreateManagedReference( |
| 5556 | const unsigned short ClrInstanceID |
| 5557 | ) |
| 5558 | { |
| 5559 | ULONG status = EventPipeWriteEventEndCreateManagedReference(ClrInstanceID); |
| 5560 | status &= FireEtXplatEndCreateManagedReference(ClrInstanceID); |
| 5561 | return status; |
| 5562 | } |
| 5563 | |
| 5564 | inline BOOL EventEnabledObjectVariantMarshallingToManaged() {return EventPipeEventEnabledObjectVariantMarshallingToManaged() || (XplatEventLogger::IsEventLoggingEnabled() && EventXplatEnabledObjectVariantMarshallingToManaged());} |
| 5565 | |
| 5566 | inline ULONG FireEtwObjectVariantMarshallingToManaged( |
| 5567 | PCWSTR TypeName, |
| 5568 | const signed int Int1, |
| 5569 | const unsigned short ClrInstanceID |
| 5570 | ) |
| 5571 | { |
| 5572 | ULONG status = EventPipeWriteEventObjectVariantMarshallingToManaged(TypeName,Int1,ClrInstanceID); |
| 5573 | status &= FireEtXplatObjectVariantMarshallingToManaged(TypeName,Int1,ClrInstanceID); |
| 5574 | return status; |
| 5575 | } |
| 5576 | |
| 5577 | |
| 5578 | |