Lines Matching refs:ArtJvmtiEvent

98     case static_cast<jint>(ArtJvmtiEvent::kObsoleteObjectCreated):  in Set()
101 case static_cast<jint>(ArtJvmtiEvent::kDdmPublishChunk): in Set()
104 case static_cast<jint>(ArtJvmtiEvent::kStructuralDexFileLoadHook): in Set()
114 return e >= static_cast<jint>(ArtJvmtiEvent::kMinEventTypeVal) && in IsExtensionEvent()
115 e <= static_cast<jint>(ArtJvmtiEvent::kMaxEventTypeVal) && in IsExtensionEvent()
116 IsExtensionEvent(static_cast<ArtJvmtiEvent>(e)); in IsExtensionEvent()
119 bool IsExtensionEvent(ArtJvmtiEvent e) { in IsExtensionEvent()
121 case ArtJvmtiEvent::kDdmPublishChunk: in IsExtensionEvent()
122 case ArtJvmtiEvent::kObsoleteObjectCreated: in IsExtensionEvent()
123 case ArtJvmtiEvent::kStructuralDexFileLoadHook: in IsExtensionEvent()
130 bool EventMasks::IsEnabledAnywhere(ArtJvmtiEvent event) { in IsEnabledAnywhere()
170 void EventMasks::EnableEvent(ArtJvmTiEnv* env, art::Thread* thread, ArtJvmtiEvent event) { in EnableEvent()
180 void EventMasks::DisableEvent(ArtJvmTiEnv* env, art::Thread* thread, ArtJvmtiEvent event) { in DisableEvent()
202 ArtJvmtiEvent to_remove = caps_added ? ArtJvmtiEvent::kClassFileLoadHookNonRetransformable in HandleChangedCapabilities()
203 : ArtJvmtiEvent::kClassFileLoadHookRetransformable; in HandleChangedCapabilities()
204 ArtJvmtiEvent to_add = caps_added ? ArtJvmtiEvent::kClassFileLoadHookRetransformable in HandleChangedCapabilities()
205 : ArtJvmtiEvent::kClassFileLoadHookNonRetransformable; in HandleChangedCapabilities()
239 for (size_t i = static_cast<size_t>(ArtJvmtiEvent::kMinEventTypeVal); in RemoveArtJvmTiEnv()
240 i <= static_cast<size_t>(ArtJvmtiEvent::kMaxEventTypeVal); in RemoveArtJvmTiEnv()
242 RecalculateGlobalEventMaskLocked(static_cast<ArtJvmtiEvent>(i)); in RemoveArtJvmTiEnv()
247 static bool IsThreadControllable(ArtJvmtiEvent event) { in IsThreadControllable()
249 case ArtJvmtiEvent::kVmInit: in IsThreadControllable()
250 case ArtJvmtiEvent::kVmStart: in IsThreadControllable()
251 case ArtJvmtiEvent::kVmDeath: in IsThreadControllable()
252 case ArtJvmtiEvent::kThreadStart: in IsThreadControllable()
253 case ArtJvmtiEvent::kCompiledMethodLoad: in IsThreadControllable()
254 case ArtJvmtiEvent::kCompiledMethodUnload: in IsThreadControllable()
255 case ArtJvmtiEvent::kDynamicCodeGenerated: in IsThreadControllable()
256 case ArtJvmtiEvent::kDataDumpRequest: in IsThreadControllable()
257 case ArtJvmtiEvent::kObsoleteObjectCreated: in IsThreadControllable()
271 template<ArtJvmtiEvent kEvent, typename ...Args>
299 if (handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kDdmPublishChunk)) { in DdmPublishChunk()
301 handler_->DispatchEvent<ArtJvmtiEvent::kDdmPublishChunk>( in DdmPublishChunk()
324 if (handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kVmObjectAlloc)) { in ObjectAllocated()
340 RunEventCallback<ArtJvmtiEvent::kVmObjectAlloc>(handler_, in ObjectAllocated()
370 if (handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kMonitorContendedEnter)) { in MonitorContendedLocking()
374 RunEventCallback<ArtJvmtiEvent::kMonitorContendedEnter>( in MonitorContendedLocking()
384 if (handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kMonitorContendedEntered)) { in MonitorContendedLocked()
388 RunEventCallback<ArtJvmtiEvent::kMonitorContendedEntered>( in MonitorContendedLocked()
398 if (handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kMonitorWait)) { in ObjectWaitStart()
402 RunEventCallback<ArtJvmtiEvent::kMonitorWait>( in ObjectWaitStart()
425 if (handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kMonitorWaited)) { in MonitorWaitFinished()
429 RunEventCallback<ArtJvmtiEvent::kMonitorWaited>( in MonitorWaitFinished()
448 if (handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kMonitorWait)) { in ThreadParkStart()
484 RunEventCallback<ArtJvmtiEvent::kMonitorWait>( in ThreadParkStart()
506 if (handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kMonitorWaited)) { in ThreadParkFinished()
516 RunEventCallback<ArtJvmtiEvent::kMonitorWaited>( in ThreadParkFinished()
551 handler_->DispatchEvent<ArtJvmtiEvent::kGarbageCollectionStart>(art::Thread::Current()); in StartPause()
555 handler_->DispatchEvent<ArtJvmtiEvent::kGarbageCollectionFinish>(art::Thread::Current()); in EndPause()
576 static void SetupGcPauseTracking(JvmtiGcPauseListener* listener, ArtJvmtiEvent event, bool enable) { in SetupGcPauseTracking()
579 if (event == ArtJvmtiEvent::kGarbageCollectionStart) { in SetupGcPauseTracking()
634 event_handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kMethodEntry)) { in MethodEntered()
636 RunEventCallback<ArtJvmtiEvent::kMethodEntry>(event_handler_, in MethodEntered()
656 ArtJvmtiEvent::kForceEarlyReturnUpdateReturnValue))) { in MethodExited()
677 thr.get(), ArtJvmtiEvent::kForceEarlyReturnUpdateReturnValue, JVMTI_DISABLE); in MethodExited()
680 if (event_handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kMethodExit)) { in MethodExited()
689 RunEventCallback<ArtJvmtiEvent::kMethodExit>( in MethodExited()
708 ArtJvmtiEvent::kForceEarlyReturnUpdateReturnValue))) { in MethodExited()
726 thr.get(), ArtJvmtiEvent::kForceEarlyReturnUpdateReturnValue, JVMTI_DISABLE); in MethodExited()
729 if (event_handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kMethodExit)) { in MethodExited()
739 RunEventCallback<ArtJvmtiEvent::kMethodExit>( in MethodExited()
757 event_handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kMethodExit)) { in MethodUnwind()
766 RunEventCallback<ArtJvmtiEvent::kMethodExit>( in MethodUnwind()
797 if (event_handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kSingleStep)) { in DexPcMoved()
798 RunEventCallback<ArtJvmtiEvent::kSingleStep>(event_handler_, self, jnienv, jmethod, location); in DexPcMoved()
801 if (event_handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kBreakpoint)) { in DexPcMoved()
802 RunEventCallback<ArtJvmtiEvent::kBreakpoint>(event_handler_, self, jnienv, jmethod, location); in DexPcMoved()
813 if (event_handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kFieldAccess)) { in FieldRead()
823 RunEventCallback<ArtJvmtiEvent::kFieldAccess>(event_handler_, in FieldRead()
841 if (event_handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kFieldModification)) { in FieldWritten()
854 RunEventCallback<ArtJvmtiEvent::kFieldModification>( in FieldWritten()
876 if (event_handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kFieldModification)) { in FieldWritten()
891 RunEventCallback<ArtJvmtiEvent::kFieldModification>( in FieldWritten()
917 RunEventCallback<ArtJvmtiEvent::kFramePop>( in WatchedFramePop()
1000 if (event_handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kException)) { in ExceptionThrown()
1011 RunEventCallback<ArtJvmtiEvent::kException>( in ExceptionThrown()
1029 if (event_handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kExceptionCatch)) { in ExceptionHandled()
1037 RunEventCallback<ArtJvmtiEvent::kExceptionCatch>( in ExceptionHandled()
1074 uint32_t EventHandler::GetInstrumentationEventsFor(ArtJvmtiEvent event) { in GetInstrumentationEventsFor()
1076 case ArtJvmtiEvent::kMethodEntry: in GetInstrumentationEventsFor()
1078 case ArtJvmtiEvent::kForceEarlyReturnUpdateReturnValue: in GetInstrumentationEventsFor()
1081 case ArtJvmtiEvent::kMethodExit: { in GetInstrumentationEventsFor()
1082 DCHECK(event == ArtJvmtiEvent::kMethodExit || in GetInstrumentationEventsFor()
1083 event == ArtJvmtiEvent::kForceEarlyReturnUpdateReturnValue) in GetInstrumentationEventsFor()
1085 ArtJvmtiEvent other = event == ArtJvmtiEvent::kMethodExit in GetInstrumentationEventsFor()
1086 ? ArtJvmtiEvent::kForceEarlyReturnUpdateReturnValue in GetInstrumentationEventsFor()
1087 : ArtJvmtiEvent::kMethodExit; in GetInstrumentationEventsFor()
1097 case ArtJvmtiEvent::kFieldModification: in GetInstrumentationEventsFor()
1099 case ArtJvmtiEvent::kFieldAccess: in GetInstrumentationEventsFor()
1101 case ArtJvmtiEvent::kBreakpoint: in GetInstrumentationEventsFor()
1102 case ArtJvmtiEvent::kSingleStep: { in GetInstrumentationEventsFor()
1106 DCHECK(event == ArtJvmtiEvent::kBreakpoint || event == ArtJvmtiEvent::kSingleStep); in GetInstrumentationEventsFor()
1107 ArtJvmtiEvent other = event == ArtJvmtiEvent::kBreakpoint ? ArtJvmtiEvent::kSingleStep in GetInstrumentationEventsFor()
1108 : ArtJvmtiEvent::kBreakpoint; in GetInstrumentationEventsFor()
1117 case ArtJvmtiEvent::kFramePop: in GetInstrumentationEventsFor()
1119 case ArtJvmtiEvent::kException: in GetInstrumentationEventsFor()
1121 case ArtJvmtiEvent::kExceptionCatch: in GetInstrumentationEventsFor()
1140 static DeoptRequirement GetDeoptRequirement(ArtJvmtiEvent event, jthread thread) { in GetDeoptRequirement()
1142 case ArtJvmtiEvent::kBreakpoint: in GetDeoptRequirement()
1143 case ArtJvmtiEvent::kException: in GetDeoptRequirement()
1147 case ArtJvmtiEvent::kMethodEntry: in GetDeoptRequirement()
1148 case ArtJvmtiEvent::kExceptionCatch: in GetDeoptRequirement()
1150 case ArtJvmtiEvent::kMethodExit: in GetDeoptRequirement()
1151 case ArtJvmtiEvent::kFieldModification: in GetDeoptRequirement()
1152 case ArtJvmtiEvent::kFieldAccess: in GetDeoptRequirement()
1153 case ArtJvmtiEvent::kSingleStep: in GetDeoptRequirement()
1154 case ArtJvmtiEvent::kFramePop: in GetDeoptRequirement()
1155 case ArtJvmtiEvent::kForceEarlyReturnUpdateReturnValue: in GetDeoptRequirement()
1157 case ArtJvmtiEvent::kVmInit: in GetDeoptRequirement()
1158 case ArtJvmtiEvent::kVmDeath: in GetDeoptRequirement()
1159 case ArtJvmtiEvent::kThreadStart: in GetDeoptRequirement()
1160 case ArtJvmtiEvent::kThreadEnd: in GetDeoptRequirement()
1161 case ArtJvmtiEvent::kClassFileLoadHookNonRetransformable: in GetDeoptRequirement()
1162 case ArtJvmtiEvent::kClassLoad: in GetDeoptRequirement()
1163 case ArtJvmtiEvent::kClassPrepare: in GetDeoptRequirement()
1164 case ArtJvmtiEvent::kVmStart: in GetDeoptRequirement()
1165 case ArtJvmtiEvent::kNativeMethodBind: in GetDeoptRequirement()
1166 case ArtJvmtiEvent::kCompiledMethodLoad: in GetDeoptRequirement()
1167 case ArtJvmtiEvent::kCompiledMethodUnload: in GetDeoptRequirement()
1168 case ArtJvmtiEvent::kDynamicCodeGenerated: in GetDeoptRequirement()
1169 case ArtJvmtiEvent::kDataDumpRequest: in GetDeoptRequirement()
1170 case ArtJvmtiEvent::kMonitorWait: in GetDeoptRequirement()
1171 case ArtJvmtiEvent::kMonitorWaited: in GetDeoptRequirement()
1172 case ArtJvmtiEvent::kMonitorContendedEnter: in GetDeoptRequirement()
1173 case ArtJvmtiEvent::kMonitorContendedEntered: in GetDeoptRequirement()
1174 case ArtJvmtiEvent::kResourceExhausted: in GetDeoptRequirement()
1175 case ArtJvmtiEvent::kGarbageCollectionStart: in GetDeoptRequirement()
1176 case ArtJvmtiEvent::kGarbageCollectionFinish: in GetDeoptRequirement()
1177 case ArtJvmtiEvent::kObjectFree: in GetDeoptRequirement()
1178 case ArtJvmtiEvent::kVmObjectAlloc: in GetDeoptRequirement()
1179 case ArtJvmtiEvent::kClassFileLoadHookRetransformable: in GetDeoptRequirement()
1180 case ArtJvmtiEvent::kDdmPublishChunk: in GetDeoptRequirement()
1181 case ArtJvmtiEvent::kObsoleteObjectCreated: in GetDeoptRequirement()
1182 case ArtJvmtiEvent::kStructuralDexFileLoadHook: in GetDeoptRequirement()
1187 jvmtiError EventHandler::HandleEventDeopt(ArtJvmtiEvent event, jthread thread, bool enable) { in HandleEventDeopt()
1231 ArtJvmtiEvent event, in SetupTraceListener()
1285 bool EventHandler::OtherMonitorEventsEnabledAnywhere(ArtJvmtiEvent event) { in OtherMonitorEventsEnabledAnywhere()
1286 std::array<ArtJvmtiEvent, 4> events { in OtherMonitorEventsEnabledAnywhere()
1288 ArtJvmtiEvent::kMonitorContendedEnter, in OtherMonitorEventsEnabledAnywhere()
1289 ArtJvmtiEvent::kMonitorContendedEntered, in OtherMonitorEventsEnabledAnywhere()
1290 ArtJvmtiEvent::kMonitorWait, in OtherMonitorEventsEnabledAnywhere()
1291 ArtJvmtiEvent::kMonitorWaited in OtherMonitorEventsEnabledAnywhere()
1294 for (ArtJvmtiEvent e : events) { in OtherMonitorEventsEnabledAnywhere()
1305 SetupTraceListener(method_trace_listener_.get(), ArtJvmtiEvent::kFramePop, enable); in SetupFramePopTraceListener()
1319 SetupTraceListener(method_trace_listener_.get(), ArtJvmtiEvent::kFramePop, enable); in SetupFramePopTraceListener()
1324 void EventHandler::HandleEventType(ArtJvmtiEvent event, bool enable) { in HandleEventType()
1326 case ArtJvmtiEvent::kDdmPublishChunk: in HandleEventType()
1329 case ArtJvmtiEvent::kVmObjectAlloc: in HandleEventType()
1332 case ArtJvmtiEvent::kGarbageCollectionStart: in HandleEventType()
1333 case ArtJvmtiEvent::kGarbageCollectionFinish: in HandleEventType()
1338 case ArtJvmtiEvent::kFramePop: in HandleEventType()
1345 case ArtJvmtiEvent::kMethodEntry: in HandleEventType()
1346 case ArtJvmtiEvent::kMethodExit: in HandleEventType()
1347 case ArtJvmtiEvent::kFieldAccess: in HandleEventType()
1348 case ArtJvmtiEvent::kFieldModification: in HandleEventType()
1349 case ArtJvmtiEvent::kException: in HandleEventType()
1350 case ArtJvmtiEvent::kExceptionCatch: in HandleEventType()
1351 case ArtJvmtiEvent::kBreakpoint: in HandleEventType()
1352 case ArtJvmtiEvent::kSingleStep: in HandleEventType()
1353 case ArtJvmtiEvent::kForceEarlyReturnUpdateReturnValue: in HandleEventType()
1356 case ArtJvmtiEvent::kMonitorContendedEnter: in HandleEventType()
1357 case ArtJvmtiEvent::kMonitorContendedEntered: in HandleEventType()
1358 case ArtJvmtiEvent::kMonitorWait: in HandleEventType()
1359 case ArtJvmtiEvent::kMonitorWaited: in HandleEventType()
1372 ArtJvmtiEvent event) { in HasAssociatedCapability()
1375 case ArtJvmtiEvent::kBreakpoint: in HasAssociatedCapability()
1378 case ArtJvmtiEvent::kCompiledMethodLoad: in HasAssociatedCapability()
1379 case ArtJvmtiEvent::kCompiledMethodUnload: in HasAssociatedCapability()
1382 case ArtJvmtiEvent::kException: in HasAssociatedCapability()
1383 case ArtJvmtiEvent::kExceptionCatch: in HasAssociatedCapability()
1386 case ArtJvmtiEvent::kFieldAccess: in HasAssociatedCapability()
1389 case ArtJvmtiEvent::kFieldModification: in HasAssociatedCapability()
1392 case ArtJvmtiEvent::kFramePop: in HasAssociatedCapability()
1395 case ArtJvmtiEvent::kGarbageCollectionStart: in HasAssociatedCapability()
1396 case ArtJvmtiEvent::kGarbageCollectionFinish: in HasAssociatedCapability()
1399 case ArtJvmtiEvent::kMethodEntry: in HasAssociatedCapability()
1402 case ArtJvmtiEvent::kMethodExit: in HasAssociatedCapability()
1405 case ArtJvmtiEvent::kMonitorContendedEnter: in HasAssociatedCapability()
1406 case ArtJvmtiEvent::kMonitorContendedEntered: in HasAssociatedCapability()
1407 case ArtJvmtiEvent::kMonitorWait: in HasAssociatedCapability()
1408 case ArtJvmtiEvent::kMonitorWaited: in HasAssociatedCapability()
1411 case ArtJvmtiEvent::kNativeMethodBind: in HasAssociatedCapability()
1414 case ArtJvmtiEvent::kObjectFree: in HasAssociatedCapability()
1417 case ArtJvmtiEvent::kSingleStep: in HasAssociatedCapability()
1420 case ArtJvmtiEvent::kVmObjectAlloc: in HasAssociatedCapability()
1428 static bool IsInternalEvent(ArtJvmtiEvent event) { in IsInternalEvent()
1430 static_cast<uint32_t>(ArtJvmtiEvent::kMinInternalEventTypeVal); in IsInternalEvent()
1434 ArtJvmtiEvent event, in SetInternalEvent()
1504 static bool IsDirectlySettableEvent(ArtJvmtiEvent event) { in IsDirectlySettableEvent()
1508 static bool EventIsNormal(ArtJvmtiEvent event) { in EventIsNormal()
1514 ArtJvmtiEvent event, in SetEvent()
1593 bool EventHandler::GetThreadEventState(ArtJvmtiEvent event, art::Thread* thread) { in GetThreadEventState()
1625 static size_t GetInternalEventIndex(ArtJvmtiEvent event) { in GetInternalEventIndex()
1627 return static_cast<size_t>(event) - static_cast<size_t>(ArtJvmtiEvent::kMinInternalEventTypeVal); in GetInternalEventIndex()
1630 int32_t EventHandler::DecrInternalEventThreadRefcount(ArtJvmtiEvent event, art::Thread* target) { in DecrInternalEventThreadRefcount()
1634 int32_t EventHandler::IncrInternalEventThreadRefcount(ArtJvmtiEvent event, art::Thread* target) { in IncrInternalEventThreadRefcount()
1638 int32_t& EventHandler::GetInternalEventThreadRefcount(ArtJvmtiEvent event, art::Thread* target) { in GetInternalEventThreadRefcount()
1647 int32_t EventHandler::DecrInternalEventRefcount(ArtJvmtiEvent event) { in DecrInternalEventRefcount()
1651 int32_t EventHandler::IncrInternalEventRefcount(ArtJvmtiEvent event) { in IncrInternalEventRefcount()
1655 int32_t EventHandler::GetInternalEventRefcount(ArtJvmtiEvent event) const { in GetInternalEventRefcount()