Lines Matching refs:ArtJvmtiEvent
97 case static_cast<jint>(ArtJvmtiEvent::kObsoleteObjectCreated): in Set()
100 case static_cast<jint>(ArtJvmtiEvent::kDdmPublishChunk): in Set()
103 case static_cast<jint>(ArtJvmtiEvent::kStructuralDexFileLoadHook): in Set()
113 return e >= static_cast<jint>(ArtJvmtiEvent::kMinEventTypeVal) && in IsExtensionEvent()
114 e <= static_cast<jint>(ArtJvmtiEvent::kMaxEventTypeVal) && in IsExtensionEvent()
115 IsExtensionEvent(static_cast<ArtJvmtiEvent>(e)); in IsExtensionEvent()
118 bool IsExtensionEvent(ArtJvmtiEvent e) { in IsExtensionEvent()
120 case ArtJvmtiEvent::kDdmPublishChunk: in IsExtensionEvent()
121 case ArtJvmtiEvent::kObsoleteObjectCreated: in IsExtensionEvent()
122 case ArtJvmtiEvent::kStructuralDexFileLoadHook: in IsExtensionEvent()
129 bool EventMasks::IsEnabledAnywhere(ArtJvmtiEvent event) { in IsEnabledAnywhere()
169 void EventMasks::EnableEvent(ArtJvmTiEnv* env, art::Thread* thread, ArtJvmtiEvent event) { in EnableEvent()
179 void EventMasks::DisableEvent(ArtJvmTiEnv* env, art::Thread* thread, ArtJvmtiEvent event) { in DisableEvent()
201 ArtJvmtiEvent to_remove = caps_added ? ArtJvmtiEvent::kClassFileLoadHookNonRetransformable in HandleChangedCapabilities()
202 : ArtJvmtiEvent::kClassFileLoadHookRetransformable; in HandleChangedCapabilities()
203 ArtJvmtiEvent to_add = caps_added ? ArtJvmtiEvent::kClassFileLoadHookRetransformable in HandleChangedCapabilities()
204 : ArtJvmtiEvent::kClassFileLoadHookNonRetransformable; in HandleChangedCapabilities()
238 for (size_t i = static_cast<size_t>(ArtJvmtiEvent::kMinEventTypeVal); in RemoveArtJvmTiEnv()
239 i <= static_cast<size_t>(ArtJvmtiEvent::kMaxEventTypeVal); in RemoveArtJvmTiEnv()
241 RecalculateGlobalEventMaskLocked(static_cast<ArtJvmtiEvent>(i)); in RemoveArtJvmTiEnv()
246 static bool IsThreadControllable(ArtJvmtiEvent event) { in IsThreadControllable()
248 case ArtJvmtiEvent::kVmInit: in IsThreadControllable()
249 case ArtJvmtiEvent::kVmStart: in IsThreadControllable()
250 case ArtJvmtiEvent::kVmDeath: in IsThreadControllable()
251 case ArtJvmtiEvent::kThreadStart: in IsThreadControllable()
252 case ArtJvmtiEvent::kCompiledMethodLoad: in IsThreadControllable()
253 case ArtJvmtiEvent::kCompiledMethodUnload: in IsThreadControllable()
254 case ArtJvmtiEvent::kDynamicCodeGenerated: in IsThreadControllable()
255 case ArtJvmtiEvent::kDataDumpRequest: in IsThreadControllable()
256 case ArtJvmtiEvent::kObsoleteObjectCreated: in IsThreadControllable()
270 template<ArtJvmtiEvent kEvent, typename ...Args>
298 if (handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kDdmPublishChunk)) { in DdmPublishChunk()
300 handler_->DispatchEvent<ArtJvmtiEvent::kDdmPublishChunk>( in DdmPublishChunk()
322 if (handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kVmObjectAlloc)) { in ObjectAllocated()
338 RunEventCallback<ArtJvmtiEvent::kVmObjectAlloc>(handler_, in ObjectAllocated()
368 if (handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kMonitorContendedEnter)) { in MonitorContendedLocking()
372 RunEventCallback<ArtJvmtiEvent::kMonitorContendedEnter>( in MonitorContendedLocking()
382 if (handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kMonitorContendedEntered)) { in MonitorContendedLocked()
386 RunEventCallback<ArtJvmtiEvent::kMonitorContendedEntered>( in MonitorContendedLocked()
396 if (handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kMonitorWait)) { in ObjectWaitStart()
400 RunEventCallback<ArtJvmtiEvent::kMonitorWait>( in ObjectWaitStart()
423 if (handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kMonitorWaited)) { in MonitorWaitFinished()
427 RunEventCallback<ArtJvmtiEvent::kMonitorWaited>( in MonitorWaitFinished()
446 if (handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kMonitorWait)) { in ThreadParkStart()
481 RunEventCallback<ArtJvmtiEvent::kMonitorWait>( in ThreadParkStart()
503 if (handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kMonitorWaited)) { in ThreadParkFinished()
512 RunEventCallback<ArtJvmtiEvent::kMonitorWaited>( in ThreadParkFinished()
547 handler_->DispatchEvent<ArtJvmtiEvent::kGarbageCollectionStart>(art::Thread::Current()); in StartPause()
551 handler_->DispatchEvent<ArtJvmtiEvent::kGarbageCollectionFinish>(art::Thread::Current()); in EndPause()
572 static void SetupGcPauseTracking(JvmtiGcPauseListener* listener, ArtJvmtiEvent event, bool enable) { in SetupGcPauseTracking()
575 if (event == ArtJvmtiEvent::kGarbageCollectionStart) { in SetupGcPauseTracking()
627 event_handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kMethodEntry)) { in MethodEntered()
629 RunEventCallback<ArtJvmtiEvent::kMethodEntry>(event_handler_, in MethodEntered()
647 ArtJvmtiEvent::kForceEarlyReturnUpdateReturnValue))) { in MethodExited()
668 thr.get(), ArtJvmtiEvent::kForceEarlyReturnUpdateReturnValue, JVMTI_DISABLE); in MethodExited()
671 if (event_handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kMethodExit)) { in MethodExited()
680 RunEventCallback<ArtJvmtiEvent::kMethodExit>( in MethodExited()
697 ArtJvmtiEvent::kForceEarlyReturnUpdateReturnValue))) { in MethodExited()
715 thr.get(), ArtJvmtiEvent::kForceEarlyReturnUpdateReturnValue, JVMTI_DISABLE); in MethodExited()
718 if (event_handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kMethodExit)) { in MethodExited()
728 RunEventCallback<ArtJvmtiEvent::kMethodExit>( in MethodExited()
743 event_handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kMethodExit)) { in MethodUnwind()
752 RunEventCallback<ArtJvmtiEvent::kMethodExit>( in MethodUnwind()
782 if (event_handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kSingleStep)) { in DexPcMoved()
783 RunEventCallback<ArtJvmtiEvent::kSingleStep>(event_handler_, self, jnienv, jmethod, location); in DexPcMoved()
786 if (event_handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kBreakpoint)) { in DexPcMoved()
787 RunEventCallback<ArtJvmtiEvent::kBreakpoint>(event_handler_, self, jnienv, jmethod, location); in DexPcMoved()
798 if (event_handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kFieldAccess)) { in FieldRead()
808 RunEventCallback<ArtJvmtiEvent::kFieldAccess>(event_handler_, in FieldRead()
826 if (event_handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kFieldModification)) { in FieldWritten()
839 RunEventCallback<ArtJvmtiEvent::kFieldModification>( in FieldWritten()
861 if (event_handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kFieldModification)) { in FieldWritten()
876 RunEventCallback<ArtJvmtiEvent::kFieldModification>( in FieldWritten()
902 RunEventCallback<ArtJvmtiEvent::kFramePop>( in WatchedFramePop()
985 if (event_handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kException)) { in ExceptionThrown()
996 RunEventCallback<ArtJvmtiEvent::kException>( in ExceptionThrown()
1014 if (event_handler_->IsEventEnabledAnywhere(ArtJvmtiEvent::kExceptionCatch)) { in ExceptionHandled()
1022 RunEventCallback<ArtJvmtiEvent::kExceptionCatch>( in ExceptionHandled()
1059 uint32_t EventHandler::GetInstrumentationEventsFor(ArtJvmtiEvent event) { in GetInstrumentationEventsFor()
1061 case ArtJvmtiEvent::kMethodEntry: in GetInstrumentationEventsFor()
1063 case ArtJvmtiEvent::kForceEarlyReturnUpdateReturnValue: in GetInstrumentationEventsFor()
1066 case ArtJvmtiEvent::kMethodExit: { in GetInstrumentationEventsFor()
1067 DCHECK(event == ArtJvmtiEvent::kMethodExit || in GetInstrumentationEventsFor()
1068 event == ArtJvmtiEvent::kForceEarlyReturnUpdateReturnValue) in GetInstrumentationEventsFor()
1070 ArtJvmtiEvent other = event == ArtJvmtiEvent::kMethodExit in GetInstrumentationEventsFor()
1071 ? ArtJvmtiEvent::kForceEarlyReturnUpdateReturnValue in GetInstrumentationEventsFor()
1072 : ArtJvmtiEvent::kMethodExit; in GetInstrumentationEventsFor()
1082 case ArtJvmtiEvent::kFieldModification: in GetInstrumentationEventsFor()
1084 case ArtJvmtiEvent::kFieldAccess: in GetInstrumentationEventsFor()
1086 case ArtJvmtiEvent::kBreakpoint: in GetInstrumentationEventsFor()
1087 case ArtJvmtiEvent::kSingleStep: { in GetInstrumentationEventsFor()
1091 DCHECK(event == ArtJvmtiEvent::kBreakpoint || event == ArtJvmtiEvent::kSingleStep); in GetInstrumentationEventsFor()
1092 ArtJvmtiEvent other = event == ArtJvmtiEvent::kBreakpoint ? ArtJvmtiEvent::kSingleStep in GetInstrumentationEventsFor()
1093 : ArtJvmtiEvent::kBreakpoint; in GetInstrumentationEventsFor()
1102 case ArtJvmtiEvent::kFramePop: in GetInstrumentationEventsFor()
1104 case ArtJvmtiEvent::kException: in GetInstrumentationEventsFor()
1106 case ArtJvmtiEvent::kExceptionCatch: in GetInstrumentationEventsFor()
1125 static DeoptRequirement GetDeoptRequirement(ArtJvmtiEvent event, jthread thread) { in GetDeoptRequirement()
1127 case ArtJvmtiEvent::kBreakpoint: in GetDeoptRequirement()
1128 case ArtJvmtiEvent::kException: in GetDeoptRequirement()
1129 case ArtJvmtiEvent::kMethodEntry: in GetDeoptRequirement()
1130 case ArtJvmtiEvent::kMethodExit: in GetDeoptRequirement()
1132 case ArtJvmtiEvent::kExceptionCatch: in GetDeoptRequirement()
1134 case ArtJvmtiEvent::kFieldModification: in GetDeoptRequirement()
1135 case ArtJvmtiEvent::kFieldAccess: in GetDeoptRequirement()
1136 case ArtJvmtiEvent::kSingleStep: in GetDeoptRequirement()
1137 case ArtJvmtiEvent::kFramePop: in GetDeoptRequirement()
1138 case ArtJvmtiEvent::kForceEarlyReturnUpdateReturnValue: in GetDeoptRequirement()
1140 case ArtJvmtiEvent::kVmInit: in GetDeoptRequirement()
1141 case ArtJvmtiEvent::kVmDeath: in GetDeoptRequirement()
1142 case ArtJvmtiEvent::kThreadStart: in GetDeoptRequirement()
1143 case ArtJvmtiEvent::kThreadEnd: in GetDeoptRequirement()
1144 case ArtJvmtiEvent::kClassFileLoadHookNonRetransformable: in GetDeoptRequirement()
1145 case ArtJvmtiEvent::kClassLoad: in GetDeoptRequirement()
1146 case ArtJvmtiEvent::kClassPrepare: in GetDeoptRequirement()
1147 case ArtJvmtiEvent::kVmStart: in GetDeoptRequirement()
1148 case ArtJvmtiEvent::kNativeMethodBind: in GetDeoptRequirement()
1149 case ArtJvmtiEvent::kCompiledMethodLoad: in GetDeoptRequirement()
1150 case ArtJvmtiEvent::kCompiledMethodUnload: in GetDeoptRequirement()
1151 case ArtJvmtiEvent::kDynamicCodeGenerated: in GetDeoptRequirement()
1152 case ArtJvmtiEvent::kDataDumpRequest: in GetDeoptRequirement()
1153 case ArtJvmtiEvent::kMonitorWait: in GetDeoptRequirement()
1154 case ArtJvmtiEvent::kMonitorWaited: in GetDeoptRequirement()
1155 case ArtJvmtiEvent::kMonitorContendedEnter: in GetDeoptRequirement()
1156 case ArtJvmtiEvent::kMonitorContendedEntered: in GetDeoptRequirement()
1157 case ArtJvmtiEvent::kResourceExhausted: in GetDeoptRequirement()
1158 case ArtJvmtiEvent::kGarbageCollectionStart: in GetDeoptRequirement()
1159 case ArtJvmtiEvent::kGarbageCollectionFinish: in GetDeoptRequirement()
1160 case ArtJvmtiEvent::kObjectFree: in GetDeoptRequirement()
1161 case ArtJvmtiEvent::kVmObjectAlloc: in GetDeoptRequirement()
1162 case ArtJvmtiEvent::kClassFileLoadHookRetransformable: in GetDeoptRequirement()
1163 case ArtJvmtiEvent::kDdmPublishChunk: in GetDeoptRequirement()
1164 case ArtJvmtiEvent::kObsoleteObjectCreated: in GetDeoptRequirement()
1165 case ArtJvmtiEvent::kStructuralDexFileLoadHook: in GetDeoptRequirement()
1170 jvmtiError EventHandler::HandleEventDeopt(ArtJvmtiEvent event, jthread thread, bool enable) { in HandleEventDeopt()
1214 ArtJvmtiEvent event, in SetupTraceListener()
1268 bool EventHandler::OtherMonitorEventsEnabledAnywhere(ArtJvmtiEvent event) { in OtherMonitorEventsEnabledAnywhere()
1269 std::array<ArtJvmtiEvent, 4> events { in OtherMonitorEventsEnabledAnywhere()
1271 ArtJvmtiEvent::kMonitorContendedEnter, in OtherMonitorEventsEnabledAnywhere()
1272 ArtJvmtiEvent::kMonitorContendedEntered, in OtherMonitorEventsEnabledAnywhere()
1273 ArtJvmtiEvent::kMonitorWait, in OtherMonitorEventsEnabledAnywhere()
1274 ArtJvmtiEvent::kMonitorWaited in OtherMonitorEventsEnabledAnywhere()
1277 for (ArtJvmtiEvent e : events) { in OtherMonitorEventsEnabledAnywhere()
1288 SetupTraceListener(method_trace_listener_.get(), ArtJvmtiEvent::kFramePop, enable); in SetupFramePopTraceListener()
1302 SetupTraceListener(method_trace_listener_.get(), ArtJvmtiEvent::kFramePop, enable); in SetupFramePopTraceListener()
1307 void EventHandler::HandleEventType(ArtJvmtiEvent event, bool enable) { in HandleEventType()
1309 case ArtJvmtiEvent::kDdmPublishChunk: in HandleEventType()
1312 case ArtJvmtiEvent::kVmObjectAlloc: in HandleEventType()
1315 case ArtJvmtiEvent::kGarbageCollectionStart: in HandleEventType()
1316 case ArtJvmtiEvent::kGarbageCollectionFinish: in HandleEventType()
1321 case ArtJvmtiEvent::kFramePop: in HandleEventType()
1328 case ArtJvmtiEvent::kMethodEntry: in HandleEventType()
1329 case ArtJvmtiEvent::kMethodExit: in HandleEventType()
1330 case ArtJvmtiEvent::kFieldAccess: in HandleEventType()
1331 case ArtJvmtiEvent::kFieldModification: in HandleEventType()
1332 case ArtJvmtiEvent::kException: in HandleEventType()
1333 case ArtJvmtiEvent::kExceptionCatch: in HandleEventType()
1334 case ArtJvmtiEvent::kBreakpoint: in HandleEventType()
1335 case ArtJvmtiEvent::kSingleStep: in HandleEventType()
1336 case ArtJvmtiEvent::kForceEarlyReturnUpdateReturnValue: in HandleEventType()
1339 case ArtJvmtiEvent::kMonitorContendedEnter: in HandleEventType()
1340 case ArtJvmtiEvent::kMonitorContendedEntered: in HandleEventType()
1341 case ArtJvmtiEvent::kMonitorWait: in HandleEventType()
1342 case ArtJvmtiEvent::kMonitorWaited: in HandleEventType()
1355 ArtJvmtiEvent event) { in HasAssociatedCapability()
1358 case ArtJvmtiEvent::kBreakpoint: in HasAssociatedCapability()
1361 case ArtJvmtiEvent::kCompiledMethodLoad: in HasAssociatedCapability()
1362 case ArtJvmtiEvent::kCompiledMethodUnload: in HasAssociatedCapability()
1365 case ArtJvmtiEvent::kException: in HasAssociatedCapability()
1366 case ArtJvmtiEvent::kExceptionCatch: in HasAssociatedCapability()
1369 case ArtJvmtiEvent::kFieldAccess: in HasAssociatedCapability()
1372 case ArtJvmtiEvent::kFieldModification: in HasAssociatedCapability()
1375 case ArtJvmtiEvent::kFramePop: in HasAssociatedCapability()
1378 case ArtJvmtiEvent::kGarbageCollectionStart: in HasAssociatedCapability()
1379 case ArtJvmtiEvent::kGarbageCollectionFinish: in HasAssociatedCapability()
1382 case ArtJvmtiEvent::kMethodEntry: in HasAssociatedCapability()
1385 case ArtJvmtiEvent::kMethodExit: in HasAssociatedCapability()
1388 case ArtJvmtiEvent::kMonitorContendedEnter: in HasAssociatedCapability()
1389 case ArtJvmtiEvent::kMonitorContendedEntered: in HasAssociatedCapability()
1390 case ArtJvmtiEvent::kMonitorWait: in HasAssociatedCapability()
1391 case ArtJvmtiEvent::kMonitorWaited: in HasAssociatedCapability()
1394 case ArtJvmtiEvent::kNativeMethodBind: in HasAssociatedCapability()
1397 case ArtJvmtiEvent::kObjectFree: in HasAssociatedCapability()
1400 case ArtJvmtiEvent::kSingleStep: in HasAssociatedCapability()
1403 case ArtJvmtiEvent::kVmObjectAlloc: in HasAssociatedCapability()
1411 static bool IsInternalEvent(ArtJvmtiEvent event) { in IsInternalEvent()
1413 static_cast<uint32_t>(ArtJvmtiEvent::kMinInternalEventTypeVal); in IsInternalEvent()
1417 ArtJvmtiEvent event, in SetInternalEvent()
1487 static bool IsDirectlySettableEvent(ArtJvmtiEvent event) { in IsDirectlySettableEvent()
1491 static bool EventIsNormal(ArtJvmtiEvent event) { in EventIsNormal()
1497 ArtJvmtiEvent event, in SetEvent()
1576 bool EventHandler::GetThreadEventState(ArtJvmtiEvent event, art::Thread* thread) { in GetThreadEventState()
1608 static size_t GetInternalEventIndex(ArtJvmtiEvent event) { in GetInternalEventIndex()
1610 return static_cast<size_t>(event) - static_cast<size_t>(ArtJvmtiEvent::kMinInternalEventTypeVal); in GetInternalEventIndex()
1613 int32_t EventHandler::DecrInternalEventThreadRefcount(ArtJvmtiEvent event, art::Thread* target) { in DecrInternalEventThreadRefcount()
1617 int32_t EventHandler::IncrInternalEventThreadRefcount(ArtJvmtiEvent event, art::Thread* target) { in IncrInternalEventThreadRefcount()
1621 int32_t& EventHandler::GetInternalEventThreadRefcount(ArtJvmtiEvent event, art::Thread* target) { in GetInternalEventThreadRefcount()
1630 int32_t EventHandler::DecrInternalEventRefcount(ArtJvmtiEvent event) { in DecrInternalEventRefcount()
1634 int32_t EventHandler::IncrInternalEventRefcount(ArtJvmtiEvent event) { in IncrInternalEventRefcount()
1638 int32_t EventHandler::GetInternalEventRefcount(ArtJvmtiEvent event) const { in GetInternalEventRefcount()