Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[MonoVM] Add ProcessInfo command to Diagnostics Server.
Mono port of CoreCLR PR: #38967.
  • Loading branch information
lateralusX committed Aug 21, 2020
commit 5d68c5960faa401afefab605ceb672a59ef1dab3
4 changes: 2 additions & 2 deletions src/mono/mono/eventpipe/ep-event-source.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ ep_event_source_send_process_info (
ep_char16_t *arch_info_utf16 = NULL;

command_line_utf16 = ep_rt_utf8_to_utf16_string (command_line, -1);
os_info_utf16 = ep_rt_utf8_to_utf16_string (_ep_os_info, -1);
arch_info_utf16 = ep_rt_utf8_to_utf16_string (_ep_arch_info, -1);
os_info_utf16 = ep_rt_utf8_to_utf16_string (ep_event_source_get_os_info (), -1);
arch_info_utf16 = ep_rt_utf8_to_utf16_string (ep_event_source_get_arch_info (), -1);

EventData data [3] = { { 0 } };
if (command_line_utf16)
Expand Down
18 changes: 18 additions & 0 deletions src/mono/mono/eventpipe/ep-event-source.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,24 @@ struct _EventPipeEventSource {
};
#endif

static
inline
const char *
ep_event_source_get_os_info (void)
{
extern const char *_ep_os_info;
return _ep_os_info;
}

static
inline
const char *
ep_event_source_get_arch_info (void)
{
extern const char *_ep_arch_info;
return _ep_arch_info;
}

EventPipeEventSource *
ep_event_source_alloc (void);

Expand Down