summaryrefslogtreecommitdiff
path: root/src/vm/nativeeventsource.cpp
diff options
context:
space:
mode:
authorDDCloud <ramarag@microsoft.com>2016-03-28 16:55:01 -0700
committerDDCloud <ramarag@microsoft.com>2016-04-25 13:54:27 -0700
commit33332a82daaeae7dcb4b2e20b6e3fd0e16ab3482 (patch)
treee66f1a8a33df6e79970aa36f20c5e7d70c26212f /src/vm/nativeeventsource.cpp
parent884757e6ae8fdbd259965670aa1f3324a148c3e9 (diff)
downloadcoreclr-33332a82daaeae7dcb4b2e20b6e3fd0e16ab3482.tar.gz
coreclr-33332a82daaeae7dcb4b2e20b6e3fd0e16ab3482.tar.bz2
coreclr-33332a82daaeae7dcb4b2e20b6e3fd0e16ab3482.zip
Fixing up FEATURE_EVENTSOURCE_XPLAT
Diffstat (limited to 'src/vm/nativeeventsource.cpp')
-rw-r--r--src/vm/nativeeventsource.cpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/vm/nativeeventsource.cpp b/src/vm/nativeeventsource.cpp
new file mode 100644
index 0000000000..4c895e0c99
--- /dev/null
+++ b/src/vm/nativeeventsource.cpp
@@ -0,0 +1,38 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+//
+// File: nativeeventsource.cpp
+// Abstract: This module implements native part of Event Source support in VM
+//
+//
+//
+// ============================================================================
+
+#include "common.h"
+#if defined(FEATURE_EVENTSOURCE_XPLAT)
+#include "nativeeventsource.h"
+
+void QCALLTYPE XplatEventSourceLogger::LogEventSource(__in_z int eventID, __in_z LPCWSTR eventName, __in_z LPCWSTR eventSourceName, __in_z LPCWSTR payload)
+{
+ QCALL_CONTRACT;
+ BEGIN_QCALL;
+ FireEtwEventSource(eventID, eventName, eventSourceName, payload);
+ END_QCALL;
+}
+
+BOOL QCALLTYPE XplatEventSourceLogger::IsEventSourceLoggingEnabled()
+{
+ QCALL_CONTRACT;
+
+ BOOL retVal = FALSE;
+
+ BEGIN_QCALL;
+ retVal = XplatEventLogger::IsEventLoggingEnabled();
+ END_QCALL;
+
+ return retVal;
+
+}
+
+#endif //defined(FEATURE_EVENTSOURCE_XPLAT)