Home
last modified time | relevance | path

Searched refs:cb (Results 1 – 25 of 34) 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()
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 …]
Druntime_callbacks.h175 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 …]
Dthread_list.h142 void ForEach(CallBack cb) REQUIRES(Locks::thread_list_lock_) { in ForEach() argument
145 }, &cb); in ForEach()
Ddebugger.cc310 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/
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/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/tools/jvmti-agents/dump-jvmti-state/
Ddump-jvmti.cc97 jvmtiEventCallbacks cb{ in AgentStart() local
100 jvmti->SetEventCallbacks(&cb, sizeof(cb)); in AgentStart()
/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/jit-load/
Djitload.cc100 jvmtiEventCallbacks cb { in SetupJvmti() local
112 CHECK_CALL_SUCCESS(jvmti->SetEventCallbacks(&cb, sizeof(cb))); in SetupJvmti()
/art/test/ti-stress/
Dstress.cc825 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/
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.h50 jvmtiHeapObjectCallback cb,
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()
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/
Ddebugger_interface.h76 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/tools/jvmti-agents/simple-force-redefine/
Dforceredefine.cc289 jvmtiEventCallbacks cb{ in AgentStart() local
293 jvmti->SetEventCallbacks(&cb, sizeof(cb)); in AgentStart()
/art/tools/jvmti-agents/field-counts/
Dfieldcount.cc237 jvmtiEventCallbacks cb{ in AgentStart() local
242 CHECK_JVMTI(jvmti->SetEventCallbacks(&cb, sizeof(cb))); in AgentStart()
/art/dt_fd_forward/
Ddt_fd_forward.h85 explicit FdForwardTransport(jdwpTransportCallback* cb);
Ddt_fd_forward.cc74 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/
DConstantTransformer.java216 ConstantBuilder cb =
219 cr.accept(cb, 0);

12