54 #include <sys/types.h> 78 hpcrun_backtrace_lite(
void** buffer,
int size, ucontext_t* context)
86 if ( !(size > 0 && buffer && context) ) {
96 while (my_size < size) {
103 buffer[my_size] = ip;
120 test_backtrace_lite(ucontext_t* context)
122 const int bufsz = 100;
125 int sz = hpcrun_backtrace_lite(buffer, bufsz, context);
127 for (
int i = 0; i < sz; ++i) {
128 TMSG(UNW,
"backtrace_lite: pc=%p", buffer[i]);
step_state hpcrun_unw_step(hpcrun_unw_cursor_t *c)
int hpcrun_unw_get_ip_reg(hpcrun_unw_cursor_t *cursor, void **val)
void hpcrun_unw_init_cursor(hpcrun_unw_cursor_t *cursor, void *context)