Skip to content

Commit

Permalink
Initial work to enable native events in EventPipe (#84318)
Browse files Browse the repository at this point in the history
* Initial work to enable native events in EventPipe

* Linux build break fix

* Match EtwProvider native runtime events with EventPipe

* Fix gcc build failures

* missed the diabled-lib API change

* Fix test
  • Loading branch information
LakshanF authored Apr 14, 2023
1 parent 0a204f5 commit 2d833f4
Show file tree
Hide file tree
Showing 16 changed files with 3,660 additions and 89 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

void EventPipeAdapter_Initialize() {}
bool EventPipeAdapter_Enabled() { return false; }

bool DiagnosticServerAdapter_Initialize() { return false; }
void DiagnosticServerAdapter_PauseForDiagnosticsMonitor() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "SpinLock.h"

void EventPipeAdapter_Initialize() { EventPipeAdapter::Initialize(); }
bool EventPipeAdapter_Enabled() { return EventPipeAdapter::Enabled(); }

bool DiagnosticServerAdapter_Initialize() { return DiagnosticServerAdapter::Initialize(); }
void DiagnosticServerAdapter_PauseForDiagnosticsMonitor() { DiagnosticServerAdapter::PauseForDiagnosticsMonitor();}
Expand Down
154 changes: 78 additions & 76 deletions src/coreclr/nativeaot/Runtime/EtwEvents.h

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/coreclr/nativeaot/Runtime/EventPipeInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

// Initialize EventPipe
void EventPipeAdapter_Initialize();
bool EventPipeAdapter_Enabled();

// Initialize DS
bool DiagnosticServerAdapter_Initialize();
Expand Down
Loading

0 comments on commit 2d833f4

Please sign in to comment.