49 #include <libunwind.h> 57 hpcrun_state_t *
state = hpcrun_get_state();
63 state->treenode =
NULL;
64 state->bufstk = state->bufend;
65 state = hpcrun_check_for_new_epoch(state);
68 unw_get_context(&ctx);
69 unw_init_local(&frame, &ctx);
72 hpcrun_sample_callstack_from_frame(state, amount, &frame);
88 hpcrun_driver_thread_init(hpcrun_state_t *
state)
94 hpcrun_driver_thread_fini(hpcrun_state_t *
state)
void hpcrun_record_sample(unsigned long amount)
void hpcrun_driver_fini(hpcrun_state_t *state, hpcrun_options_t *options)
void hpcrun_driver_init(hpcrun_state_t *state, hpcrun_options_t *options)
void hpcrun_driver_resume(hpcrun_state_t *state)
void hpcrun_driver_suspend(hpcrun_state_t *state)