diff options
author | David Mason <davmason@microsoft.com> | 2019-06-05 17:30:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-05 17:30:46 -0700 |
commit | 8cb41af71ecff4e53fd02242b2710fcf6a4102ac (patch) | |
tree | 1fa854316ff86a2d2b4d13f9b97780918a59f10e /src/pal | |
parent | 3dd303f0004ed4771bc29167df30efda07e4cf7e (diff) | |
download | coreclr-8cb41af71ecff4e53fd02242b2710fcf6a4102ac.tar.gz coreclr-8cb41af71ecff4e53fd02242b2710fcf6a4102ac.tar.bz2 coreclr-8cb41af71ecff4e53fd02242b2710fcf6a4102ac.zip |
APIs to allow profilers to use DoStackSnapShot on Linux (#24968)
Diffstat (limited to 'src/pal')
-rw-r--r-- | src/pal/prebuilt/inc/corerror.h | 1 | ||||
-rw-r--r-- | src/pal/prebuilt/inc/corprof.h | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/pal/prebuilt/inc/corerror.h b/src/pal/prebuilt/inc/corerror.h index 3d92d63fd7..7bd0c10221 100644 --- a/src/pal/prebuilt/inc/corerror.h +++ b/src/pal/prebuilt/inc/corerror.h @@ -232,6 +232,7 @@ #define CORDIAGIPC_E_UNKNOWN_COMMAND EMAKEHR(0x1385) #define CORDIAGIPC_E_UNKNOWN_MAGIC EMAKEHR(0x1386) #define CORDIAGIPC_E_UNKNOWN_ERROR EMAKEHR(0x1387) +#define CORPROF_E_SUSPENSION_IN_PROGRESS EMAKEHR(0x1388) #define SECURITY_E_INCOMPATIBLE_SHARE EMAKEHR(0x1401) #define SECURITY_E_UNVERIFIABLE EMAKEHR(0x1402) #define SECURITY_E_INCOMPATIBLE_EVIDENCE EMAKEHR(0x1403) diff --git a/src/pal/prebuilt/inc/corprof.h b/src/pal/prebuilt/inc/corprof.h index be4b8102eb..2717067ed3 100644 --- a/src/pal/prebuilt/inc/corprof.h +++ b/src/pal/prebuilt/inc/corprof.h @@ -15208,6 +15208,10 @@ EXTERN_C const IID IID_ICorProfilerInfo10; /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]) = 0; + virtual HRESULT STDMETHODCALLTYPE SuspendRuntime( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE ResumeRuntime( void) = 0; + }; @@ -15815,6 +15819,12 @@ EXTERN_C const IID IID_ICorProfilerInfo10; /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]); + HRESULT ( STDMETHODCALLTYPE *SuspendRuntime )( + ICorProfilerInfo10 * This); + + HRESULT ( STDMETHODCALLTYPE *ResumeRuntime )( + ICorProfilerInfo10 * This); + END_INTERFACE } ICorProfilerInfo10Vtbl; @@ -16129,6 +16139,12 @@ EXTERN_C const IID IID_ICorProfilerInfo10; #define ICorProfilerInfo10_RequestReJITWithInliners(This,dwRejitFlags,cFunctions,moduleIds,methodIds) \ ( (This)->lpVtbl -> RequestReJITWithInliners(This,dwRejitFlags,cFunctions,moduleIds,methodIds) ) +#define ICorProfilerInfo10_SuspendRuntime(This) \ + ( (This)->lpVtbl -> SuspendRuntime(This) ) + +#define ICorProfilerInfo10_ResumeRuntime(This) \ + ( (This)->lpVtbl -> ResumeRuntime(This) ) + #endif /* COBJMACROS */ |