LLVM  3.7.0
Classes | Macros | Typedefs | Functions | Variables
jitprofiling.c File Reference
#include "ittnotify_config.h"
#include <windows.h>
#include <malloc.h>
#include <stdlib.h>
#include "jitprofiling.h"
Include dependency graph for jitprofiling.c:

Go to the source code of this file.

Classes

struct  ThreadStack
 

Macros

#define DLL_ENVIRONMENT_VAR   "VS_PROFILER"
 
#define NEW_DLL_ENVIRONMENT_VAR   "INTEL_JIT_PROFILER32"
 
#define DEFAULT_DLLNAME   "JitPI.dll"
 
#define ANDROID_JIT_AGENT_PATH   "/data/intel/libittnotify.so"
 
#define INIT_TOP_Stack   10000
 

Typedefs

typedef unsigned int(* TPInitialize )(void)
 
typedef unsigned int(* TPNotify )(unsigned int, void *)
 
typedef struct ThreadStackpThreadStack
 

Functions

static int loadiJIT_Funcs (void)
 
ITT_EXTERN_C int JITAPI iJIT_NotifyEvent (iJIT_JVM_EVENT event_type, void *EventSpecificData)
 
ITT_EXTERN_C void JITAPI iJIT_RegisterCallbackEx (void *userdata, iJIT_ModeChangedEx NewModeCallBackFuncEx)
 
ITT_EXTERN_C
iJIT_IsProfilingActiveFlags
JITAPI 
iJIT_IsProfilingActive ()
 
ITT_EXTERN_C void JITAPI FinalizeThread ()
 
ITT_EXTERN_C void JITAPI FinalizeProcess ()
 
ITT_EXTERN_C unsigned int JITAPI iJIT_GetNewMethodID ()
 

Variables

static const char rcsid [] = "\n@(#) $Revision: 243501 $\n"
 
HINSTANCE m_libHandle = NULL
 
static TPInitialize FUNC_Initialize =NULL
 
static TPNotify FUNC_NotifyEvent =NULL
 
static iJIT_IsProfilingActiveFlags executionMode = iJIT_NOTHING_RUNNING
 
static int iJIT_DLL_is_missing = 0
 
static DWORD threadLocalStorageHandle = 0
 

Macro Definition Documentation

#define ANDROID_JIT_AGENT_PATH   "/data/intel/libittnotify.so"

Definition at line 55 of file jitprofiling.c.

Referenced by loadiJIT_Funcs().

#define DEFAULT_DLLNAME   "JitPI.dll"

Definition at line 47 of file jitprofiling.c.

Referenced by loadiJIT_Funcs().

#define DLL_ENVIRONMENT_VAR   "VS_PROFILER"

Definition at line 36 of file jitprofiling.c.

Referenced by loadiJIT_Funcs().

#define INIT_TOP_Stack   10000

Definition at line 93 of file jitprofiling.c.

Referenced by iJIT_NotifyEvent().

#define NEW_DLL_ENVIRONMENT_VAR   "INTEL_JIT_PROFILER32"

Definition at line 40 of file jitprofiling.c.

Referenced by loadiJIT_Funcs().

Typedef Documentation

typedef struct ThreadStack * pThreadStack
typedef unsigned int(* TPInitialize)(void)

Definition at line 58 of file jitprofiling.c.

typedef unsigned int(* TPNotify)(unsigned int, void *)

Definition at line 61 of file jitprofiling.c.

Function Documentation

ITT_EXTERN_C void JITAPI FinalizeProcess ( void  )

Definition at line 449 of file jitprofiling.c.

References m_libHandle, and threadLocalStorageHandle.

ITT_EXTERN_C void JITAPI FinalizeThread ( void  )

Definition at line 421 of file jitprofiling.c.

References threadLocalStorageHandle.

ITT_EXTERN_C unsigned int JITAPI iJIT_GetNewMethodID ( void  )

Definition at line 474 of file jitprofiling.c.

ITT_EXTERN_C iJIT_IsProfilingActiveFlags JITAPI iJIT_IsProfilingActive ( void  )

Definition at line 263 of file jitprofiling.c.

References executionMode, and loadiJIT_Funcs().

ITT_EXTERN_C int JITAPI iJIT_NotifyEvent ( iJIT_JVM_EVENT  event_type,
void *  EventSpecificData 
)
ITT_EXTERN_C void JITAPI iJIT_RegisterCallbackEx ( void *  userdata,
iJIT_ModeChangedEx  NewModeCallBackFuncEx 
)

Definition at line 245 of file jitprofiling.c.

References iJIT_NO_NOTIFICATIONS, and loadiJIT_Funcs().

static int loadiJIT_Funcs ( void  )
static

Variable Documentation

Definition at line 64 of file jitprofiling.c.

Referenced by iJIT_IsProfilingActive(), iJIT_NotifyEvent(), and loadiJIT_Funcs().

TPInitialize FUNC_Initialize =NULL
static

Definition at line 59 of file jitprofiling.c.

Referenced by loadiJIT_Funcs().

TPNotify FUNC_NotifyEvent =NULL
static

Definition at line 62 of file jitprofiling.c.

Referenced by iJIT_NotifyEvent(), and loadiJIT_Funcs().

int iJIT_DLL_is_missing = 0
static

Definition at line 77 of file jitprofiling.c.

HINSTANCE m_libHandle = NULL

Definition at line 48 of file jitprofiling.c.

Referenced by FinalizeProcess(), and loadiJIT_Funcs().

const char rcsid[] = "\n@(#) $Revision: 243501 $\n"
static

Definition at line 34 of file jitprofiling.c.

Referenced by loadiJIT_Funcs().

DWORD threadLocalStorageHandle = 0
static

Definition at line 88 of file jitprofiling.c.

Referenced by FinalizeProcess(), FinalizeThread(), iJIT_NotifyEvent(), and loadiJIT_Funcs().