Lines Matching refs:jvmti
27 #define CHECK_JVMTI_ERROR(jvmti, errnum) \ argument
28 CHECK_EQ(JVMTI_ERROR_NONE, (errnum)) << GetJvmtiErrorString((jvmti), (errnum)) << (" ")
32 static const char* GetJvmtiErrorString(jvmtiEnv* jvmti, jvmtiError errnum) { in GetJvmtiErrorString() argument
34 jvmti->GetErrorName(errnum, /*out*/ &errnum_str); in GetJvmtiErrorString()
100 static void Initialize(jvmtiEnv* jvmti) { in Initialize()
107 error = jvmti->GetSystemProperty("java.vm.name", /*out*/ &value_ptr); in Initialize()
108 CHECK_JVMTI_ERROR(jvmti, error) << "Failed to get property 'java.vm.name'"; in Initialize()
242 jvmtiEnv* jvmti = nullptr; in Agent_OnLoad() local
247 res = jvm->GetEnv(reinterpret_cast<void**>(&jvmti), JVMTI_VERSION_1_1); in Agent_OnLoad()
249 if (res != JNI_OK || jvmti == nullptr) { in Agent_OnLoad()
250 res = jvm->GetEnv(reinterpret_cast<void**>(&jvmti), kArtTiVersion); in Agent_OnLoad()
252 if (res != JNI_OK || jvmti == nullptr) { in Agent_OnLoad()
261 TraceStatistics::Initialize(jvmti); in Agent_OnLoad()
272 error = jvmti->AddCapabilities(&caps); in Agent_OnLoad()
273 CHECK_JVMTI_ERROR(jvmti, error) in Agent_OnLoad()
283 error = jvmti->SetEventCallbacks(&callbacks, in Agent_OnLoad()
285 CHECK_JVMTI_ERROR(jvmti, error) << "Unable to set event callbacks"; in Agent_OnLoad()
290 error = jvmti->SetEventNotificationMode(JVMTI_ENABLE, in Agent_OnLoad()
293 CHECK_JVMTI_ERROR(jvmti, error) in Agent_OnLoad()
296 error = jvmti->SetEventNotificationMode(JVMTI_ENABLE, in Agent_OnLoad()
299 CHECK_JVMTI_ERROR(jvmti, error) in Agent_OnLoad()