Home
last modified time | relevance | path

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

/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.h163 void AddThreadLifecycleCallback(ThreadLifecycleCallback* cb) REQUIRES(Locks::mutator_lock_);
164 void RemoveThreadLifecycleCallback(ThreadLifecycleCallback* cb) REQUIRES(Locks::mutator_lock_);
169 void AddClassLoadCallback(ClassLoadCallback* cb) REQUIRES(Locks::mutator_lock_);
170 void RemoveClassLoadCallback(ClassLoadCallback* cb) REQUIRES(Locks::mutator_lock_);
176 void AddRuntimeSigQuitCallback(RuntimeSigQuitCallback* cb)
178 void RemoveRuntimeSigQuitCallback(RuntimeSigQuitCallback* cb)
183 void AddRuntimePhaseCallback(RuntimePhaseCallback* cb)
185 void RemoveRuntimePhaseCallback(RuntimePhaseCallback* cb)
200 void AddMethodCallback(MethodCallback* cb) REQUIRES(Locks::mutator_lock_);
201 void RemoveMethodCallback(MethodCallback* cb) REQUIRES(Locks::mutator_lock_);
[all …]
Ddebugger.cc4363 RuntimeCallbacks* cb = Runtime::Current()->GetRuntimeCallbacks(); in DdmSendThreadNotification() local
4367 cb->DdmPublishChunk(CHUNK_TYPE("THDE"), ArrayRef<const uint8_t>(buf)); in DdmSendThreadNotification()
4386 cb->DdmPublishChunk(type, ArrayRef<const uint8_t>(bytes)); in DdmSendThreadNotification()
4776 RuntimeCallbacks* cb = Runtime::Current()->GetRuntimeCallbacks(); in DdmSendHeapSegments() local
4784 cb->DdmPublishChunk(native ? CHUNK_TYPE("NHST") : CHUNK_TYPE("HPST"), in DdmSendHeapSegments()
4844 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/1953-pop-frame/
Dpop_frame.cc317 jvmtiEventCallbacks cb; in Java_art_Test1953_setupTest() local
318 memset(&cb, 0, sizeof(cb)); in Java_art_Test1953_setupTest()
320 cb.Breakpoint = cbBreakpointHit; in Java_art_Test1953_setupTest()
321 cb.SingleStep = cbSingleStep; in Java_art_Test1953_setupTest()
322 cb.FieldAccess = cbFieldAccess; in Java_art_Test1953_setupTest()
323 cb.FieldModification = cbFieldModification; in Java_art_Test1953_setupTest()
324 cb.MethodEntry = cbMethodEntry; in Java_art_Test1953_setupTest()
325 cb.MethodExit = cbMethodExit; in Java_art_Test1953_setupTest()
326 cb.Exception = cbException; in Java_art_Test1953_setupTest()
327 cb.ExceptionCatch = cbExceptionCatch; in Java_art_Test1953_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/tools/jvmti-agents/field-null-percent/
Dfieldnull.cc179 jvmtiEventCallbacks cb { in AgentStart() local
184 CHECK_JVMTI(jvmti->SetEventCallbacks(&cb, sizeof(cb))); in AgentStart()
/art/openjdkjvmti/
Dti_heap.cc66 const jvmtiHeapCallbacks* cb, in ReportString() argument
68 if (UNLIKELY(cb->string_primitive_value_callback != nullptr) && obj->IsString()) { in ReportString()
99 jint result = cb->string_primitive_value_callback(class_tag, in ReportString()
118 const jvmtiHeapCallbacks* cb, in ReportPrimitiveArray() argument
120 if (UNLIKELY(cb->array_primitive_value_callback != nullptr) && in ReportPrimitiveArray()
144 result = cb->array_primitive_value_callback(class_tag, in ReportPrimitiveArray()
165 result = cb->array_primitive_value_callback(class_tag, in ReportPrimitiveArray()
489 const jvmtiHeapCallbacks* cb, in Report() argument
492 if (UNLIKELY(cb->primitive_field_callback != nullptr)) { in Report()
494 ReportPrimitiveField rpf(tag_table, class_tag, cb, user_data); in Report()
[all …]
Dti_heap.h36 jvmtiHeapObjectCallback cb,
Devents.h94 void CopyExtensionsFrom(const ArtJvmtiEventCallbacks* cb);
96 jvmtiError Set(jint index, jvmtiExtensionEvent cb);
Devents.cc67 void ArtJvmtiEventCallbacks::CopyExtensionsFrom(const ArtJvmtiEventCallbacks* cb) { in CopyExtensionsFrom() argument
73 if (cb != nullptr) { in CopyExtensionsFrom()
74 memcpy(this, cb, sizeof(*this)); in CopyExtensionsFrom()
80 jvmtiError ArtJvmtiEventCallbacks::Set(jint index, jvmtiExtensionEvent cb) { in Set() argument
83 DdmPublishChunk = reinterpret_cast<ArtJvmtiEventDdmPublishChunk>(cb); in Set()
/art/tools/jvmti-agents/simple-force-redefine/
Dforceredefine.cc289 jvmtiEventCallbacks cb{ in AgentStart() local
293 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);
/art/runtime/jit/
Djit.cc253 RuntimeCallbacks* cb = Runtime::Current()->GetRuntimeCallbacks(); in CompileMethod() local
255 if (cb->IsMethodBeingInspected(method) && !cb->IsMethodSafeToJit(method)) { in CompileMethod()
/art/test/dexdump/
Dcheckers.txt774 001b92: 5994 1f00 |00cb: iput v4, v9, Lcom/google/android/checkers/Che…
1538 00258e: 2202 2200 |00cb: new-instance v2, Lcom/google/android/checkers…
1680 00278e: 5990 0e00 |01cb: iput v0, v9, Lcom/google/android/checkers/Che…
2113 002cce: 5b80 0f00 |00cb: iput-object v0, v8, Lcom/google/android/check…
2741 0033fe: 3543 ae01 |001d: if-ge v3, v4, 01cb // +01ae
2972 00375a: d803 1702 |01cb: add-int/lit8 v3, v23, #int 2 // #02
3878 00412e: 1301 1900 |00cb: const/16 v1, #int 25 // #19
4510 004c4e: 3453 cb02 |0063: if-lt v3, v5, 032e // +02cb
4703 004f1e: 3903 1500 |01cb: if-nez v3, 01e0 // +0015
5666 005bbe: 9501 0114 |00cb: and-int v1, v1, v20
[all …]
Dinvoke-custom.txt3410 … |0027: invoke-direct {v4, v5}, Ljava/lang/Thread;.<init>:(Ljava/lang/Runnable;)V // method@00cb
5265 003f4a: 6201 1300 |00cb: sget-object v1, Ljava/lang/System;.out:Ljava/…