/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() 61 void RuntimeCallbacks::AddAppInfoCallback(AppInfoCallback* cb) { in AddAppInfoCallback() argument 63 appinfo_callbacks_.push_back(cb); in AddAppInfoCallback() 66 void RuntimeCallbacks::RemoveAppInfoCallback(AppInfoCallback* cb) { in RemoveAppInfoCallback() argument 68 Remove(cb, &appinfo_callbacks_); in RemoveAppInfoCallback() [all …]
|
D | runtime_callbacks.h | 178 void AddThreadLifecycleCallback(ThreadLifecycleCallback* cb) REQUIRES(Locks::mutator_lock_); 179 void RemoveThreadLifecycleCallback(ThreadLifecycleCallback* cb) REQUIRES(Locks::mutator_lock_); 184 void AddClassLoadCallback(ClassLoadCallback* cb) REQUIRES(Locks::mutator_lock_); 185 void RemoveClassLoadCallback(ClassLoadCallback* cb) REQUIRES(Locks::mutator_lock_); 193 void AddRuntimeSigQuitCallback(RuntimeSigQuitCallback* cb) 195 void RemoveRuntimeSigQuitCallback(RuntimeSigQuitCallback* cb) 200 void AddRuntimePhaseCallback(RuntimePhaseCallback* cb) 202 void RemoveRuntimePhaseCallback(RuntimePhaseCallback* cb) 217 void AddMethodCallback(MethodCallback* cb) REQUIRES(Locks::mutator_lock_); 218 void RemoveMethodCallback(MethodCallback* cb) REQUIRES(Locks::mutator_lock_); [all …]
|
/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/libdexfile/external/include/art_api/ |
D | dex_file_support.h | 114 auto cb = [](void* ctx, const ADexFile_Method* m) { (*reinterpret_cast<T*>(ctx))(Method{m}); }; in FindMethodAtOffset() 115 return g_ADexFile_findMethodAtOffset(self_, dex_offset, cb, &callback); in FindMethodAtOffset() 120 auto cb = [](void* ctx, const ADexFile_Method* m) { (*reinterpret_cast<T*>(ctx))(Method{m}); }; in ForEachMethod() 121 return g_ADexFile_forEachMethod(self_, cb, &callback); in ForEachMethod()
|
/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/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/dump-jvmti-state/ |
D | dump-jvmti.cc | 99 jvmtiEventCallbacks cb{ in AgentStart() local 102 jvmti->SetEventCallbacks(&cb, sizeof(cb)); in AgentStart()
|
/art/test/ti-stress/ |
D | stress.cc | 824 jvmtiEventCallbacks cb; in Agent_OnLoad() local 825 memset(&cb, 0, sizeof(cb)); in Agent_OnLoad() 826 cb.ClassFileLoadHook = ClassFileLoadHookSecretNoOp; in Agent_OnLoad() 827 cb.NativeMethodBind = doJvmtiMethodBind; in Agent_OnLoad() 828 cb.VMInit = PerformFinalSetupVMInit; in Agent_OnLoad() 829 cb.MethodEntry = MethodEntryHook; in Agent_OnLoad() 830 cb.MethodExit = MethodExitHook; in Agent_OnLoad() 831 cb.FieldAccess = FieldAccessHook; in Agent_OnLoad() 832 cb.FieldModification = FieldModificationHook; in Agent_OnLoad() 833 cb.ClassPrepare = ClassPrepareHook; in Agent_OnLoad() [all …]
|
/art/tools/jvmti-agents/jit-load/ |
D | jitload.cc | 98 jvmtiEventCallbacks cb { in SetupJvmti() local 110 CHECK_CALL_SUCCESS(jvmti->SetEventCallbacks(&cb, sizeof(cb))); in SetupJvmti()
|
/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.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() 516 const jvmtiHeapCallbacks* cb, in Report() argument 519 if (UNLIKELY(cb->primitive_field_callback != nullptr)) { in Report() 521 ReportPrimitiveField rpf(tag_table, class_tag, cb, user_data); in Report() [all …]
|
D | ti_heap.h | 50 jvmtiHeapObjectCallback cb,
|
/art/runtime/jit/ |
D | debugger_interface.h | 77 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/test/2265-const-method-type-cached/src-util/transformer/ |
D | ConstantTransformer.java | 144 ConstantBuilder cb = 147 cr.accept(cb, 0);
|
/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/tools/jvmti-agents/simple-force-redefine/ |
D | forceredefine.cc | 287 jvmtiEventCallbacks cb{ in AgentStart() local 291 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 | 76 FdForwardTransport::FdForwardTransport(jdwpTransportCallback* cb) in FdForwardTransport() argument 77 : mem_(*cb), in FdForwardTransport() 788 jdwpTransportCallback* cb, in jdwpTransport_OnLoad() argument 795 void* data = cb->alloc(sizeof(FdForwardTransport)); in jdwpTransport_OnLoad() 801 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);
|