forked from dotnet/runtime
-
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.
PR handling port of Diagnostic Server C++ library from CoreCLR into a C
library that can be shared between Mono as well as CoreCLR runtime. Port follows same guidelines setup for event pipe port dotnet#34600. Diagnostic server library is currently hosted as part of event pipe library but hosting its own runtime shim as well as source files (so could be split into separate library if ever make sense). Diagnostic Server have dependencies on event pipe library (and reuse part of event pipe runtime shim from its how shim). This is the first PR getting the code from diagnostic server codebase over to C library.
- Loading branch information
1 parent
22791d4
commit 00955f4
Showing
88 changed files
with
8,104 additions
and
432 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#include <config.h> | ||
|
||
#ifdef ENABLE_PERFTRACING | ||
#include "ds-rt-config.h" | ||
#if !defined(DS_INCLUDE_SOURCE_FILES) || defined(DS_FORCE_INCLUDE_SOURCE_FILES) | ||
|
||
#define DS_IMPL_DUMP_PROTOCOL_GETTER_SETTER | ||
#include "ds-protocol.h" | ||
#include "ds-dump-protocol.h" | ||
#include "ds-rt.h" | ||
|
||
void | ||
ds_dump_protocol_helper_handle_ipc_message ( | ||
DiagnosticsIpcMessage *message, | ||
DiagnosticsIpcStream *stream) | ||
{ | ||
EP_ASSERT (message != NULL); | ||
EP_ASSERT (stream != NULL); | ||
|
||
// TODO: Implement. | ||
DS_LOG_WARNING_0 ("Generate Core Dump not implemented\n"); | ||
ds_ipc_message_send_error (stream, DS_IPC_E_NOTSUPPORTED); | ||
ds_ipc_stream_free (stream); | ||
} | ||
|
||
#endif /* !defined(DS_INCLUDE_SOURCE_FILES) || defined(DS_FORCE_INCLUDE_SOURCE_FILES) */ | ||
#endif /* ENABLE_PERFTRACING */ | ||
|
||
#ifndef DS_INCLUDE_SOURCE_FILES | ||
extern const char quiet_linker_empty_file_warning_diagnostics_dump_protocol; | ||
const char quiet_linker_empty_file_warning_diagnostics_dump_protocol = 0; | ||
#endif |
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,27 @@ | ||
#ifndef __DIAGNOSTICS_DUMP_PROTOCOL_H__ | ||
#define __DIAGNOSTICS_DUMP_PROTOCOL_H__ | ||
|
||
#include <config.h> | ||
|
||
#ifdef ENABLE_PERFTRACING | ||
#include "ds-rt-config.h" | ||
#include "ds-types.h" | ||
#include "ds-ipc.h" | ||
|
||
#undef DS_IMPL_GETTER_SETTER | ||
#ifdef DS_IMPL_DUMP_PROTOCOL_GETTER_SETTER | ||
#define DS_IMPL_GETTER_SETTER | ||
#endif | ||
#include "ds-getter-setter.h" | ||
|
||
/* | ||
* DiagnosticsDumpProtocolHelper. | ||
*/ | ||
|
||
void | ||
ds_dump_protocol_helper_handle_ipc_message ( | ||
DiagnosticsIpcMessage *message, | ||
DiagnosticsIpcStream *stream); | ||
|
||
#endif /* ENABLE_PERFTRACING */ | ||
#endif /* __DIAGNOSTICS_DUMP_PROTOCOL_H__ */ |
Oops, something went wrong.