-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ds-server.h
41 lines (31 loc) · 892 Bytes
/
ds-server.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef __DIAGNOSTICS_SERVER_H__
#define __DIAGNOSTICS_SERVER_H__
#include "ds-rt-config.h"
#ifdef ENABLE_PERFTRACING
#include "ds-types.h"
#include "ds-rt.h"
/*
* DiagnosticsServer.
*/
void
ds_server_disable (void);
// Initialize the event pipe (Creates the EventPipe IPC server).
bool
ds_server_init (void);
// Shutdown the event pipe.
bool
ds_server_shutdown (void);
// Pauses runtime startup after the Diagnostics Server has been started
// allowing a Diagnostics Monitor to attach perform tasks before
// Startup is completed
EP_NEVER_INLINE
void
ds_server_pause_for_diagnostics_monitor (void);
// Sets event to resume startup in runtime
// This is a no-op if not configured to pause or runtime has already resumed
void
ds_server_resume_runtime_startup (void);
bool
ds_server_is_paused_in_startup (void);
#endif /* ENABLE_PERFTRACING */
#endif /* __DIAGNOSTICS_SERVER_H__ */