Home
last modified time | relevance | path

Searched refs:caps (Results 1 – 25 of 25) sorted by relevance

/art/test/1922-owned-monitors-info/
Downed_monitors.cc84 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/
Dframe_pop_helper.cc87 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()
Dredefinition_helper.cc420 jvmtiCapabilities caps; in Java_art_Redefinition_doCommonClassRetransformation() local
421 jvmtiError caps_err = jvmti_env->GetCapabilities(&caps); in Java_art_Redefinition_doCommonClassRetransformation()
431 if (caps.can_retransform_classes != 1) { in Java_art_Redefinition_doCommonClassRetransformation()
444 if (caps.can_retransform_classes != 1) { in Java_art_Redefinition_doCommonClassRetransformation()
480 jvmtiCapabilities caps = GetStandardCapabilities(); in SetupCommonRedefine() local
481 caps.can_retransform_classes = 0; in SetupCommonRedefine()
482 caps.can_retransform_any_class = 0; in SetupCommonRedefine()
483 jvmti_env->AddCapabilities(&caps); in SetupCommonRedefine()
505 jvmtiCapabilities caps = GetStandardCapabilities(); in SetupCommonTransform() local
506 caps.can_retransform_classes = 0; in SetupCommonTransform()
[all …]
Dexceptions_helper.cc122 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()
Dsuspend_event_helper.cc285 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 …]
Djvmti_helper.cc100 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()
Dmonitors_helper.cc157 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()
Dlocals_helper.cc38 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()
Dtrace_helper.cc470 jvmtiCapabilities caps; in Java_art_Trace_nativeEnableFramePopEvents() local
471 memset(&caps, 0, sizeof(caps)); in Java_art_Trace_nativeEnableFramePopEvents()
472 caps.can_pop_frame = 1; in Java_art_Trace_nativeEnableFramePopEvents()
473 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->AddCapabilities(&caps))) { in Java_art_Trace_nativeEnableFramePopEvents()
/art/openjdkjvmti/
Devents-inl.h664 const jvmtiCapabilities& caps, in NeedsEventUpdate() argument
668 return (added && caps.can_access_local_variables == 1) || in NeedsEventUpdate()
669 caps.can_generate_breakpoint_events == 1 || in NeedsEventUpdate()
670 caps.can_pop_frame == 1 || in NeedsEventUpdate()
671 caps.can_force_early_return == 1 || in NeedsEventUpdate()
672 (caps.can_retransform_classes == 1 && in NeedsEventUpdate()
678 const jvmtiCapabilities& caps, in HandleChangedCapabilities() argument
680 if (UNLIKELY(NeedsEventUpdate(env, caps, added))) { in HandleChangedCapabilities()
681 env->event_masks.HandleChangedCapabilities(caps, added); in HandleChangedCapabilities()
682 if (caps.can_retransform_classes == 1) { in HandleChangedCapabilities()
[all …]
Devents.cc197 void EventMasks::HandleChangedCapabilities(const jvmtiCapabilities& caps, bool caps_added) { in HandleChangedCapabilities() argument
198 if (UNLIKELY(caps.can_retransform_classes == 1)) { in HandleChangedCapabilities()
1356 jvmtiCapabilities caps = env->capabilities; in HasAssociatedCapability() local
1359 return caps.can_generate_breakpoint_events == 1; in HasAssociatedCapability()
1363 return caps.can_generate_compiled_method_load_events == 1; in HasAssociatedCapability()
1367 return caps.can_generate_exception_events == 1; in HasAssociatedCapability()
1370 return caps.can_generate_field_access_events == 1; in HasAssociatedCapability()
1373 return caps.can_generate_field_modification_events == 1; in HasAssociatedCapability()
1376 return caps.can_generate_frame_pop_events == 1; in HasAssociatedCapability()
1380 return caps.can_generate_garbage_collection_events == 1; in HasAssociatedCapability()
[all …]
Devents.h215 void HandleChangedCapabilities(const jvmtiCapabilities& caps, bool caps_added);
284 const jvmtiCapabilities& caps,
354 const jvmtiCapabilities& caps,
/art/test/1962-multi-thread-events/
Dmulti_thread_events.cc60 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/
Dti_alloc_sample.cc369 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/tools/jvmti-agents/ti-fast/
Dtifast.cc48 static void AddCapsForEvent(jvmtiEvent event, jvmtiCapabilities* caps) { in AddCapsForEvent() argument
52 caps->cap_name = 1; \ in AddCapsForEvent()
620 jvmtiCapabilities caps{}; in GetAllAvailableEvents() local
621 jvmti->GetPotentialCapabilities(&caps); in GetAllAvailableEvents()
622 uint8_t caps_bytes[sizeof(caps)]; in GetAllAvailableEvents()
623 memcpy(caps_bytes, &caps, sizeof(caps)); in GetAllAvailableEvents()
630 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/
Dbreakpoint_logger.cc386 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/1959-redefine-object-instrument/
Dfake_redef_object.cc103 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/titrace/
Dtitrace.cc268 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/test/980-redefine-object/
Dredef_object.cc112 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/libarttools/
Dart_exec_test.cc58 cap_value_t caps[]{value}; in SetCap() local
59 CHECK_EQ(cap_set_flag(cap.Get(), flag, /*ncap=*/1, caps, CAP_SET), 0); in SetCap()
/art/tools/jvmti-agents/simple-profile/
Dsimple_profile.cc465 jvmtiCapabilities caps {}; in AgentStart() local
466 caps.can_generate_method_entry_events = JNI_TRUE; in AgentStart()
467 caps.can_tag_objects = JNI_TRUE; in AgentStart()
468 error = jvmti->AddCapabilities(&caps); in AgentStart()
/art/tools/jvmti-agents/field-null-percent/
Dfieldnull.cc177 jvmtiCapabilities caps { .can_tag_objects = 1, }; in AgentStart() local
178 CHECK_JVMTI(jvmti->AddCapabilities(&caps)); in AgentStart()
/art/tools/jvmti-agents/simple-force-redefine/
Dforceredefine.cc280 jvmtiCapabilities caps{ in AgentStart() local
283 if (jvmti->AddCapabilities(&caps) != JVMTI_ERROR_NONE) { in AgentStart()
/art/tools/jvmti-agents/field-counts/
Dfieldcount.cc233 jvmtiCapabilities caps{ in AgentStart() local
236 CHECK_JVMTI(jvmti->AddCapabilities(&caps)); in AgentStart()
/art/test/ti-stress/
Dstress.cc778 jvmtiCapabilities caps = { in Agent_OnLoad() local
821 jvmti->AddCapabilities(&caps); in Agent_OnLoad()