Home
last modified time | relevance | path

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

12

/art/runtime/
Dinstrumentation_test.cc38 namespace instrumentation { namespace
40 class TestInstrumentationListener final : public instrumentation::InstrumentationListener {
70 instrumentation::OptionalFrame frame ATTRIBUTE_UNUSED, in MethodExited()
80 instrumentation::OptionalFrame frame ATTRIBUTE_UNUSED, in MethodExited()
196 instrumentation::Instrumentation* instr = Runtime::Current()->GetInstrumentation(); in CheckConfigureStubs()
223 instrumentation::Instrumentation* instr = Runtime::Current()->GetInstrumentation(); in TestEvent()
272 instrumentation::Instrumentation* instrumentation = runtime->GetInstrumentation(); in DeoptimizeMethod() local
279 instrumentation->EnableDeoptimization(); in DeoptimizeMethod()
281 instrumentation->Deoptimize(method); in DeoptimizeMethod()
288 instrumentation::Instrumentation* instrumentation = runtime->GetInstrumentation(); in UndeoptimizeMethod() local
[all …]
Dcommon_dex_operations.h102 instrumentation::Instrumentation* instrumentation = Runtime::Current()->GetInstrumentation(); in DoFieldGetCommon() local
103 if (UNLIKELY(instrumentation->HasFieldReadListeners())) { in DoFieldGetCommon()
113 instrumentation->FieldReadEvent(self, in DoFieldGetCommon()
163 instrumentation::Instrumentation* instrumentation = Runtime::Current()->GetInstrumentation(); in DoFieldPutCommon() local
164 if (UNLIKELY(instrumentation->HasFieldWriteListeners())) { in DoFieldPutCommon()
174 instrumentation->FieldWriteEvent(self, in DoFieldPutCommon()
Dtrace.cc246 LogMethodTraceEvent(thread, *rit, instrumentation::Instrumentation::kMethodEntered, in CompareAndUpdateStackTrace()
261 LogMethodTraceEvent(thread, *old_it, instrumentation::Instrumentation::kMethodExited, in CompareAndUpdateStackTrace()
266 LogMethodTraceEvent(thread, *rit, instrumentation::Instrumentation::kMethodEntered, in CompareAndUpdateStackTrace()
425instrumentation::Instrumentation::kMethodEntered | in Start()
426 instrumentation::Instrumentation::kMethodExited | in Start()
427 instrumentation::Instrumentation::kMethodUnwind); in Start()
483 the_trace, instrumentation::Instrumentation::kMethodEntered | in StopTracing()
484 instrumentation::Instrumentation::kMethodExited | in StopTracing()
485 instrumentation::Instrumentation::kMethodUnwind); in StopTracing()
742 LogMethodTraceEvent(thread, method, instrumentation::Instrumentation::kMethodEntered, in MethodEntered()
[all …]
Dinstrumentation.cc56 namespace instrumentation { namespace
95 explicit InstallStubsClassVisitor(Instrumentation* instrumentation) in InstallStubsClassVisitor() argument
96 : instrumentation_(instrumentation) {} in InstallStubsClassVisitor()
113 std::map<uintptr_t, instrumentation::InstrumentationStackFrame>* stack = in ~InstrumentationStackPopper()
122 std::map<uintptr_t, instrumentation::InstrumentationStackFrame>* stack = in PopFramesTo()
423 Instrumentation* instrumentation = reinterpret_cast<Instrumentation*>(arg); in InstrumentationInstallStack() local
427 thread, context.get(), instrumentation_exit_pc, instrumentation->current_force_deopt_id_); in InstrumentationInstallStack()
431 if (instrumentation->ShouldNotifyMethodEnterExitEvents()) { in InstrumentationInstallStack()
440 instrumentation->MethodEnterEvent(thread, (*ssi).this_object_, (*ssi).method_, 0); in InstrumentationInstallStack()
446 instrumentation->MethodEnterEvent( in InstrumentationInstallStack()
[all …]
Dtrace.h107 class Trace final : public instrumentation::InstrumentationListener {
188 instrumentation::OptionalFrame frame,
266 instrumentation::Instrumentation::InstrumentationEvent event,
Dquick_exception_handler.cc148 instrumentation::InstrumentationStackPopper popper(self_); in FindCatch()
631 instrumentation::Instrumentation* instrumentation = Runtime::Current()->GetInstrumentation(); in UpdateInstrumentationStack() local
632 return_pc = instrumentation->PopFramesForDeoptimization( in UpdateInstrumentationStack()
Druntime.h517 const instrumentation::Instrumentation* GetInstrumentation() const { in GetInstrumentation()
521 instrumentation::Instrumentation* GetInstrumentation() { in GetInstrumentation()
1155 instrumentation::Instrumentation instrumentation_;
Dthread.h61 namespace instrumentation {
1078 std::map<uintptr_t, instrumentation::InstrumentationStackFrame>* GetInstrumentationStack() in GetInstrumentationStack()
1766 std::map<uintptr_t, instrumentation::InstrumentationStackFrame>* instrumentation_stack; in PACKED()
/art/test/687-deopt/
Dinfo.txt1 Regression test for instrumentation deopt, which previously did not expect a
2 quickened instruction when returning from instrumentation stub.
/art/test/1959-redefine-object-instrument/
Dinfo.txt1 Regression test for bug related to interaction between instrumentation
4 Redefining a class does not update the instrumentation stack of a thread.
5 This is generally fine because the method pointer in the instrumentation
/art/tools/tracefast-plugin/
Dtracefast.cc42 class Tracer final : public art::instrumentation::InstrumentationListener {
56 art::instrumentation::OptionalFrame frame ATTRIBUTE_UNUSED, in MethodExited()
64 art::instrumentation::OptionalFrame frame ATTRIBUTE_UNUSED, in MethodExited()
137 art::instrumentation::Instrumentation::kMethodEntered | in StartTracing()
138 art::instrumentation::Instrumentation::kMethodExited | in StartTracing()
139 art::instrumentation::Instrumentation::kMethodUnwind); in StartTracing()
/art/runtime/interpreter/
Dinterpreter_switch_impl-inl.h62 instrumentation, in CheckForceReturn()
79 if (!MoveToExceptionHandler(self, shadow_frame, skip_event ? nullptr : instrumentation)) { in HandlePendingException()
132 if (UNLIKELY(instrumentation->HasDexPcListeners())) { in Preamble()
140 instrumentation, in Preamble()
155 if (UNLIKELY(instrumentation->HasBranchListeners())) { in BranchInstrumentation()
156 instrumentation->Branch(self, shadow_frame.GetMethod(), dex_pc, offset); in BranchInstrumentation()
205 const instrumentation::Instrumentation* instrumentation, in DoDexPcMoveEvent() argument
208 DCHECK(instrumentation->HasDexPcListeners()); in DoDexPcMoveEvent()
215 instrumentation->DexPcMovedEvent(self, in DoDexPcMoveEvent()
238 if (UNLIKELY(NeedsMethodExitEvent(instrumentation) && in HandleReturn()
[all …]
Dinterpreter_common.h144 const instrumentation::Instrumentation* instrumentation,
152 NeedsMethodExitEvent(const instrumentation::Instrumentation* ins) in NeedsMethodExitEvent()
201 const instrumentation::Instrumentation* instrumentation, in PerformNonStandardReturn() argument
220 if (UNLIKELY(NeedsMethodExitEvent(instrumentation))) { in PerformNonStandardReturn()
222 self, instrumentation, frame, h_thiz.Get(), frame.GetMethod(), dex_pc, result); in PerformNonStandardReturn()
588 instrumentation::Instrumentation* instrumentation = Runtime::Current()->GetInstrumentation(); in DoIGetQuick() local
589 if (UNLIKELY(instrumentation->HasFieldReadListeners())) { in DoIGetQuick()
598 instrumentation->FieldReadEvent(self, in DoIGetQuick()
729 instrumentation::Instrumentation* instrumentation = Runtime::Current()->GetInstrumentation(); in DoIPutQuick() local
730 if (UNLIKELY(instrumentation->HasFieldWriteListeners())) { in DoIPutQuick()
[all …]
Dinterpreter_common.cc97 const instrumentation::Instrumentation* instrumentation, in SendMethodExitEvents() argument
110 if (UNLIKELY(instrumentation->HasMethodExitListeners() && !frame.GetSkipMethodExitEvents())) { in SendMethodExitEvents()
112 instrumentation->MethodExitEvent( in SendMethodExitEvents()
113 self, h_thiz.Get(), method, dex_pc, instrumentation::OptionalFrame{ frame }, result); in SendMethodExitEvents()
116 if (UNLIKELY(frame.NeedsNotifyPop() && instrumentation->HasWatchedFramePopListeners())) { in SendMethodExitEvents()
118 instrumentation->WatchedFramePopped(self, frame); in SendMethodExitEvents()
130 const instrumentation::Instrumentation* instrumentation,
139 const instrumentation::Instrumentation* instrumentation,
155 const instrumentation::Instrumentation* instrumentation) { in MoveToExceptionHandler() argument
159 if (instrumentation != nullptr && in MoveToExceptionHandler()
[all …]
Dinterpreter.cc269 instrumentation::Instrumentation* instrumentation = Runtime::Current()->GetInstrumentation(); in Execute() local
272 if (UNLIKELY(instrumentation->HasMethodEntryListeners())) { in Execute()
273 instrumentation->MethodEnterEvent(self, in Execute()
286 instrumentation, in Execute()
293 instrumentation->MethodUnwindEvent(self, in Execute()
304 instrumentation, in Execute()
558 const instrumentation::Instrumentation* const instrumentation = in EnterInterpreterFromDeoptimize() local
561 self, *shadow_frame, instrumentation) ? shadow_frame->GetDexPC() : dex::kDexNoIndex; in EnterInterpreterFromDeoptimize()
/art/openjdkjvmti/
Ddeopt_manager.cc262 auto instrumentation = art::Runtime::Current()->GetInstrumentation(); in AddMethodBreakpoint() local
263 if (instrumentation->IsForcedInterpretOnly()) { in AddMethodBreakpoint()
298 auto instrumentation = art::Runtime::Current()->GetInstrumentation(); in RemoveMethodBreakpoint() local
299 if (UNLIKELY(instrumentation->IsForcedInterpretOnly())) { in RemoveMethodBreakpoint()
476 art::instrumentation::Instrumentation* instrumentation = in AddDeoptimizationRequester() local
479 instrumentation->EnableDeoptimization(); in AddDeoptimizationRequester()
481 instrumentation->EnableSingleThreadDeopt(); in AddDeoptimizationRequester()
Devents.cc596 class JvmtiMethodTraceListener final : public art::instrumentation::InstrumentationListener {
649 art::instrumentation::OptionalFrame frame, in MethodExited()
704 art::instrumentation::OptionalFrame frame, in MethodExited()
1077 return art::instrumentation::Instrumentation::kMethodEntered; in GetInstrumentationEventsFor()
1089 return art::instrumentation::Instrumentation::kMethodExited | in GetInstrumentationEventsFor()
1090 art::instrumentation::Instrumentation::kMethodUnwind; in GetInstrumentationEventsFor()
1098 return art::instrumentation::Instrumentation::kFieldWritten; in GetInstrumentationEventsFor()
1100 return art::instrumentation::Instrumentation::kFieldRead; in GetInstrumentationEventsFor()
1110 return art::instrumentation::Instrumentation::kDexPcMoved; in GetInstrumentationEventsFor()
1118 return art::instrumentation::Instrumentation::kWatchedFramePop; in GetInstrumentationEventsFor()
[all …]
/art/test/572-checker-array-get-regression/
Dinfo.txt2 instrumentation of array loads with a large constant index, where we
/art/test/573-checker-checkcast-regression/
Dinfo.txt2 instrumentation of CheckCasts, where we used to use an
/art/dex2oat/
DAndroid.bp206 instrumentation: true,
268 // Additional cflags just for dex2oat during PGO instrumentation
270 // Ignore frame-size increase resulting from instrumentation.
/art/runtime/entrypoints/quick/
Dquick_trampoline_entrypoints.cc857 instrumentation::Instrumentation* instr = Runtime::Current()->GetInstrumentation(); in artQuickProxyInvokeHandler()
1037 instrumentation::Instrumentation* instrumentation = Runtime::Current()->GetInstrumentation(); in artInstrumentationMethodEntryFromCode() local
1042 if (instrumentation->IsDeoptimized(method)) { in artInstrumentationMethodEntryFromCode()
1047 result = instrumentation->GetCodeForInvoke(method); in artInstrumentationMethodEntryFromCode()
1071 instrumentation->PushInstrumentationStackFrame(self, in artInstrumentationMethodEntryFromCode()
1109 instrumentation::Instrumentation* instrumentation = Runtime::Current()->GetInstrumentation(); in artInstrumentationMethodExitFromCode() local
1110 TwoWordReturn return_or_deoptimize_pc = instrumentation->PopInstrumentationStackFrame( in artInstrumentationMethodExitFromCode()
/art/runtime/jni/
Djni_internal.cc109 instrumentation::Instrumentation* instrumentation = Runtime::Current()->GetInstrumentation(); in NotifySetObjectField() local
110 if (UNLIKELY(instrumentation->HasFieldWriteListeners())) { in NotifySetObjectField()
124 instrumentation->FieldWriteEvent(self, in NotifySetObjectField()
136 instrumentation::Instrumentation* instrumentation = Runtime::Current()->GetInstrumentation(); in NotifySetPrimitiveField() local
137 if (UNLIKELY(instrumentation->HasFieldWriteListeners())) { in NotifySetPrimitiveField()
149 instrumentation->FieldWriteEvent(self, in NotifySetPrimitiveField()
160 instrumentation::Instrumentation* instrumentation = Runtime::Current()->GetInstrumentation(); in NotifyGetField() local
161 if (UNLIKELY(instrumentation->HasFieldReadListeners())) { in NotifyGetField()
173 instrumentation->FieldReadEvent(self, in NotifyGetField()
/art/runtime/interpreter/mterp/
Dmterp.cc536 const instrumentation::Instrumentation* const instrumentation = in MterpHandleException() local
538 return MoveToExceptionHandler(self, *shadow_frame, instrumentation) ? 1u : 0u; in MterpHandleException()
/art/runtime/jit/
Djit.cc315 instrumentation::Instrumentation* instrumentation = Runtime::Current()->GetInstrumentation(); in CompileMethod() local
316 if (instrumentation->AreAllMethodsDeoptimized() || instrumentation->IsDeoptimized(method)) { in CompileMethod()
/art/test/common/
Druntime_state.cc54 instrumentation::Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter; in GetJitIfEnabled()

12