blob: 41b545d03239d6ef29b912685739a31a166cb2cb [file] [log] [blame]
jeffhao725a9572012-11-13 18:20:12 -08001/*
2 * Copyright (C) 2011 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Brian Carlstromfc0e3212013-07-17 14:40:12 -070017#ifndef ART_RUNTIME_INSTRUMENTATION_H_
18#define ART_RUNTIME_INSTRUMENTATION_H_
jeffhao725a9572012-11-13 18:20:12 -080019
Mathieu Chartiercbb2d202013-11-14 17:45:16 -080020#include "atomic_integer.h"
Elliott Hughes76160052012-12-12 16:31:20 -080021#include "base/macros.h"
Ian Rogers62d6c772013-02-27 08:32:07 -080022#include "locks.h"
Ian Rogers2dd0e2c2013-01-24 12:42:14 -080023
24#include <stdint.h>
Sebastien Hertz138dbfc2013-12-04 18:15:25 +010025#include <set>
Ian Rogers62d6c772013-02-27 08:32:07 -080026#include <list>
jeffhao725a9572012-11-13 18:20:12 -080027
28namespace art {
Ian Rogers2dd0e2c2013-01-24 12:42:14 -080029namespace mirror {
Brian Carlstromea46f952013-07-30 01:26:50 -070030 class ArtMethod;
31 class Class;
32 class Object;
33 class Throwable;
Ian Rogers62d6c772013-02-27 08:32:07 -080034} // namespace mirror
35union JValue;
jeffhao725a9572012-11-13 18:20:12 -080036class Thread;
Ian Rogers62d6c772013-02-27 08:32:07 -080037class ThrowLocation;
jeffhao725a9572012-11-13 18:20:12 -080038
Ian Rogers62d6c772013-02-27 08:32:07 -080039namespace instrumentation {
jeffhao725a9572012-11-13 18:20:12 -080040
Sebastien Hertzee1997a2013-09-19 14:47:09 +020041// Interpreter handler tables.
42enum InterpreterHandlerTable {
43 kMainHandlerTable = 0, // Main handler table: no suspend check, no instrumentation.
44 kAlternativeHandlerTable = 1, // Alternative handler table: suspend check and/or instrumentation
45 // enabled.
46 kNumHandlerTables
47};
48
Ian Rogers62d6c772013-02-27 08:32:07 -080049// Instrumentation event listener API. Registered listeners will get the appropriate call back for
50// the events they are listening for. The call backs supply the thread, method and dex_pc the event
51// occurred upon. The thread may or may not be Thread::Current().
52struct InstrumentationListener {
53 InstrumentationListener() {}
54 virtual ~InstrumentationListener() {}
55
56 // Call-back for when a method is entered.
57 virtual void MethodEntered(Thread* thread, mirror::Object* this_object,
Brian Carlstromea46f952013-07-30 01:26:50 -070058 const mirror::ArtMethod* method,
Ian Rogers62d6c772013-02-27 08:32:07 -080059 uint32_t dex_pc) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) = 0;
60
61 // Call-back for when a method is exited.
62 // TODO: its likely passing the return value would be useful, however, we may need to get and
63 // parse the shorty to determine what kind of register holds the result.
64 virtual void MethodExited(Thread* thread, mirror::Object* this_object,
Brian Carlstromea46f952013-07-30 01:26:50 -070065 const mirror::ArtMethod* method, uint32_t dex_pc,
Ian Rogers62d6c772013-02-27 08:32:07 -080066 const JValue& return_value)
67 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) = 0;
68
69 // Call-back for when a method is popped due to an exception throw. A method will either cause a
70 // MethodExited call-back or a MethodUnwind call-back when its activation is removed.
Sebastien Hertz51db44a2013-11-19 10:00:29 +010071 virtual void MethodUnwind(Thread* thread, mirror::Object* this_object,
72 const mirror::ArtMethod* method, uint32_t dex_pc)
73 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) = 0;
Ian Rogers62d6c772013-02-27 08:32:07 -080074
75 // Call-back for when the dex pc moves in a method.
76 virtual void DexPcMoved(Thread* thread, mirror::Object* this_object,
Brian Carlstromea46f952013-07-30 01:26:50 -070077 const mirror::ArtMethod* method, uint32_t new_dex_pc)
Ian Rogers62d6c772013-02-27 08:32:07 -080078 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) = 0;
79
80 // Call-back when an exception is caught.
81 virtual void ExceptionCaught(Thread* thread, const ThrowLocation& throw_location,
Brian Carlstromea46f952013-07-30 01:26:50 -070082 mirror::ArtMethod* catch_method, uint32_t catch_dex_pc,
Ian Rogers62d6c772013-02-27 08:32:07 -080083 mirror::Throwable* exception_object)
84 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) = 0;
jeffhao725a9572012-11-13 18:20:12 -080085};
86
Ian Rogers62d6c772013-02-27 08:32:07 -080087// Instrumentation is a catch-all for when extra information is required from the runtime. The
88// typical use for instrumentation is for profiling and debugging. Instrumentation may add stubs
89// to method entry and exit, it may also force execution to be switched to the interpreter and
90// trigger deoptimization.
jeffhao725a9572012-11-13 18:20:12 -080091class Instrumentation {
92 public:
Ian Rogers62d6c772013-02-27 08:32:07 -080093 enum InstrumentationEvent {
94 kMethodEntered = 1,
95 kMethodExited = 2,
96 kMethodUnwind = 4,
97 kDexPcMoved = 8,
98 kExceptionCaught = 16
99 };
jeffhao725a9572012-11-13 18:20:12 -0800100
Ian Rogers62d6c772013-02-27 08:32:07 -0800101 Instrumentation() :
102 instrumentation_stubs_installed_(false), entry_exit_stubs_installed_(false),
103 interpreter_stubs_installed_(false),
104 interpret_only_(false), forced_interpret_only_(false),
105 have_method_entry_listeners_(false), have_method_exit_listeners_(false),
106 have_method_unwind_listeners_(false), have_dex_pc_listeners_(false),
Sebastien Hertzee1997a2013-09-19 14:47:09 +0200107 have_exception_caught_listeners_(false),
Ian Rogersfa824272013-11-05 16:12:57 -0800108 interpreter_handler_table_(kMainHandlerTable),
109 quick_alloc_entry_points_instrumentation_counter_(0) {}
jeffhao725a9572012-11-13 18:20:12 -0800110
Ian Rogers62d6c772013-02-27 08:32:07 -0800111 // Add a listener to be notified of the masked together sent of instrumentation events. This
112 // suspend the runtime to install stubs. You are expected to hold the mutator lock as a proxy
113 // for saying you should have suspended all threads (installing stubs while threads are running
114 // will break).
115 void AddListener(InstrumentationListener* listener, uint32_t events)
116 EXCLUSIVE_LOCKS_REQUIRED(Locks::mutator_lock_)
117 LOCKS_EXCLUDED(Locks::thread_list_lock_, Locks::classlinker_classes_lock_);
jeffhao725a9572012-11-13 18:20:12 -0800118
Ian Rogers62d6c772013-02-27 08:32:07 -0800119 // Removes a listener possibly removing instrumentation stubs.
120 void RemoveListener(InstrumentationListener* listener, uint32_t events)
121 EXCLUSIVE_LOCKS_REQUIRED(Locks::mutator_lock_)
122 LOCKS_EXCLUDED(Locks::thread_list_lock_, Locks::classlinker_classes_lock_);
jeffhao725a9572012-11-13 18:20:12 -0800123
Sebastien Hertz138dbfc2013-12-04 18:15:25 +0100124 // Deoptimization.
125 void EnableDeoptimization() EXCLUSIVE_LOCKS_REQUIRED(Locks::mutator_lock_);
126 void DisableDeoptimization() EXCLUSIVE_LOCKS_REQUIRED(Locks::mutator_lock_);
127 bool IsDeoptimizationEnabled() const SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
128
129 // Executes everything with interpreter.
130 void DeoptimizeEverything()
131 EXCLUSIVE_LOCKS_REQUIRED(Locks::mutator_lock_)
132 LOCKS_EXCLUDED(Locks::thread_list_lock_, Locks::classlinker_classes_lock_);
133
134 // Executes everything with compiled code (or interpreter if there is no code).
135 void UndeoptimizeEverything()
136 EXCLUSIVE_LOCKS_REQUIRED(Locks::mutator_lock_)
137 LOCKS_EXCLUDED(Locks::thread_list_lock_, Locks::classlinker_classes_lock_);
138
139 // Deoptimize a method by forcing its execution with the interpreter. Nevertheless, a static
140 // method (except a class initializer) set to the resolution trampoline will be deoptimized only
141 // once its declaring class is initialized.
142 void Deoptimize(mirror::ArtMethod* method)
143 LOCKS_EXCLUDED(Locks::thread_list_lock_)
144 EXCLUSIVE_LOCKS_REQUIRED(Locks::mutator_lock_);
145
146 // Undeoptimze the method by restoring its entrypoints. Nevertheless, a static method
147 // (except a class initializer) set to the resolution trampoline will be updated only once its
148 // declaring class is initialized.
149 void Undeoptimize(mirror::ArtMethod* method)
150 LOCKS_EXCLUDED(Locks::thread_list_lock_)
151 EXCLUSIVE_LOCKS_REQUIRED(Locks::mutator_lock_);
152
153 bool IsDeoptimized(mirror::ArtMethod* method) const;
154
155 // Enable method tracing by installing instrumentation entry/exit stubs.
156 void EnableMethodTracing()
157 EXCLUSIVE_LOCKS_REQUIRED(Locks::mutator_lock_)
158 LOCKS_EXCLUDED(Locks::thread_list_lock_, Locks::classlinker_classes_lock_);
159
160 // Disable method tracing by uninstalling instrumentation entry/exit stubs.
161 void DisableMethodTracing()
162 EXCLUSIVE_LOCKS_REQUIRED(Locks::mutator_lock_)
163 LOCKS_EXCLUDED(Locks::thread_list_lock_, Locks::classlinker_classes_lock_);
164
Sebastien Hertzee1997a2013-09-19 14:47:09 +0200165 InterpreterHandlerTable GetInterpreterHandlerTable() const {
166 return interpreter_handler_table_;
167 }
168
Ian Rogersfa824272013-11-05 16:12:57 -0800169 void InstrumentQuickAllocEntryPoints() LOCKS_EXCLUDED(Locks::thread_list_lock_);
170 void UninstrumentQuickAllocEntryPoints() LOCKS_EXCLUDED(Locks::thread_list_lock_);
Mathieu Chartiercbb2d202013-11-14 17:45:16 -0800171 void ResetQuickAllocEntryPoints();
Ian Rogersfa824272013-11-05 16:12:57 -0800172
Ian Rogers62d6c772013-02-27 08:32:07 -0800173 // Update the code of a method respecting any installed stubs.
Sebastien Hertz138dbfc2013-12-04 18:15:25 +0100174 void UpdateMethodsCode(mirror::ArtMethod* method, const void* code) const
175 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
Ian Rogers62d6c772013-02-27 08:32:07 -0800176
177 // Get the quick code for the given method. More efficient than asking the class linker as it
178 // will short-cut to GetCode if instrumentation and static method resolution stubs aren't
179 // installed.
Brian Carlstromea46f952013-07-30 01:26:50 -0700180 const void* GetQuickCodeFor(const mirror::ArtMethod* method) const
Ian Rogers62d6c772013-02-27 08:32:07 -0800181 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
182
183 void ForceInterpretOnly() {
184 interpret_only_ = true;
185 forced_interpret_only_ = true;
186 }
187
Brian Carlstromea46f952013-07-30 01:26:50 -0700188 // Called by ArtMethod::Invoke to determine dispatch mechanism.
Ian Rogers62d6c772013-02-27 08:32:07 -0800189 bool InterpretOnly() const {
190 return interpret_only_;
191 }
192
193 bool ShouldPortableCodeDeoptimize() const {
194 return instrumentation_stubs_installed_;
195 }
196
197 bool AreExitStubsInstalled() const {
198 return instrumentation_stubs_installed_;
199 }
200
Sebastien Hertz74109f62013-06-07 17:40:09 +0200201 bool HasMethodEntryListeners() const {
202 return have_method_entry_listeners_;
203 }
204
205 bool HasMethodExitListeners() const {
206 return have_method_exit_listeners_;
207 }
208
209 bool HasDexPcListeners() const {
210 return have_dex_pc_listeners_;
211 }
212
Sebastien Hertzee1997a2013-09-19 14:47:09 +0200213 bool IsActive() const {
214 return have_dex_pc_listeners_ || have_method_entry_listeners_ || have_method_exit_listeners_ ||
215 have_exception_caught_listeners_ || have_method_unwind_listeners_;
216 }
217
Ian Rogers62d6c772013-02-27 08:32:07 -0800218 // Inform listeners that a method has been entered. A dex PC is provided as we may install
219 // listeners into executing code and get method enter events for methods already on the stack.
220 void MethodEnterEvent(Thread* thread, mirror::Object* this_object,
Brian Carlstromea46f952013-07-30 01:26:50 -0700221 const mirror::ArtMethod* method, uint32_t dex_pc) const
Ian Rogers62d6c772013-02-27 08:32:07 -0800222 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) {
Sebastien Hertz74109f62013-06-07 17:40:09 +0200223 if (UNLIKELY(HasMethodEntryListeners())) {
Ian Rogers62d6c772013-02-27 08:32:07 -0800224 MethodEnterEventImpl(thread, this_object, method, dex_pc);
225 }
226 }
227
228 // Inform listeners that a method has been exited.
229 void MethodExitEvent(Thread* thread, mirror::Object* this_object,
Brian Carlstromea46f952013-07-30 01:26:50 -0700230 const mirror::ArtMethod* method, uint32_t dex_pc,
Ian Rogers62d6c772013-02-27 08:32:07 -0800231 const JValue& return_value) const
232 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) {
Sebastien Hertz74109f62013-06-07 17:40:09 +0200233 if (UNLIKELY(HasMethodExitListeners())) {
Ian Rogers62d6c772013-02-27 08:32:07 -0800234 MethodExitEventImpl(thread, this_object, method, dex_pc, return_value);
235 }
236 }
237
238 // Inform listeners that a method has been exited due to an exception.
239 void MethodUnwindEvent(Thread* thread, mirror::Object* this_object,
Brian Carlstromea46f952013-07-30 01:26:50 -0700240 const mirror::ArtMethod* method, uint32_t dex_pc) const
Ian Rogers62d6c772013-02-27 08:32:07 -0800241 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
242
243 // Inform listeners that the dex pc has moved (only supported by the interpreter).
244 void DexPcMovedEvent(Thread* thread, mirror::Object* this_object,
Brian Carlstromea46f952013-07-30 01:26:50 -0700245 const mirror::ArtMethod* method, uint32_t dex_pc) const
Ian Rogers62d6c772013-02-27 08:32:07 -0800246 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) {
Sebastien Hertz74109f62013-06-07 17:40:09 +0200247 if (UNLIKELY(HasDexPcListeners())) {
Ian Rogers62d6c772013-02-27 08:32:07 -0800248 DexPcMovedEventImpl(thread, this_object, method, dex_pc);
249 }
250 }
251
252 // Inform listeners that an exception was caught.
253 void ExceptionCaughtEvent(Thread* thread, const ThrowLocation& throw_location,
Brian Carlstromea46f952013-07-30 01:26:50 -0700254 mirror::ArtMethod* catch_method, uint32_t catch_dex_pc,
Sebastien Hertz947ff082013-09-17 14:10:13 +0200255 mirror::Throwable* exception_object) const
Ian Rogers62d6c772013-02-27 08:32:07 -0800256 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
257
258 // Called when an instrumented method is entered. The intended link register (lr) is saved so
259 // that returning causes a branch to the method exit stub. Generates method enter events.
260 void PushInstrumentationStackFrame(Thread* self, mirror::Object* this_object,
Brian Carlstromea46f952013-07-30 01:26:50 -0700261 mirror::ArtMethod* method, uintptr_t lr,
Jeff Hao9a916d32013-06-27 18:45:37 -0700262 bool interpreter_entry)
Ian Rogers62d6c772013-02-27 08:32:07 -0800263 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
264
265 // Called when an instrumented method is exited. Removes the pushed instrumentation frame
266 // returning the intended link register. Generates method exit events.
267 uint64_t PopInstrumentationStackFrame(Thread* self, uintptr_t* return_pc, uint64_t gpr_result,
268 uint64_t fpr_result)
269 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
270
271 // Pops an instrumentation frame from the current thread and generate an unwind event.
272 void PopMethodForUnwind(Thread* self, bool is_deoptimization) const
273 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
274
275 // Call back for configure stubs.
276 bool InstallStubsForClass(mirror::Class* klass) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
jeffhao725a9572012-11-13 18:20:12 -0800277
Sebastien Hertz138dbfc2013-12-04 18:15:25 +0100278 void InstallStubsForMethod(mirror::ArtMethod* method)
279 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
280
jeffhao725a9572012-11-13 18:20:12 -0800281 private:
Ian Rogers62d6c772013-02-27 08:32:07 -0800282 // Does the job of installing or removing instrumentation code within methods.
283 void ConfigureStubs(bool require_entry_exit_stubs, bool require_interpreter)
284 EXCLUSIVE_LOCKS_REQUIRED(Locks::mutator_lock_)
285 LOCKS_EXCLUDED(Locks::thread_list_lock_, Locks::classlinker_classes_lock_);
jeffhao725a9572012-11-13 18:20:12 -0800286
Sebastien Hertzee1997a2013-09-19 14:47:09 +0200287 void UpdateInterpreterHandlerTable() {
288 interpreter_handler_table_ = IsActive() ? kAlternativeHandlerTable : kMainHandlerTable;
289 }
290
Ian Rogers62d6c772013-02-27 08:32:07 -0800291 void MethodEnterEventImpl(Thread* thread, mirror::Object* this_object,
Brian Carlstromea46f952013-07-30 01:26:50 -0700292 const mirror::ArtMethod* method, uint32_t dex_pc) const
Ian Rogers62d6c772013-02-27 08:32:07 -0800293 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
294 void MethodExitEventImpl(Thread* thread, mirror::Object* this_object,
Brian Carlstromea46f952013-07-30 01:26:50 -0700295 const mirror::ArtMethod* method,
Ian Rogers62d6c772013-02-27 08:32:07 -0800296 uint32_t dex_pc, const JValue& return_value) const
297 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
298 void DexPcMovedEventImpl(Thread* thread, mirror::Object* this_object,
Brian Carlstromea46f952013-07-30 01:26:50 -0700299 const mirror::ArtMethod* method, uint32_t dex_pc) const
Ian Rogers62d6c772013-02-27 08:32:07 -0800300 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
jeffhao725a9572012-11-13 18:20:12 -0800301
Brian Carlstromea46f952013-07-30 01:26:50 -0700302 // Have we hijacked ArtMethod::code_ so that it calls instrumentation/interpreter code?
Ian Rogers62d6c772013-02-27 08:32:07 -0800303 bool instrumentation_stubs_installed_;
304
Brian Carlstromea46f952013-07-30 01:26:50 -0700305 // Have we hijacked ArtMethod::code_ to reference the enter/exit stubs?
Ian Rogers62d6c772013-02-27 08:32:07 -0800306 bool entry_exit_stubs_installed_;
307
Brian Carlstromea46f952013-07-30 01:26:50 -0700308 // Have we hijacked ArtMethod::code_ to reference the enter interpreter stub?
Ian Rogers62d6c772013-02-27 08:32:07 -0800309 bool interpreter_stubs_installed_;
310
311 // Do we need the fidelity of events that we only get from running within the interpreter?
312 bool interpret_only_;
313
314 // Did the runtime request we only run in the interpreter? ie -Xint mode.
315 bool forced_interpret_only_;
316
317 // Do we have any listeners for method entry events? Short-cut to avoid taking the
318 // instrumentation_lock_.
319 bool have_method_entry_listeners_;
320
321 // Do we have any listeners for method exit events? Short-cut to avoid taking the
322 // instrumentation_lock_.
323 bool have_method_exit_listeners_;
324
325 // Do we have any listeners for method unwind events? Short-cut to avoid taking the
326 // instrumentation_lock_.
327 bool have_method_unwind_listeners_;
328
329 // Do we have any listeners for dex move events? Short-cut to avoid taking the
330 // instrumentation_lock_.
331 bool have_dex_pc_listeners_;
332
333 // Do we have any exception caught listeners? Short-cut to avoid taking the instrumentation_lock_.
334 bool have_exception_caught_listeners_;
335
336 // The event listeners, written to with the mutator_lock_ exclusively held.
337 std::list<InstrumentationListener*> method_entry_listeners_ GUARDED_BY(Locks::mutator_lock_);
338 std::list<InstrumentationListener*> method_exit_listeners_ GUARDED_BY(Locks::mutator_lock_);
339 std::list<InstrumentationListener*> method_unwind_listeners_ GUARDED_BY(Locks::mutator_lock_);
340 std::list<InstrumentationListener*> dex_pc_listeners_ GUARDED_BY(Locks::mutator_lock_);
341 std::list<InstrumentationListener*> exception_caught_listeners_ GUARDED_BY(Locks::mutator_lock_);
jeffhao725a9572012-11-13 18:20:12 -0800342
Sebastien Hertz138dbfc2013-12-04 18:15:25 +0100343 // The set of methods being deoptimized (by the debugger) which must be executed with interpreter
344 // only.
345 // TODO we need to visit these methods as roots.
346 std::set<mirror::ArtMethod*> deoptimized_methods_;
347
Ian Rogersfa824272013-11-05 16:12:57 -0800348 // Current interpreter handler table. This is updated each time the thread state flags are
349 // modified.
Sebastien Hertzee1997a2013-09-19 14:47:09 +0200350 InterpreterHandlerTable interpreter_handler_table_;
351
Ian Rogersfa824272013-11-05 16:12:57 -0800352 // Greater than 0 if quick alloc entry points instrumented.
353 // TODO: The access and changes to this is racy and should be guarded by a lock.
Mathieu Chartiercbb2d202013-11-14 17:45:16 -0800354 AtomicInteger quick_alloc_entry_points_instrumentation_counter_;
Ian Rogersfa824272013-11-05 16:12:57 -0800355
jeffhao725a9572012-11-13 18:20:12 -0800356 DISALLOW_COPY_AND_ASSIGN(Instrumentation);
357};
358
Ian Rogers62d6c772013-02-27 08:32:07 -0800359// An element in the instrumentation side stack maintained in art::Thread.
360struct InstrumentationStackFrame {
Brian Carlstromea46f952013-07-30 01:26:50 -0700361 InstrumentationStackFrame(mirror::Object* this_object, mirror::ArtMethod* method,
Jeff Hao9a916d32013-06-27 18:45:37 -0700362 uintptr_t return_pc, size_t frame_id, bool interpreter_entry)
363 : this_object_(this_object), method_(method), return_pc_(return_pc), frame_id_(frame_id),
364 interpreter_entry_(interpreter_entry) {
Ian Rogers62d6c772013-02-27 08:32:07 -0800365 }
366
367 std::string Dump() const SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
368
369 mirror::Object* this_object_;
Brian Carlstromea46f952013-07-30 01:26:50 -0700370 mirror::ArtMethod* method_;
Sebastien Hertz138dbfc2013-12-04 18:15:25 +0100371 uintptr_t return_pc_;
372 size_t frame_id_;
373 bool interpreter_entry_;
Ian Rogers62d6c772013-02-27 08:32:07 -0800374};
375
376} // namespace instrumentation
jeffhao725a9572012-11-13 18:20:12 -0800377} // namespace art
378
Brian Carlstromfc0e3212013-07-17 14:40:12 -0700379#endif // ART_RUNTIME_INSTRUMENTATION_H_