Home
last modified time | relevance | path

Searched refs:cb (Results 1 – 25 of 38) sorted by relevance

12

/art/runtime/
Druntime_callbacks.cc44 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 …]
Druntime_callbacks.h178 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/
Dsource_transform.cc69 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/
Dnative_bind.cc99 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/
Ddex_file_support.h114 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/
Dmulti_thread_events.cc66 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/
Dfake_redef_object.cc107 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/
Dredef_object.cc116 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/
Dsuspend_event_helper.cc304 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/
Ddump-jvmti.cc99 jvmtiEventCallbacks cb{ in AgentStart() local
102 jvmti->SetEventCallbacks(&cb, sizeof(cb)); in AgentStart()
/art/test/ti-stress/
Dstress.cc824 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/
Djitload.cc98 jvmtiEventCallbacks cb { in SetupJvmti() local
110 CHECK_CALL_SUCCESS(jvmti->SetEventCallbacks(&cb, sizeof(cb))); in SetupJvmti()
/art/test/1940-ddms-ext/
Dddm_ext.cc150 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/
Dalloc_manager.cc89 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()
Dti_heap.cc96 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 …]
Dti_heap.h50 jvmtiHeapObjectCallback cb,
/art/runtime/jit/
Ddebugger_interface.h77 void ForEachNativeDebugSymbol(std::function<void(const void*, size_t, const char*)> cb);
/art/tools/jvmti-agents/field-null-percent/
Dfieldnull.cc179 jvmtiEventCallbacks cb { in AgentStart() local
184 CHECK_JVMTI(jvmti->SetEventCallbacks(&cb, sizeof(cb))); in AgentStart()
/art/test/1974-resize-array/
Dresize_array.cc185 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/
DConstantTransformer.java144 ConstantBuilder cb =
147 cr.accept(cb, 0);
/art/tools/jvmti-agents/field-counts/
Dfieldcount.cc237 jvmtiEventCallbacks cb{ in AgentStart() local
242 CHECK_JVMTI(jvmti->SetEventCallbacks(&cb, sizeof(cb))); in AgentStart()
/art/tools/jvmti-agents/simple-force-redefine/
Dforceredefine.cc287 jvmtiEventCallbacks cb{ in AgentStart() local
291 jvmti->SetEventCallbacks(&cb, sizeof(cb)); in AgentStart()
/art/dt_fd_forward/
Ddt_fd_forward.h85 explicit FdForwardTransport(jdwpTransportCallback* cb);
Ddt_fd_forward.cc76 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/
DConstantTransformer.java216 ConstantBuilder cb =
219 cr.accept(cb, 0);

12