LLVM API Documentation
#include "ittnotify_config.h"
#include <pthread.h>
#include <dlfcn.h>
#include <malloc.h>
#include <stdlib.h>
#include "jitprofiling.h"
Go to the source code of this file.
#define ANDROID_JIT_AGENT_PATH "/data/intel/libittnotify.so" |
Definition at line 54 of file jitprofiling.c.
Referenced by loadiJIT_Funcs().
#define DEFAULT_DLLNAME "libJitPI.so" |
Definition at line 49 of file jitprofiling.c.
Referenced by loadiJIT_Funcs().
#define DLL_ENVIRONMENT_VAR "VS_PROFILER" |
Definition at line 35 of file jitprofiling.c.
Referenced by loadiJIT_Funcs().
#define INIT_TOP_Stack 10000 |
Definition at line 92 of file jitprofiling.c.
Referenced by iJIT_NotifyEvent().
#define NEW_DLL_ENVIRONMENT_VAR "INTEL_JIT_PROFILER32" |
Definition at line 39 of file jitprofiling.c.
Referenced by loadiJIT_Funcs().
typedef struct ThreadStack * pThreadStack |
typedef unsigned int(* TPInitialize)(void) |
Definition at line 57 of file jitprofiling.c.
Definition at line 60 of file jitprofiling.c.
ITT_EXTERN_C void JITAPI FinalizeProcess | ( | void | ) |
Definition at line 448 of file jitprofiling.c.
References m_libHandle, and threadLocalStorageHandle.
ITT_EXTERN_C void JITAPI FinalizeThread | ( | void | ) |
Definition at line 420 of file jitprofiling.c.
References llvm::LibFunc::free, and threadLocalStorageHandle.
ITT_EXTERN_C unsigned int JITAPI iJIT_GetNewMethodID | ( | void | ) |
Definition at line 473 of file jitprofiling.c.
Definition at line 262 of file jitprofiling.c.
References executionMode, and loadiJIT_Funcs().
ITT_EXTERN_C int JITAPI iJIT_NotifyEvent | ( | iJIT_JVM_EVENT | event_type, |
void * | EventSpecificData | ||
) |
Definition at line 113 of file jitprofiling.c.
References llvm::LibFunc::calloc, ThreadStack::CurrentStack, executionMode, FUNC_NotifyEvent, iJIT_CALLGRAPH_ON, iJVM_EVENT_TYPE_ENTER_NIDS, iJVM_EVENT_TYPE_LEAVE_NIDS, iJVM_EVENT_TYPE_METHOD_LOAD_FINISHED, INIT_TOP_Stack, loadiJIT_Funcs(), threadLocalStorageHandle, and ThreadStack::TopStack.
ITT_EXTERN_C void JITAPI iJIT_RegisterCallbackEx | ( | void * | userdata, |
iJIT_ModeChangedEx | NewModeCallBackFuncEx | ||
) |
Definition at line 244 of file jitprofiling.c.
References iJIT_NO_NOTIFICATIONS, and loadiJIT_Funcs().
static int loadiJIT_Funcs | ( | void | ) | [static] |
Definition at line 277 of file jitprofiling.c.
References ANDROID_JIT_AGENT_PATH, DEFAULT_DLLNAME, DLL_ENVIRONMENT_VAR, executionMode, llvm::LibFunc::free, FUNC_Initialize, FUNC_NotifyEvent, llvm::LibFunc::getenv, iJIT_CALLGRAPH_ON, m_libHandle, llvm::LibFunc::malloc, NEW_DLL_ENVIRONMENT_VAR, rcsid, and threadLocalStorageHandle.
Referenced by iJIT_IsProfilingActive(), iJIT_NotifyEvent(), and iJIT_RegisterCallbackEx().
Definition at line 63 of file jitprofiling.c.
Referenced by iJIT_IsProfilingActive(), iJIT_NotifyEvent(), and loadiJIT_Funcs().
TPInitialize FUNC_Initialize = NULL [static] |
Definition at line 58 of file jitprofiling.c.
Referenced by loadiJIT_Funcs().
TPNotify FUNC_NotifyEvent = NULL [static] |
Definition at line 61 of file jitprofiling.c.
Referenced by iJIT_NotifyEvent(), and loadiJIT_Funcs().
int iJIT_DLL_is_missing = 0 [static] |
Definition at line 76 of file jitprofiling.c.
void* m_libHandle = NULL |
Definition at line 50 of file jitprofiling.c.
Referenced by FinalizeProcess(), and loadiJIT_Funcs().
Definition at line 33 of file jitprofiling.c.
Referenced by loadiJIT_Funcs().
pthread_key_t threadLocalStorageHandle = (pthread_key_t)0 [static] |
Definition at line 89 of file jitprofiling.c.
Referenced by FinalizeProcess(), FinalizeThread(), iJIT_NotifyEvent(), and loadiJIT_Funcs().