-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove some unnecessary indirection to DiagnosticServerAdapter/EventP…
…ipeAdapter in nativeaot
- Loading branch information
1 parent
e857642
commit 9102e1a
Showing
20 changed files
with
89 additions
and
193 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
12 changes: 6 additions & 6 deletions
12
src/coreclr/nativeaot/Runtime/DisabledEventPipeInterface.cpp
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
void EventPipeAdapter_Initialize() {} | ||
void EventPipe_Initialize() {} | ||
|
||
bool DiagnosticServerAdapter_Initialize() { return false; } | ||
void DiagnosticServerAdapter_PauseForDiagnosticsMonitor() {} | ||
bool DiagnosticServer_Initialize() { return false; } | ||
void DiagnosticServer_PauseForDiagnosticsMonitor() {} | ||
|
||
void EventPipeAdapter_FinishInitialize() {} | ||
void EventPipe_FinishInitialize() {} | ||
|
||
void EventPipe_ThreadShutdown() { } | ||
|
||
void EventPipeAdapter_Shutdown() {} | ||
bool DiagnosticServerAdapter_Shutdown() { return false; } | ||
void EventPipe_Shutdown() {} | ||
bool DiagnosticServer_Shutdown() { return false; } |
17 changes: 9 additions & 8 deletions
17
src/coreclr/nativeaot/Runtime/EnabledEventPipeInterface.cpp
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 |
---|---|---|
@@ -1,17 +1,18 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
#include "eventpipeadapter.h" | ||
#include "diagnosticserveradapter.h" | ||
#include <eventpipe/ep.h> | ||
#include <eventpipe/ep-rt-aot.h> | ||
#include <eventpipe/ds-server.h> | ||
|
||
void EventPipeAdapter_Initialize() { EventPipeAdapter::Initialize(); } | ||
void EventPipe_Initialize() { ep_init(); } | ||
|
||
bool DiagnosticServerAdapter_Initialize() { return DiagnosticServerAdapter::Initialize(); } | ||
void DiagnosticServerAdapter_PauseForDiagnosticsMonitor() { DiagnosticServerAdapter::PauseForDiagnosticsMonitor();} | ||
bool DiagnosticServer_Initialize() { return ds_server_init(); } | ||
void DiagnosticServer_PauseForDiagnosticsMonitor() { ds_server_pause_for_diagnostics_monitor(); } | ||
|
||
void EventPipeAdapter_FinishInitialize() { EventPipeAdapter::FinishInitialize(); } | ||
void EventPipe_FinishInitialize() { ep_finish_init(); } | ||
|
||
void EventPipe_ThreadShutdown() { ep_rt_aot_thread_exited(); } | ||
|
||
void EventPipeAdapter_Shutdown() { EventPipeAdapter::Shutdown(); } | ||
bool DiagnosticServerAdapter_Shutdown() { return DiagnosticServerAdapter::Shutdown(); } | ||
void EventPipe_Shutdown() { ep_shutdown(); } | ||
bool DiagnosticServer_Shutdown() { return ds_server_shutdown(); } |
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 was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.