| 86 | |
| 87 | |
| 88 | static inline int hasNativeStack(EventType event_type) { |
| 89 | const int events_with_native_stack = |
| 90 | (1 << PERF_SAMPLE) | |
| 91 | (1 << EXECUTION_SAMPLE) | |
| 92 | (1 << WALL_CLOCK_SAMPLE) | |
| 93 | (1 << NATIVE_LOCK_SAMPLE) | |
| 94 | (1 << MALLOC_SAMPLE) | |
| 95 | (1 << ALLOC_SAMPLE) | |
| 96 | (1 << ALLOC_OUTSIDE_TLAB); |
| 97 | return (1 << event_type) & events_with_native_stack; |
| 98 | } |
| 99 | |
| 100 | static inline int makeFrame(ASGCT_CallFrame* frames, jint type, jmethodID id) { |
| 101 | frames[0].bci = type; |