17#ifndef INTEL_JIT_EVENTS_WRAPPER_H
18#define INTEL_JIT_EVENTS_WRAPPER_H
35 typedef int (*IttnotifyInfoPtr)(
IttEventType,
const char *,
unsigned int);
38 typedef void (*FinalizeThreadPtr)(void);
39 typedef void (*FinalizeProcessPtr)(void);
40 typedef unsigned int (*GetNewMethodIDPtr)(void);
42 NotifyEventPtr NotifyEventFunc;
43 IttnotifyInfoPtr IttnotifyInfoFunc;
44 RegisterCallbackExPtr RegisterCallbackExFunc;
45 IsProfilingActivePtr IsProfilingActiveFunc;
46 GetNewMethodIDPtr GetNewMethodIDFunc;
60 IttnotifyInfoPtr IttnotifyInfoImpl,
61 RegisterCallbackExPtr RegisterCallbackExImpl,
62 IsProfilingActivePtr IsProfilingActiveImpl,
63 FinalizeThreadPtr FinalizeThreadImpl,
64 FinalizeProcessPtr FinalizeProcessImpl,
65 GetNewMethodIDPtr GetNewMethodIDImpl)
66 : NotifyEventFunc(NotifyEventImpl), IttnotifyInfoFunc(IttnotifyInfoImpl),
67 RegisterCallbackExFunc(RegisterCallbackExImpl),
68 IsProfilingActiveFunc(IsProfilingActiveImpl),
69 GetNewMethodIDFunc(GetNewMethodIDImpl) {}
76 return NotifyEventFunc(EventType, EventSpecificData);
81 if (!IttnotifyInfoFunc)
83 return IttnotifyInfoFunc(EventType,
Name,
Size);
89 if (RegisterCallbackExFunc)
90 RegisterCallbackExFunc(UserData, NewModeCallBackFuncEx);
95 if (!IsProfilingActiveFunc)
97 return IsProfilingActiveFunc();
102 if (!GetNewMethodIDFunc)
104 return GetNewMethodIDFunc();
void iJIT_RegisterCallbackEx(void *UserData, iJIT_ModeChangedEx NewModeCallBackFuncEx)
bool isAmplifierRunning()
int iJitIttNotifyInfo(IttEventType EventType, const char *Name, unsigned int Size)
IntelJITEventsWrapper(NotifyEventPtr NotifyEventImpl, IttnotifyInfoPtr IttnotifyInfoImpl, RegisterCallbackExPtr RegisterCallbackExImpl, IsProfilingActivePtr IsProfilingActiveImpl, FinalizeThreadPtr FinalizeThreadImpl, FinalizeProcessPtr FinalizeProcessImpl, GetNewMethodIDPtr GetNewMethodIDImpl)
unsigned int iJIT_GetNewMethodID(void)
iJIT_IsProfilingActiveFlags iJIT_IsProfilingActive(void)
int iJIT_NotifyEvent(iJIT_JVM_EVENT EventType, void *EventSpecificData)
void(* iJIT_ModeChangedEx)(void *UserData, iJIT_ModeFlags Flags)
enum iJIT_jvm_event iJIT_JVM_EVENT
enum _iJIT_IsProfilingActiveFlags iJIT_IsProfilingActiveFlags
This is an optimization pass for GlobalISel generic memory operations.