1 | // Licensed to the .NET Foundation under one or more agreements. |
---|---|
2 | // The .NET Foundation licenses this file to you under the MIT license. |
3 | // See the LICENSE file in the project root for more information. |
4 | // |
5 | // File: nativeeventsource.cpp |
6 | // Abstract: This module implements native part of Event Source support in VM |
7 | // |
8 | // |
9 | // |
10 | // ============================================================================ |
11 | |
12 | #include "common.h" |
13 | #if defined(FEATURE_EVENTSOURCE_XPLAT) |
14 | #include "nativeeventsource.h" |
15 | |
16 | void QCALLTYPE XplatEventSourceLogger::LogEventSource(__in_z int eventID, __in_z LPCWSTR eventName, __in_z LPCWSTR eventSourceName, __in_z LPCWSTR payload) |
17 | { |
18 | QCALL_CONTRACT; |
19 | BEGIN_QCALL; |
20 | FireEtwEventSource(eventID, eventName, eventSourceName, payload); |
21 | END_QCALL; |
22 | } |
23 | |
24 | BOOL QCALLTYPE XplatEventSourceLogger::IsEventSourceLoggingEnabled() |
25 | { |
26 | QCALL_CONTRACT; |
27 | |
28 | BOOL retVal = FALSE; |
29 | |
30 | BEGIN_QCALL; |
31 | retVal = XplatEventLogger::IsEventLoggingEnabled(); |
32 | END_QCALL; |
33 | |
34 | return retVal; |
35 | |
36 | } |
37 | |
38 | #endif //defined(FEATURE_EVENTSOURCE_XPLAT) |
39 |