summaryrefslogtreecommitdiff
path: root/src/vm/eventpipe.h
diff options
context:
space:
mode:
authorBrian Robbins <brianrob@microsoft.com>2017-05-10 15:11:28 -0700
committerGitHub <noreply@github.com>2017-05-10 15:11:28 -0700
commit377073385e4545d36e1a96429dd78548f87c597c (patch)
treef89141239ab55d650e7b516ea10a8514d5c81c44 /src/vm/eventpipe.h
parent0b625bfdbb97565b7d489d1d083cfaf4dbd47e0d (diff)
downloadcoreclr-377073385e4545d36e1a96429dd78548f87c597c.tar.gz
coreclr-377073385e4545d36e1a96429dd78548f87c597c.tar.bz2
coreclr-377073385e4545d36e1a96429dd78548f87c597c.zip
Re-Factor EventSource to Support Writing to EventPipe (#11435)
Re-Factor EventSource to Support Writing to EventPipe.
Diffstat (limited to 'src/vm/eventpipe.h')
-rw-r--r--src/vm/eventpipe.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/vm/eventpipe.h b/src/vm/eventpipe.h
index c6d7f61152..d5b85f7e3a 100644
--- a/src/vm/eventpipe.h
+++ b/src/vm/eventpipe.h
@@ -8,6 +8,7 @@
#ifdef FEATURE_PERFTRACING
#include "crst.h"
+#include "eventpipeprovider.h"
#include "stackwalk.h"
class EventPipeConfiguration;
@@ -174,6 +175,32 @@ class EventPipe
static EventPipeJsonFile *s_pJsonFile;
};
+class EventPipeInternal
+{
+
+public:
+
+ static INT_PTR QCALLTYPE CreateProvider(
+ GUID providerID,
+ EventPipeCallback pCallbackFunc);
+
+ static INT_PTR QCALLTYPE AddEvent(
+ INT_PTR provHandle,
+ __int64 keywords,
+ unsigned int eventID,
+ unsigned int eventVersion,
+ unsigned int level,
+ bool needStack);
+
+ static void QCALLTYPE DeleteProvider(
+ INT_PTR provHandle);
+
+ static void QCALLTYPE WriteEvent(
+ INT_PTR eventHandle,
+ void *pData,
+ unsigned int length);
+};
+
#endif // FEATURE_PERFTRACING
#endif // __EVENTPIPE_H__