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
2 changes: 1 addition & 1 deletion src/coreclr/inc/corprof.idl
Original file line number Diff line number Diff line change
Expand Up @@ -2602,7 +2602,7 @@ interface ICorProfilerCallback10 : ICorProfilerCallback9
]
interface ICorProfilerCallback11 : ICorProfilerCallback10
{
HRESULT LoadAsNotficationOnly(BOOL *pbNotificationOnly);
HRESULT LoadAsNotificationOnly(BOOL *pbNotificationOnly);
}

/*
Expand Down
10 changes: 5 additions & 5 deletions src/coreclr/pal/prebuilt/inc/corprof.h
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ enum __MIDL___MIDL_itf_corprof_0000_0000_0006
COR_PRF_HIGH_REQUIRE_PROFILE_IMAGE = 0,
COR_PRF_HIGH_MONITOR_LARGEOBJECT_ALLOCATED = 0x40,
COR_PRF_HIGH_MONITOR_EVENT_PIPE = 0x80,
COR_PRF_HIGH_MONITOR_PINNEDOBJECT_ALLOCATED = 0x100,
COR_PRF_HIGH_MONITOR_PINNEDOBJECT_ALLOCATED = 0x100,
COR_PRF_HIGH_ALLOWABLE_AFTER_ATTACH = ( ( ( ( ( COR_PRF_HIGH_IN_MEMORY_SYMBOLS_UPDATED | COR_PRF_HIGH_MONITOR_DYNAMIC_FUNCTION_UNLOADS ) | COR_PRF_HIGH_BASIC_GC ) | COR_PRF_HIGH_MONITOR_GC_MOVED_OBJECTS ) | COR_PRF_HIGH_MONITOR_LARGEOBJECT_ALLOCATED ) | COR_PRF_HIGH_MONITOR_EVENT_PIPE ) ,
COR_PRF_HIGH_ALLOWABLE_NOTIFICATION_PROFILER = ( ( ( ( ( ( COR_PRF_HIGH_IN_MEMORY_SYMBOLS_UPDATED | COR_PRF_HIGH_MONITOR_DYNAMIC_FUNCTION_UNLOADS ) | COR_PRF_HIGH_DISABLE_TIERED_COMPILATION ) | COR_PRF_HIGH_BASIC_GC ) | COR_PRF_HIGH_MONITOR_GC_MOVED_OBJECTS ) | COR_PRF_HIGH_MONITOR_LARGEOBJECT_ALLOCATED ) | COR_PRF_HIGH_MONITOR_EVENT_PIPE ) ,
COR_PRF_HIGH_MONITOR_IMMUTABLE = COR_PRF_HIGH_DISABLE_TIERED_COMPILATION
Expand Down Expand Up @@ -8374,7 +8374,7 @@ EXTERN_C const IID IID_ICorProfilerCallback11;
ICorProfilerCallback11 : public ICorProfilerCallback10
{
public:
virtual HRESULT STDMETHODCALLTYPE LoadAsNotficationOnly(
virtual HRESULT STDMETHODCALLTYPE LoadAsNotificationOnly(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The breaking change might be worth a heads up on the profiler announcement issue, but I agree it seems unlikely to affect many people and easy to resolve

BOOL *pbNotificationOnly) = 0;

};
Expand Down Expand Up @@ -8844,7 +8844,7 @@ EXTERN_C const IID IID_ICorProfilerCallback11;
ICorProfilerCallback11 * This,
/* [in] */ EVENTPIPE_PROVIDER provider);

HRESULT ( STDMETHODCALLTYPE *LoadAsNotficationOnly )(
HRESULT ( STDMETHODCALLTYPE *LoadAsNotificationOnly )(
ICorProfilerCallback11 * This,
BOOL *pbNotificationOnly);

Expand Down Expand Up @@ -9163,8 +9163,8 @@ EXTERN_C const IID IID_ICorProfilerCallback11;
( (This)->lpVtbl -> EventPipeProviderCreated(This,provider) )


#define ICorProfilerCallback11_LoadAsNotficationOnly(This,pbNotificationOnly) \
( (This)->lpVtbl -> LoadAsNotficationOnly(This,pbNotificationOnly) )
#define ICorProfilerCallback11_LoadAsNotificationOnly(This,pbNotificationOnly) \
( (This)->lpVtbl -> LoadAsNotificationOnly(This,pbNotificationOnly) )

#endif /* COBJMACROS */

Expand Down
6 changes: 3 additions & 3 deletions src/coreclr/vm/eetoprofinterfaceimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6055,7 +6055,7 @@ HRESULT EEToProfInterfaceImpl::EventPipeProviderCreated(EventPipeProvider *provi
#endif // FEATURE_PERFTRACING
}

HRESULT EEToProfInterfaceImpl::LoadAsNotficationOnly(BOOL *pbNotificationOnly)
HRESULT EEToProfInterfaceImpl::LoadAsNotificationOnly(BOOL *pbNotificationOnly)
{
CONTRACTL
{
Expand All @@ -6071,15 +6071,15 @@ HRESULT EEToProfInterfaceImpl::LoadAsNotficationOnly(BOOL *pbNotificationOnly)

LOG((LF_CORPROF,
LL_INFO1000,
"**PROF: LoadAsNotficationOnly.\n"));
"**PROF: LoadAsNotificationOnly.\n"));

if (m_pCallback11 == NULL)
{
*pbNotificationOnly = FALSE;
return S_OK;
}

return m_pCallback11->LoadAsNotficationOnly(pbNotificationOnly);
return m_pCallback11->LoadAsNotificationOnly(pbNotificationOnly);
}

#endif // PROFILING_SUPPORTED
2 changes: 1 addition & 1 deletion src/coreclr/vm/eetoprofinterfaceimpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ class EEToProfInterfaceImpl

HRESULT EventPipeProviderCreated(EventPipeProvider *provider);

HRESULT LoadAsNotficationOnly(BOOL *pbNotificationOnly);
HRESULT LoadAsNotificationOnly(BOOL *pbNotificationOnly);

ProfToEEInterfaceImpl *GetProfToEE()
{
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/vm/profilinghelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ HRESULT ProfilingAPIUtility::LoadProfiler(
// Check if this profiler is notification only and load as appropriate
BOOL notificationOnly = FALSE;
{
HRESULT callHr = profilerInfo.pProfInterface->LoadAsNotficationOnly(&notificationOnly);
HRESULT callHr = profilerInfo.pProfInterface->LoadAsNotificationOnly(&notificationOnly);
if (FAILED(callHr))
{
notificationOnly = FALSE;
Expand Down