/art/runtime/ |
D | runtime_callbacks.cc | 44 static inline void Remove(T* cb, std::vector<T*>* data) { in Remove() argument 45 auto it = std::find(data->begin(), data->end(), cb); in Remove() 51 void RuntimeCallbacks::AddDdmCallback(DdmCallback* cb) { in AddDdmCallback() argument 53 ddm_callbacks_.push_back(cb); in AddDdmCallback() 56 void RuntimeCallbacks::RemoveDdmCallback(DdmCallback* cb) { in RemoveDdmCallback() argument 58 Remove(cb, &ddm_callbacks_); in RemoveDdmCallback() 62 for (DdmCallback* cb : COPY(ddm_callbacks_)) { in DdmPublishChunk() 63 cb->DdmPublishChunk(type, data); in DdmPublishChunk() 67 void RuntimeCallbacks::AddDebuggerControlCallback(DebuggerControlCallback* cb) { in AddDebuggerControlCallback() argument 69 debugger_control_callbacks_.push_back(cb); in AddDebuggerControlCallback() [all …]
|
D | runtime_callbacks.h | 175 void AddThreadLifecycleCallback(ThreadLifecycleCallback* cb) REQUIRES(Locks::mutator_lock_); 176 void RemoveThreadLifecycleCallback(ThreadLifecycleCallback* cb) REQUIRES(Locks::mutator_lock_); 181 void AddClassLoadCallback(ClassLoadCallback* cb) REQUIRES(Locks::mutator_lock_); 182 void RemoveClassLoadCallback(ClassLoadCallback* cb) REQUIRES(Locks::mutator_lock_); 190 void AddRuntimeSigQuitCallback(RuntimeSigQuitCallback* cb) 192 void RemoveRuntimeSigQuitCallback(RuntimeSigQuitCallback* cb) 197 void AddRuntimePhaseCallback(RuntimePhaseCallback* cb) 199 void RemoveRuntimePhaseCallback(RuntimePhaseCallback* cb) 214 void AddMethodCallback(MethodCallback* cb) REQUIRES(Locks::mutator_lock_); 215 void RemoveMethodCallback(MethodCallback* cb) REQUIRES(Locks::mutator_lock_); [all …]
|
D | thread_list.h | 142 void ForEach(CallBack cb) REQUIRES(Locks::thread_list_lock_) { in ForEach() argument 145 }, &cb); in ForEach()
|
D | debugger.cc | 310 RuntimeCallbacks* cb = Runtime::Current()->GetRuntimeCallbacks(); in DdmSendThreadNotification() local 314 cb->DdmPublishChunk(CHUNK_TYPE("THDE"), ArrayRef<const uint8_t>(buf)); in DdmSendThreadNotification() 332 cb->DdmPublishChunk(type, ArrayRef<const uint8_t>(bytes)); in DdmSendThreadNotification() 714 RuntimeCallbacks* cb = Runtime::Current()->GetRuntimeCallbacks(); in DdmSendHeapSegments() local 722 cb->DdmPublishChunk(native ? CHUNK_TYPE("NHST") : CHUNK_TYPE("HPST"), in DdmSendHeapSegments() 782 cb->DdmPublishChunk(native ? CHUNK_TYPE("NHEN") : CHUNK_TYPE("HPEN"), in DdmSendHeapSegments()
|
/art/test/983-source-transform-verify/ |
D | source_transform.cc | 69 jvmtiEventCallbacks cb; in Java_art_Test983_setupLoadHook() local 70 memset(&cb, 0, sizeof(cb)); in Java_art_Test983_setupLoadHook() 71 cb.ClassFileLoadHook = CheckDexFileHook; in Java_art_Test983_setupLoadHook() 72 JvmtiErrorToException(env, jvmti_env, jvmti_env->SetEventCallbacks(&cb, sizeof(cb))); in Java_art_Test983_setupLoadHook()
|
/art/test/986-native-method-bind/ |
D | native_bind.cc | 99 jvmtiEventCallbacks cb; in Java_art_Test986_setupNativeBindNotify() local 100 memset(&cb, 0, sizeof(cb)); in Java_art_Test986_setupNativeBindNotify() 101 cb.NativeMethodBind = doJvmtiMethodBind; in Java_art_Test986_setupNativeBindNotify() 102 jvmti_env->SetEventCallbacks(&cb, sizeof(cb)); in Java_art_Test986_setupNativeBindNotify()
|
/art/test/1962-multi-thread-events/ |
D | multi_thread_events.cc | 66 jvmtiEventCallbacks cb{ in Java_art_Test1962_setupTest() local 69 JvmtiErrorToException(env, jvmti_env, jvmti_env->SetEventCallbacks(&cb, sizeof(cb))); in Java_art_Test1962_setupTest()
|
/art/test/1959-redefine-object-instrument/ |
D | fake_redef_object.cc | 107 jvmtiEventCallbacks cb {.ClassFileLoadHook = RedefineObjectHook }; in Java_Main_forceRedefine() local 108 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->SetEventCallbacks(&cb, sizeof(cb)))) { in Java_Main_forceRedefine()
|
/art/test/980-redefine-object/ |
D | redef_object.cc | 116 jvmtiEventCallbacks cb {.ClassFileLoadHook = RedefineObjectHook }; in Java_Main_addMemoryTrackingCall() local 117 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->SetEventCallbacks(&cb, sizeof(cb)))) { in Java_Main_addMemoryTrackingCall()
|
/art/tools/jvmti-agents/dump-jvmti-state/ |
D | dump-jvmti.cc | 97 jvmtiEventCallbacks cb{ in AgentStart() local 100 jvmti->SetEventCallbacks(&cb, sizeof(cb)); in AgentStart()
|
/art/test/ti-agent/ |
D | suspend_event_helper.cc | 304 jvmtiEventCallbacks cb; in Java_art_SuspendEvents_setupTest() local 305 memset(&cb, 0, sizeof(cb)); in Java_art_SuspendEvents_setupTest() 307 cb.Breakpoint = cbBreakpointHit; in Java_art_SuspendEvents_setupTest() 308 cb.SingleStep = cbSingleStep; in Java_art_SuspendEvents_setupTest() 309 cb.FieldAccess = cbFieldAccess; in Java_art_SuspendEvents_setupTest() 310 cb.FieldModification = cbFieldModification; in Java_art_SuspendEvents_setupTest() 311 cb.MethodEntry = cbMethodEntry; in Java_art_SuspendEvents_setupTest() 312 cb.MethodExit = cbMethodExit; in Java_art_SuspendEvents_setupTest() 313 cb.Exception = cbException; in Java_art_SuspendEvents_setupTest() 314 cb.ExceptionCatch = cbExceptionCatch; in Java_art_SuspendEvents_setupTest() [all …]
|
/art/tools/jvmti-agents/jit-load/ |
D | jitload.cc | 100 jvmtiEventCallbacks cb { in SetupJvmti() local 112 CHECK_CALL_SUCCESS(jvmti->SetEventCallbacks(&cb, sizeof(cb))); in SetupJvmti()
|
/art/test/ti-stress/ |
D | stress.cc | 825 jvmtiEventCallbacks cb; in Agent_OnLoad() local 826 memset(&cb, 0, sizeof(cb)); in Agent_OnLoad() 827 cb.ClassFileLoadHook = ClassFileLoadHookSecretNoOp; in Agent_OnLoad() 828 cb.NativeMethodBind = doJvmtiMethodBind; in Agent_OnLoad() 829 cb.VMInit = PerformFinalSetupVMInit; in Agent_OnLoad() 830 cb.MethodEntry = MethodEntryHook; in Agent_OnLoad() 831 cb.MethodExit = MethodExitHook; in Agent_OnLoad() 832 cb.FieldAccess = FieldAccessHook; in Agent_OnLoad() 833 cb.FieldModification = FieldModificationHook; in Agent_OnLoad() 834 cb.ClassPrepare = ClassPrepareHook; in Agent_OnLoad() [all …]
|
/art/test/1940-ddms-ext/ |
D | ddm_ext.cc | 150 for (auto cb : callbacks) { in Java_art_Test1940_publishListen() local 151 ScopedLocalRef<jbyteArray> res(env, env->NewByteArray(cb.data_.size())); in Java_art_Test1940_publishListen() 152 env->SetByteArrayRegion(res.get(), 0, cb.data_.size(), cb.data_.data()); in Java_art_Test1940_publishListen() 153 env->CallStaticVoidMethod(test_klass, publish_method, cb.type_, res.get()); in Java_art_Test1940_publishListen()
|
/art/openjdkjvmti/ |
D | alloc_manager.cc | 89 auto cb = manager_->callback_; in ObjectAllocated() local 90 if (cb != nullptr && manager_->callback_enabled_.load(std::memory_order_seq_cst)) { in ObjectAllocated() 91 cb->ObjectAllocated(self, obj, cnt); in ObjectAllocated()
|
D | ti_heap.h | 50 jvmtiHeapObjectCallback cb,
|
D | ti_heap.cc | 96 const jvmtiHeapCallbacks* cb, in ReportString() argument 98 if (UNLIKELY(cb->string_primitive_value_callback != nullptr) && obj->IsString()) { in ReportString() 129 jint result = cb->string_primitive_value_callback(class_tag, in ReportString() 148 const jvmtiHeapCallbacks* cb, in ReportPrimitiveArray() argument 150 if (UNLIKELY(cb->array_primitive_value_callback != nullptr) && in ReportPrimitiveArray() 174 result = cb->array_primitive_value_callback(class_tag, in ReportPrimitiveArray() 195 result = cb->array_primitive_value_callback(class_tag, in ReportPrimitiveArray() 519 const jvmtiHeapCallbacks* cb, in Report() argument 522 if (UNLIKELY(cb->primitive_field_callback != nullptr)) { in Report() 524 ReportPrimitiveField rpf(tag_table, class_tag, cb, user_data); in Report() [all …]
|
/art/runtime/jit/ |
D | debugger_interface.h | 76 void ForEachNativeDebugSymbol(std::function<void(const void*, size_t, const char*)> cb);
|
/art/tools/jvmti-agents/field-null-percent/ |
D | fieldnull.cc | 179 jvmtiEventCallbacks cb { in AgentStart() local 184 CHECK_JVMTI(jvmti->SetEventCallbacks(&cb, sizeof(cb))); in AgentStart()
|
/art/test/1974-resize-array/ |
D | resize_array.cc | 185 jvmtiEventCallbacks cb{ in Java_art_Test1974_StartCollectFrees() local 200 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->SetEventCallbacks(&cb, sizeof(cb)))) { in Java_art_Test1974_StartCollectFrees()
|
/art/tools/jvmti-agents/simple-force-redefine/ |
D | forceredefine.cc | 289 jvmtiEventCallbacks cb{ in AgentStart() local 293 jvmti->SetEventCallbacks(&cb, sizeof(cb)); in AgentStart()
|
/art/tools/jvmti-agents/field-counts/ |
D | fieldcount.cc | 237 jvmtiEventCallbacks cb{ in AgentStart() local 242 CHECK_JVMTI(jvmti->SetEventCallbacks(&cb, sizeof(cb))); in AgentStart()
|
/art/dt_fd_forward/ |
D | dt_fd_forward.h | 85 explicit FdForwardTransport(jdwpTransportCallback* cb);
|
D | dt_fd_forward.cc | 74 FdForwardTransport::FdForwardTransport(jdwpTransportCallback* cb) in FdForwardTransport() argument 75 : mem_(*cb), in FdForwardTransport() 770 jdwpTransportCallback* cb, in jdwpTransport_OnLoad() argument 777 void* data = cb->alloc(sizeof(FdForwardTransport)); in jdwpTransport_OnLoad() 783 new (data) FdForwardTransport(cb); in jdwpTransport_OnLoad()
|
/art/test/979-const-method-handle/util-src/transformer/ |
D | ConstantTransformer.java | 216 ConstantBuilder cb = 219 cr.accept(cb, 0);
|