Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Salem <josalem@microsoft.com>2021-06-09 22:52:29 +0300
committerGitHub <noreply@github.com>2021-06-09 22:52:29 +0300
commit197cfb60f37626ce9e07285517b129fc01f9621e (patch)
tree20779d370f399094ec3dc65fe9db507b2ec04e28 /src/coreclr/vm
parent879879e6a109a6db4908b0f0081017bb2ba1f13b (diff)
ProcessInfo2 Diagnostics IPC Command (#52258)
* Stash the entrypoint assembly path * Add ep funcs for accessing entrypoint and version * TODO: get Mono's entrypoint asm * Add ProcessInfo2 command * command includes everything the first one did + product ver and entrypoint asm path * Add a test too * Mono build fixes * fix Mono build * PR feedback * fetch mono info from main assembly * remove ref naming * remove lazy method * handle bundled host * need to test still * Use assembly name * simplify access patterns * change API to utf8 * updated test * update comment * PR feedback * save before I commit this time... * fix merge conflict * Update ds-process-protocol.c add missing break statement from merge conflict fix * Update src/native/eventpipe/ds-process-protocol.h * Update ds-process-protocol.c add missing frees * PR feedback
Diffstat (limited to 'src/coreclr/vm')
-rw-r--r--src/coreclr/vm/eventing/eventpipe/ep-rt-coreclr.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/coreclr/vm/eventing/eventpipe/ep-rt-coreclr.h b/src/coreclr/vm/eventing/eventpipe/ep-rt-coreclr.h
index a6400416a4e..38d5598be0b 100644
--- a/src/coreclr/vm/eventing/eventpipe/ep-rt-coreclr.h
+++ b/src/coreclr/vm/eventing/eventpipe/ep-rt-coreclr.h
@@ -12,6 +12,7 @@
#include "fstream.h"
#include "typestring.h"
#include "win32threadpool.h"
+#include "clrversion.h"
#undef EP_ARRAY_SIZE
#define EP_ARRAY_SIZE(expr) (sizeof(expr) / sizeof ((expr) [0]))
@@ -1161,6 +1162,25 @@ ep_rt_coreclr_config_lock_get (void)
return &_ep_rt_coreclr_config_lock_handle;
}
+static
+inline
+const ep_char8_t *
+ep_rt_entrypoint_assembly_name_get_utf8 (void)
+{
+ STATIC_CONTRACT_NOTHROW;
+
+ return reinterpret_cast<const ep_char8_t*>(GetAppDomain ()->GetRootAssembly ()->GetSimpleName ());
+}
+
+static
+const ep_char8_t *
+ep_rt_runtime_version_get_utf8 (void)
+{
+ STATIC_CONTRACT_NOTHROW;
+
+ return reinterpret_cast<const ep_char8_t*>(CLR_PRODUCT_VERSION);
+}
+
/*
* Atomics.
*/