/art/libnativebridge/ |
D | native_bridge.cc | 145 static const NativeBridgeCallbacks* callbacks = nullptr; variable 213 if (callbacks == nullptr || callbacks->version == 0 || version == 0) { in isCompatibleWith() 218 if (callbacks->version >= SIGNAL_VERSION) { in isCompatibleWith() 219 return callbacks->isCompatibleWith(version); in isCompatibleWith() 261 callbacks = reinterpret_cast<NativeBridgeCallbacks*>(dlsym(handle, in LoadNativeBridge() 263 if (callbacks != nullptr) { in LoadNativeBridge() 269 nb_library_filename, callbacks->version, NAMESPACE_VERSION); in LoadNativeBridge() 270 callbacks = nullptr; in LoadNativeBridge() 284 if (callbacks == nullptr) { in LoadNativeBridge() 391 return callbacks->preZygoteFork(); in PreZygoteForkNativeBridge() [all …]
|
/art/test/933-misc-events/ |
D | misc_events.cc | 43 jvmtiEventCallbacks callbacks; in Java_art_Test933_testSigQuit() local 44 memset(&callbacks, 0, sizeof(jvmtiEventCallbacks)); in Java_art_Test933_testSigQuit() 45 callbacks.DataDumpRequest = DumpRequestCallback; in Java_art_Test933_testSigQuit() 46 jvmtiError ret = jvmti_env->SetEventCallbacks(&callbacks, sizeof(callbacks)); in Java_art_Test933_testSigQuit()
|
/art/libelffile/elf/ |
D | xz_utils.cc | 81 XzCallbacks callbacks; in XzCompress() local 82 callbacks.Read = XzCallbacks::ReadImpl; in XzCompress() 83 callbacks.Write = XzCallbacks::WriteImpl; in XzCompress() 84 callbacks.Progress = XzCallbacks::ProgressImpl; in XzCompress() 85 callbacks.src_pos_ = 0; in XzCompress() 86 callbacks.src_ = src; in XzCompress() 87 callbacks.dst_ = dst; in XzCompress() 89 SRes res = Xz_Encode(&callbacks, &callbacks, &props, &callbacks); in XzCompress()
|
/art/test/908-gc-start-finish/ |
D | gc_callbacks.cc | 45 jvmtiEventCallbacks callbacks; in Java_art_Test908_setupGcCallback() local 46 memset(&callbacks, 0, sizeof(jvmtiEventCallbacks)); in Java_art_Test908_setupGcCallback() 47 callbacks.GarbageCollectionFinish = GarbageCollectionFinish; in Java_art_Test908_setupGcCallback() 48 callbacks.GarbageCollectionStart = GarbageCollectionStart; in Java_art_Test908_setupGcCallback() 50 jvmtiError ret = jvmti_env->SetEventCallbacks(&callbacks, sizeof(callbacks)); in Java_art_Test908_setupGcCallback()
|
/art/test/906-iterate-heap/ |
D | iterate_heap.cc | 60 jvmtiHeapCallbacks callbacks; in Run() local 61 memset(&callbacks, 0, sizeof(jvmtiHeapCallbacks)); in Run() 62 callbacks.heap_iteration_callback = HeapIterationCallback; in Run() 66 &callbacks, in Run() 223 jvmtiHeapCallbacks callbacks; in Java_art_Test906_iterateThroughHeapString() local 224 memset(&callbacks, 0, sizeof(jvmtiHeapCallbacks)); in Java_art_Test906_iterateThroughHeapString() 225 callbacks.heap_iteration_callback = FindStringCallbacks::HeapIterationCallback; in Java_art_Test906_iterateThroughHeapString() 226 callbacks.string_primitive_value_callback = FindStringCallbacks::StringValueCallback; in Java_art_Test906_iterateThroughHeapString() 229 jvmtiError ret = jvmti_env->IterateThroughHeap(0, nullptr, &callbacks, &fsc); in Java_art_Test906_iterateThroughHeapString() 308 jvmtiHeapCallbacks callbacks; in Java_art_Test906_iterateThroughHeapPrimitiveArray() local [all …]
|
/art/benchmark/golem-tiagent/ |
D | golem-tiagent.cc | 76 jvmtiEventCallbacks callbacks; in Agent_OnLoad() local 77 memset(&callbacks, 0, sizeof(jvmtiEventCallbacks)); in Agent_OnLoad() 78 callbacks.VMInit = VMInitCallback; in Agent_OnLoad() 79 CheckJvmtiError(jvmti_env, jvmti_env->SetEventCallbacks(&callbacks, sizeof(callbacks))); in Agent_OnLoad()
|
/art/runtime/verifier/ |
D | class_verifier.cc | 57 CompilerCallbacks* callbacks, in UpdateMethodFlags() argument 60 if (callbacks != nullptr && !CanCompilerHandleVerificationFailure(error_types)) { in UpdateMethodFlags() 62 callbacks->AddUncompilableMethod(ref); in UpdateMethodFlags() 91 CompilerCallbacks* callbacks, in VerifyClass() argument 154 UpdateMethodFlags(method.GetIndex(), klass, dex_cache, callbacks, result.types); in VerifyClass() 183 if (failure_data.kind == verifier::FailureKind::kHardFailure && callbacks != nullptr) { in VerifyClass() 185 callbacks->ClassRejected(ref); in VerifyClass()
|
D | class_verifier.h | 66 CompilerCallbacks* callbacks,
|
/art/test/2243-single-step-default/ |
D | single_step_helper.cc | 93 jvmtiEventCallbacks callbacks; in Java_art_Test2243_setSingleStepCallback() local 94 memset(&callbacks, 0, sizeof(jvmtiEventCallbacks)); in Java_art_Test2243_setSingleStepCallback() 95 callbacks.SingleStep = singleStepCB; in Java_art_Test2243_setSingleStepCallback() 97 jvmtiError ret = jvmti_env->SetEventCallbacks(&callbacks, sizeof(callbacks)); in Java_art_Test2243_setSingleStepCallback()
|
/art/test/913-heaps/ |
D | heaps.cc | 128 jvmtiHeapCallbacks callbacks; in Run() local 129 memset(&callbacks, 0, sizeof(jvmtiHeapCallbacks)); in Run() 130 callbacks.heap_reference_callback = HeapReferenceCallback; in Run() 135 &callbacks, in Run() 614 jvmtiHeapCallbacks callbacks; in Java_art_Test913_followReferencesString() local 615 memset(&callbacks, 0, sizeof(jvmtiHeapCallbacks)); in Java_art_Test913_followReferencesString() 616 callbacks.heap_reference_callback = FindStringCallbacks::FollowReferencesCallback; in Java_art_Test913_followReferencesString() 617 callbacks.string_primitive_value_callback = FindStringCallbacks::StringValueCallback; in Java_art_Test913_followReferencesString() 620 jvmtiError ret = jvmti_env->FollowReferences(0, nullptr, initial_object, &callbacks, &fsc); in Java_art_Test913_followReferencesString() 712 jvmtiHeapCallbacks callbacks; in Java_art_Test913_followReferencesPrimitiveArray() local [all …]
|
/art/test/912-classes/ |
D | classes_art.cc | 56 jvmtiEventCallbacks callbacks; variable 57 memset(&callbacks, 0, sizeof(jvmtiEventCallbacks)); 58 callbacks.ClassLoad = class_load; 59 callbacks.ClassPrepare = class_prepare; 60 jvmtiError ret = jvmti_env->SetEventCallbacks(&callbacks, sizeof(callbacks));
|
D | classes.cc | 258 jvmtiEventCallbacks callbacks; variable 259 memset(&callbacks, 0, sizeof(jvmtiEventCallbacks)); 260 callbacks.ClassLoad = class_load; 261 callbacks.ClassPrepare = class_prepare; 262 jvmtiError ret = jvmti_env->SetEventCallbacks(&callbacks, sizeof(callbacks));
|
/art/test/901-hello-ti-agent/ |
D | basics.cc | 70 jvmtiEventCallbacks callbacks; in InstallVMEvents() local 71 memset(&callbacks, 0, sizeof(jvmtiEventCallbacks)); in InstallVMEvents() 72 callbacks.VMStart = VMStartCallback; in InstallVMEvents() 73 callbacks.VMInit = VMInitCallback; in InstallVMEvents() 74 callbacks.VMDeath = VMDeathCallback; in InstallVMEvents() 75 jvmtiError ret = env->SetEventCallbacks(&callbacks, sizeof(callbacks)); in InstallVMEvents()
|
/art/test/905-object-free/ |
D | tracking_free.cc | 59 jvmtiEventCallbacks callbacks; in setupObjectFreeCallback() local 60 memset(&callbacks, 0, sizeof(jvmtiEventCallbacks)); in setupObjectFreeCallback() 61 callbacks.ObjectFree = callback; in setupObjectFreeCallback() 62 jvmtiError ret = jenv->SetEventCallbacks(&callbacks, sizeof(callbacks)); in setupObjectFreeCallback()
|
/art/test/1919-vminit-thread-start-timing/ |
D | vminit.cc | 121 jvmtiEventCallbacks callbacks; in InstallVMEvents() local 122 memset(&callbacks, 0, sizeof(jvmtiEventCallbacks)); in InstallVMEvents() 123 callbacks.VMInit = VMInitCallback; in InstallVMEvents() 124 callbacks.ThreadStart = ThreadStartCallback; in InstallVMEvents() 125 jvmtiError ret = env->SetEventCallbacks(&callbacks, sizeof(callbacks)); in InstallVMEvents()
|
/art/test/904-object-allocation/ |
D | tracking.cc | 104 jvmtiEventCallbacks callbacks; in Java_art_Test904_setupObjectAllocCallback() local 105 memset(&callbacks, 0, sizeof(jvmtiEventCallbacks)); in Java_art_Test904_setupObjectAllocCallback() 106 callbacks.VMObjectAlloc = enable ? ObjectAllocated : nullptr; in Java_art_Test904_setupObjectAllocCallback() 108 jvmtiError ret = jvmti_env->SetEventCallbacks(&callbacks, sizeof(callbacks)); in Java_art_Test904_setupObjectAllocCallback()
|
/art/openjdkjvmti/ |
D | ti_heap.h | 56 const jvmtiHeapCallbacks* callbacks, 63 const jvmtiHeapCallbacks* callbacks, 89 const jvmtiHeapCallbacks* callbacks,
|
D | ti_breakpoint.cc | 107 art::RuntimeCallbacks* callbacks = art::Runtime::Current()->GetRuntimeCallbacks(); in Register() local 108 callbacks->AddReflectiveValueVisitCallback(&gReflectiveValueCallback); in Register() 115 art::RuntimeCallbacks* callbacks = art::Runtime::Current()->GetRuntimeCallbacks(); in Unregister() local 116 callbacks->RemoveReflectiveValueVisitCallback(&gReflectiveValueCallback); in Unregister()
|
D | ti_field.cc | 116 art::RuntimeCallbacks* callbacks = art::Runtime::Current()->GetRuntimeCallbacks(); in Register() local 117 callbacks->AddReflectiveValueVisitCallback(&gReflectiveValueCallback); in Register() 124 art::RuntimeCallbacks* callbacks = art::Runtime::Current()->GetRuntimeCallbacks(); in Unregister() local 125 callbacks->RemoveReflectiveValueVisitCallback(&gReflectiveValueCallback); in Unregister()
|
/art/dex2oat/ |
D | common_compiler_driver_test.cc | 100 QuickCompilerCallbacks* callbacks = in SetUpRuntimeOptions() local 102 callbacks->SetVerificationResults(verification_results_.get()); in SetUpRuntimeOptions() 103 callbacks_.reset(callbacks); in SetUpRuntimeOptions()
|
/art/test/924-threads/ |
D | threads.cc | 241 jvmtiEventCallbacks callbacks; in Java_art_Test924_enableThreadEvents() local 242 memset(&callbacks, 0, sizeof(jvmtiEventCallbacks)); in Java_art_Test924_enableThreadEvents() 243 callbacks.ThreadStart = ThreadStart; in Java_art_Test924_enableThreadEvents() 244 callbacks.ThreadEnd = ThreadEnd; in Java_art_Test924_enableThreadEvents() 245 jvmtiError ret = jvmti_env->SetEventCallbacks(&callbacks, sizeof(callbacks)); in Java_art_Test924_enableThreadEvents()
|
/art/tools/jvmti-agents/titrace/ |
D | titrace.cc | 279 jvmtiEventCallbacks callbacks = {}; in Agent_OnLoad() local 280 callbacks.SingleStep = &EventCallbacks::SingleStep; in Agent_OnLoad() 281 callbacks.DataDumpRequest = &EventCallbacks::DataDumpRequest; in Agent_OnLoad() 283 error = jvmti->SetEventCallbacks(&callbacks, in Agent_OnLoad() 284 static_cast<jint>(sizeof(callbacks))); in Agent_OnLoad()
|
/art/tools/jvmti-agents/simple-profile/ |
D | simple_profile.cc | 474 jvmtiEventCallbacks callbacks {}; in AgentStart() local 475 callbacks.MethodEntry = &MethodEntryCB; in AgentStart() 476 callbacks.VMInit = &VMInitCB; in AgentStart() 477 callbacks.DataDumpRequest = &DataDumpCb; in AgentStart() 478 callbacks.VMDeath = &VMDeathCB; in AgentStart() 479 callbacks.ThreadEnd = [](jvmtiEnv* env, JNIEnv* jni, [[maybe_unused]] jthread thr) { in AgentStart() 483 error = jvmti->SetEventCallbacks(&callbacks, static_cast<jint>(sizeof(callbacks))); in AgentStart()
|
/art/test/1940-ddms-ext/ |
D | ddm_ext.cc | 132 std::vector<DdmCallbackData> callbacks; in Java_art_Test1940_publishListen() local 144 callbacks.emplace_back(std::move(data->callbacks_received.front())); in Java_art_Test1940_publishListen() 150 for (auto cb : callbacks) { in Java_art_Test1940_publishListen() 155 callbacks.clear(); in Java_art_Test1940_publishListen()
|
/art/tools/jvmti-agents/breakpoint-logger/ |
D | breakpoint_logger.cc | 397 jvmtiEventCallbacks callbacks{}; in AgentStart() local 398 callbacks.Breakpoint = &BreakpointCB; in AgentStart() 399 callbacks.VMInit = &VMInitCB; in AgentStart() 401 error = jvmti->SetEventCallbacks(&callbacks, static_cast<jint>(sizeof(callbacks))); in AgentStart()
|