forked from dotnet/coreclr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
45 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// 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 | ||
// | ||
|
||
// | ||
|
||
// | ||
// ============================================================================ | ||
|
||
#if defined(FEATURE_EVENTSOURCE_XPLAT) | ||
#include "common.h" | ||
#include "eventtracepriv.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) |