/art/test/1922-owned-monitors-info/ |
D | owned_monitors.cc | 84 jvmtiCapabilities caps; in Java_art_Test1922_setupTest() local 85 memset(&caps, 0, sizeof(caps)); in Java_art_Test1922_setupTest() 86 caps.can_get_owned_monitor_info = 1; in Java_art_Test1922_setupTest() 87 caps.can_get_owned_monitor_stack_depth_info = 1; in Java_art_Test1922_setupTest() 88 JvmtiErrorToException(env, jvmti_env, jvmti_env->AddCapabilities(&caps)); in Java_art_Test1922_setupTest()
|
/art/test/ti-agent/ |
D | frame_pop_helper.cc | 87 jvmtiCapabilities caps; in Java_art_FramePop_enableFramePopEvent() local 88 memset(&caps, 0, sizeof(caps)); in Java_art_FramePop_enableFramePopEvent() 89 caps.can_generate_frame_pop_events = 1; in Java_art_FramePop_enableFramePopEvent() 90 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->AddCapabilities(&caps))) { in Java_art_FramePop_enableFramePopEvent()
|
D | redefinition_helper.cc | 406 jvmtiCapabilities caps; in Java_art_Redefinition_doCommonClassRetransformation() local 407 jvmtiError caps_err = jvmti_env->GetCapabilities(&caps); in Java_art_Redefinition_doCommonClassRetransformation() 417 if (caps.can_retransform_classes != 1) { in Java_art_Redefinition_doCommonClassRetransformation() 430 if (caps.can_retransform_classes != 1) { in Java_art_Redefinition_doCommonClassRetransformation() 466 jvmtiCapabilities caps = GetStandardCapabilities(); in SetupCommonRedefine() local 467 caps.can_retransform_classes = 0; in SetupCommonRedefine() 468 caps.can_retransform_any_class = 0; in SetupCommonRedefine() 469 jvmti_env->AddCapabilities(&caps); in SetupCommonRedefine() 491 jvmtiCapabilities caps = GetStandardCapabilities(); in SetupCommonTransform() local 492 caps.can_retransform_classes = 0; in SetupCommonTransform() [all …]
|
D | exceptions_helper.cc | 122 jvmtiCapabilities caps; in Java_art_Exceptions_setupExceptionTracing() local 123 memset(&caps, 0, sizeof(caps)); in Java_art_Exceptions_setupExceptionTracing() 124 caps.can_generate_exception_events = 1; in Java_art_Exceptions_setupExceptionTracing() 125 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->AddCapabilities(&caps))) { in Java_art_Exceptions_setupExceptionTracing()
|
D | jvmti_helper.cc | 100 jvmtiCapabilities caps = GetStandardCapabilities(); in SetStandardCapabilities() local 101 CheckJvmtiError(env, env->AddCapabilities(&caps)); in SetStandardCapabilities() 105 jvmtiCapabilities caps; in SetAllCapabilities() local 106 CheckJvmtiError(env, env->GetPotentialCapabilities(&caps)); in SetAllCapabilities() 107 CheckJvmtiError(env, env->AddCapabilities(&caps)); in SetAllCapabilities()
|
D | suspend_event_helper.cc | 285 jvmtiCapabilities caps; in Java_art_SuspendEvents_setupTest() local 286 memset(&caps, 0, sizeof(caps)); in Java_art_SuspendEvents_setupTest() 288 caps.can_pop_frame = 1; in Java_art_SuspendEvents_setupTest() 289 caps.can_force_early_return = 1; in Java_art_SuspendEvents_setupTest() 290 caps.can_generate_single_step_events = 1; in Java_art_SuspendEvents_setupTest() 291 caps.can_generate_breakpoint_events = 1; in Java_art_SuspendEvents_setupTest() 292 caps.can_suspend = 1; in Java_art_SuspendEvents_setupTest() 293 caps.can_generate_method_entry_events = 1; in Java_art_SuspendEvents_setupTest() 294 caps.can_generate_method_exit_events = 1; in Java_art_SuspendEvents_setupTest() 295 caps.can_generate_monitor_events = 1; in Java_art_SuspendEvents_setupTest() [all …]
|
D | monitors_helper.cc | 157 jvmtiCapabilities caps; in Java_art_Monitors_setupMonitorEvents() local 158 memset(&caps, 0, sizeof(caps)); in Java_art_Monitors_setupMonitorEvents() 159 caps.can_generate_monitor_events = 1; in Java_art_Monitors_setupMonitorEvents() 160 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->AddCapabilities(&caps))) { in Java_art_Monitors_setupMonitorEvents()
|
D | locals_helper.cc | 38 jvmtiCapabilities caps; in Java_art_Locals_EnableLocalVariableAccess() local 39 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->GetCapabilities(&caps))) { in Java_art_Locals_EnableLocalVariableAccess() 42 caps.can_access_local_variables = 1; in Java_art_Locals_EnableLocalVariableAccess() 43 JvmtiErrorToException(env, jvmti_env, jvmti_env->AddCapabilities(&caps)); in Java_art_Locals_EnableLocalVariableAccess()
|
/art/openjdkjvmti/ |
D | events-inl.h | 663 const jvmtiCapabilities& caps, in NeedsEventUpdate() argument 667 return (added && caps.can_access_local_variables == 1) || in NeedsEventUpdate() 668 caps.can_generate_breakpoint_events == 1 || in NeedsEventUpdate() 669 caps.can_pop_frame == 1 || in NeedsEventUpdate() 670 caps.can_force_early_return == 1 || in NeedsEventUpdate() 671 (caps.can_retransform_classes == 1 && in NeedsEventUpdate() 677 const jvmtiCapabilities& caps, in HandleChangedCapabilities() argument 679 if (UNLIKELY(NeedsEventUpdate(env, caps, added))) { in HandleChangedCapabilities() 680 env->event_masks.HandleChangedCapabilities(caps, added); in HandleChangedCapabilities() 681 if (caps.can_retransform_classes == 1) { in HandleChangedCapabilities() [all …]
|
D | events.cc | 198 void EventMasks::HandleChangedCapabilities(const jvmtiCapabilities& caps, bool caps_added) { in HandleChangedCapabilities() argument 199 if (UNLIKELY(caps.can_retransform_classes == 1)) { in HandleChangedCapabilities() 1372 jvmtiCapabilities caps = env->capabilities; in HasAssociatedCapability() local 1375 return caps.can_generate_breakpoint_events == 1; in HasAssociatedCapability() 1379 return caps.can_generate_compiled_method_load_events == 1; in HasAssociatedCapability() 1383 return caps.can_generate_exception_events == 1; in HasAssociatedCapability() 1386 return caps.can_generate_field_access_events == 1; in HasAssociatedCapability() 1389 return caps.can_generate_field_modification_events == 1; in HasAssociatedCapability() 1392 return caps.can_generate_frame_pop_events == 1; in HasAssociatedCapability() 1396 return caps.can_generate_garbage_collection_events == 1; in HasAssociatedCapability() [all …]
|
D | events.h | 217 void HandleChangedCapabilities(const jvmtiCapabilities& caps, bool caps_added); 286 const jvmtiCapabilities& caps, 356 const jvmtiCapabilities& caps,
|
/art/test/1962-multi-thread-events/ |
D | multi_thread_events.cc | 60 jvmtiCapabilities caps{ in Java_art_Test1962_setupTest() local 63 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->AddCapabilities(&caps))) { in Java_art_Test1962_setupTest()
|
/art/tools/jvmti-agents/ti-alloc-sample/ |
D | ti_alloc_sample.cc | 369 jvmtiCapabilities caps{}; in SetupCapabilities() local 370 caps.can_generate_vm_object_alloc_events = 1; in SetupCapabilities() 371 caps.can_get_line_numbers = 1; in SetupCapabilities() 372 caps.can_get_source_file_name = 1; in SetupCapabilities() 373 caps.can_get_source_debug_extension = 1; in SetupCapabilities() 374 return jvmti->AddCapabilities(&caps); in SetupCapabilities()
|
/art/test/1959-redefine-object-instrument/ |
D | fake_redef_object.cc | 103 jvmtiCapabilities caps {.can_retransform_classes = 1}; in Java_Main_forceRedefine() local 104 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->AddCapabilities(&caps))) { in Java_Main_forceRedefine()
|
/art/tools/jvmti-agents/ti-fast/ |
D | tifast.cc | 47 static void AddCapsForEvent(jvmtiEvent event, jvmtiCapabilities* caps) { in AddCapsForEvent() argument 51 caps->cap_name = 1; \ in AddCapsForEvent() 618 jvmtiCapabilities caps{}; in GetAllAvailableEvents() local 619 jvmti->GetPotentialCapabilities(&caps); in GetAllAvailableEvents() 620 uint8_t caps_bytes[sizeof(caps)]; in GetAllAvailableEvents() 621 memcpy(caps_bytes, &caps, sizeof(caps)); in GetAllAvailableEvents() 628 for (size_t i = 0; i < sizeof(caps); i++) { in GetAllAvailableEvents() 689 jvmtiCapabilities caps{}; in AgentStart() local 691 AddCapsForEvent(e, &caps); in AgentStart() 694 caps.can_get_line_numbers = 1; in AgentStart() [all …]
|
/art/tools/jvmti-agents/breakpoint-logger/ |
D | breakpoint_logger.cc | 386 jvmtiCapabilities caps{}; in AgentStart() local 387 caps.can_generate_breakpoint_events = JNI_TRUE; in AgentStart() 388 caps.can_get_line_numbers = JNI_TRUE; in AgentStart() 389 caps.can_get_source_file_name = JNI_TRUE; in AgentStart() 390 caps.can_get_source_debug_extension = JNI_TRUE; in AgentStart() 391 error = jvmti->AddCapabilities(&caps); in AgentStart()
|
/art/test/980-redefine-object/ |
D | redef_object.cc | 112 jvmtiCapabilities caps {.can_retransform_classes = 1}; in Java_Main_addMemoryTrackingCall() local 113 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->AddCapabilities(&caps))) { in Java_Main_addMemoryTrackingCall()
|
/art/tools/jvmti-agents/titrace/ |
D | titrace.cc | 268 jvmtiCapabilities caps = {}; in Agent_OnLoad() local 269 caps.can_generate_single_step_events = 1; in Agent_OnLoad() 270 caps.can_get_bytecodes = 1; in Agent_OnLoad() 272 error = jvmti->AddCapabilities(&caps); in Agent_OnLoad()
|
/art/tools/jvmti-agents/field-null-percent/ |
D | fieldnull.cc | 177 jvmtiCapabilities caps { .can_tag_objects = 1, }; in AgentStart() local 178 CHECK_JVMTI(jvmti->AddCapabilities(&caps)); in AgentStart()
|
/art/tools/jvmti-agents/simple-force-redefine/ |
D | forceredefine.cc | 282 jvmtiCapabilities caps{ in AgentStart() local 285 if (jvmti->AddCapabilities(&caps) != JVMTI_ERROR_NONE) { in AgentStart()
|
/art/tools/jvmti-agents/field-counts/ |
D | fieldcount.cc | 233 jvmtiCapabilities caps{ in AgentStart() local 236 CHECK_JVMTI(jvmti->AddCapabilities(&caps)); in AgentStart()
|
/art/test/ti-stress/ |
D | stress.cc | 779 jvmtiCapabilities caps = { in Agent_OnLoad() local 822 jvmti->AddCapabilities(&caps); in Agent_OnLoad()
|