21 #if ITT_PLATFORM==ITT_PLATFORM_WIN 23 #pragma optimize("", off) 33 static const char rcsid[] =
"\n@(#) $Revision: 243501 $\n";
35 #define DLL_ENVIRONMENT_VAR "VS_PROFILER" 37 #ifndef NEW_DLL_ENVIRONMENT_VAR 38 #if ITT_ARCH==ITT_ARCH_IA32 39 #define NEW_DLL_ENVIRONMENT_VAR "INTEL_JIT_PROFILER32" 41 #define NEW_DLL_ENVIRONMENT_VAR "INTEL_JIT_PROFILER64" 45 #if ITT_PLATFORM==ITT_PLATFORM_WIN 46 #define DEFAULT_DLLNAME "JitPI.dll" 49 #define DEFAULT_DLLNAME "libJitPI.so" 54 #define ANDROID_JIT_AGENT_PATH "/data/intel/libittnotify.so" 60 typedef unsigned int(*
TPNotify)(
unsigned int,
void*);
86 #if ITT_PLATFORM==ITT_PLATFORM_WIN 92 #define INIT_TOP_Stack 10000 165 #if ITT_PLATFORM==ITT_PLATFORM_WIN 166 pThreadStack threadStack =
169 pThreadStack threadStack =
183 #if ITT_PLATFORM==ITT_PLATFORM_WIN 203 #if ITT_PLATFORM==ITT_PLATFORM_WIN 204 pThreadStack threadStack =
207 pThreadStack threadStack =
245 NewModeCallBackFuncEx)
279 static int bDllWasLoaded = 0;
280 char *dllName = (
char*)rcsid;
281 #if ITT_PLATFORM==ITT_PLATFORM_WIN 282 DWORD dNameLength = 0;
297 #if ITT_PLATFORM==ITT_PLATFORM_WIN 306 #if ITT_PLATFORM==ITT_PLATFORM_WIN 311 dllName = (
char*)malloc(
sizeof(
char) * (dNameLength + 1));
313 dllName, dNameLength);
318 NULL, LOAD_WITH_ALTERED_SEARCH_PATH);
327 dllName = (
char*)malloc(
sizeof(
char) * (dNameLength + 1));
329 dllName, dNameLength);
355 #if ITT_PLATFORM==ITT_PLATFORM_WIN 371 #if ITT_PLATFORM==ITT_PLATFORM_WIN 382 #if ITT_PLATFORM==ITT_PLATFORM_WIN 406 #if ITT_PLATFORM==ITT_PLATFORM_WIN 424 #if ITT_PLATFORM==ITT_PLATFORM_WIN 425 pThreadStack threadStack =
428 pThreadStack threadStack =
435 #if ITT_PLATFORM==ITT_PLATFORM_WIN 452 #if ITT_PLATFORM==ITT_PLATFORM_WIN 461 #if ITT_PLATFORM==ITT_PLATFORM_WIN 475 static unsigned int methodID = 0x100000;
static TPInitialize FUNC_Initialize
#define NEW_DLL_ENVIRONMENT_VAR
#define ANDROID_JIT_AGENT_PATH
static int iJIT_DLL_is_missing
ITT_EXTERN_C iJIT_IsProfilingActiveFlags JITAPI iJIT_IsProfilingActive()
enum iJIT_jvm_event iJIT_JVM_EVENT
static DWORD threadLocalStorageHandle
ITT_EXTERN_C void JITAPI FinalizeThread()
void(* iJIT_ModeChangedEx)(void *UserData, iJIT_ModeFlags Flags)
#define DLL_ENVIRONMENT_VAR
ITT_EXTERN_C void JITAPI iJIT_RegisterCallbackEx(void *userdata, iJIT_ModeChangedEx NewModeCallBackFuncEx)
unsigned int(* TPInitialize)(void)
unsigned int CurrentStack
static const char rcsid[]
static iJIT_IsProfilingActiveFlags executionMode
ITT_EXTERN_C int JITAPI iJIT_NotifyEvent(iJIT_JVM_EVENT event_type, void *EventSpecificData)
static TPNotify FUNC_NotifyEvent
static int loadiJIT_Funcs(void)
ITT_EXTERN_C void JITAPI FinalizeProcess()
struct ThreadStack * pThreadStack
struct _iJIT_Method_NIDS * piJIT_Method_NIDS
unsigned int(* TPNotify)(unsigned int, void *)
enum _iJIT_IsProfilingActiveFlags iJIT_IsProfilingActiveFlags
ITT_EXTERN_C unsigned int JITAPI iJIT_GetNewMethodID()