20#if ITT_PLATFORM==ITT_PLATFORM_WIN
22#pragma optimize("", off)
32static const char rcsid[] =
"\n@(#) $Revision: 243501 $\n";
34#define DLL_ENVIRONMENT_VAR "VS_PROFILER"
36#ifndef NEW_DLL_ENVIRONMENT_VAR
37#if ITT_ARCH==ITT_ARCH_IA32
38#define NEW_DLL_ENVIRONMENT_VAR "INTEL_JIT_PROFILER32"
40#define NEW_DLL_ENVIRONMENT_VAR "INTEL_JIT_PROFILER64"
44#if ITT_PLATFORM==ITT_PLATFORM_WIN
45#define DEFAULT_DLLNAME "JitPI.dll"
48#define DEFAULT_DLLNAME "libJitPI.so"
53#define ANDROID_JIT_AGENT_PATH "/data/intel/libittnotify.so"
59typedef unsigned int(*
TPNotify)(
unsigned int,
void*);
85#if ITT_PLATFORM==ITT_PLATFORM_WIN
91#define INIT_TOP_Stack 10000
164#if ITT_PLATFORM==ITT_PLATFORM_WIN
182#if ITT_PLATFORM==ITT_PLATFORM_WIN
202#if ITT_PLATFORM==ITT_PLATFORM_WIN
244 NewModeCallBackFuncEx)
278 static int bDllWasLoaded = 0;
279 char *dllName = (
char*)
rcsid;
280#if ITT_PLATFORM==ITT_PLATFORM_WIN
281 DWORD dNameLength = 0;
296#if ITT_PLATFORM==ITT_PLATFORM_WIN
305#if ITT_PLATFORM==ITT_PLATFORM_WIN
310 dllName = (
char*)malloc(
sizeof(
char) * (dNameLength + 1));
312 dllName, dNameLength);
317 NULL, LOAD_WITH_ALTERED_SEARCH_PATH);
326 dllName = (
char*)malloc(
sizeof(
char) * (dNameLength + 1));
328 dllName, dNameLength);
354#if ITT_PLATFORM==ITT_PLATFORM_WIN
370#if ITT_PLATFORM==ITT_PLATFORM_WIN
381#if ITT_PLATFORM==ITT_PLATFORM_WIN
405#if ITT_PLATFORM==ITT_PLATFORM_WIN
423#if ITT_PLATFORM==ITT_PLATFORM_WIN
434#if ITT_PLATFORM==ITT_PLATFORM_WIN
451#if ITT_PLATFORM==ITT_PLATFORM_WIN
460#if ITT_PLATFORM==ITT_PLATFORM_WIN
474 static unsigned int methodID = 0x100000;
#define ANDROID_JIT_AGENT_PATH
unsigned int(* TPNotify)(unsigned int, void *)
ITT_EXTERN_C unsigned int JITAPI iJIT_GetNewMethodID(void)
ITT_EXTERN_C void JITAPI iJIT_RegisterCallbackEx(void *userdata, iJIT_ModeChangedEx NewModeCallBackFuncEx)
ITT_EXTERN_C void JITAPI FinalizeThread(void)
struct ThreadStack * pThreadStack
static DWORD threadLocalStorageHandle
ITT_EXTERN_C iJIT_IsProfilingActiveFlags JITAPI iJIT_IsProfilingActive(void)
static TPInitialize FUNC_Initialize
static const char rcsid[]
static int iJIT_DLL_is_missing
static TPNotify FUNC_NotifyEvent
ITT_EXTERN_C int JITAPI iJIT_NotifyEvent(iJIT_JVM_EVENT event_type, void *EventSpecificData)
static int loadiJIT_Funcs(void)
unsigned int(* TPInitialize)(void)
#define NEW_DLL_ENVIRONMENT_VAR
static iJIT_IsProfilingActiveFlags executionMode
#define DLL_ENVIRONMENT_VAR
ITT_EXTERN_C void JITAPI FinalizeProcess(void)
@ iJVM_EVENT_TYPE_ENTER_NIDS
@ iJVM_EVENT_TYPE_LEAVE_NIDS
@ iJVM_EVENT_TYPE_METHOD_LOAD_FINISHED
void(* iJIT_ModeChangedEx)(void *UserData, iJIT_ModeFlags Flags)
enum iJIT_jvm_event iJIT_JVM_EVENT
enum _iJIT_IsProfilingActiveFlags iJIT_IsProfilingActiveFlags
struct _iJIT_Method_NIDS * piJIT_Method_NIDS
unsigned int CurrentStack