2014-02-19 23:52:57 +08:00
|
|
|
#ifndef __PERF_UNWIND_LIBDW_H
|
|
|
|
#define __PERF_UNWIND_LIBDW_H
|
|
|
|
|
|
|
|
#include <elfutils/libdwfl.h>
|
|
|
|
#include "unwind.h"
|
|
|
|
|
2017-04-20 08:34:35 +08:00
|
|
|
struct machine;
|
|
|
|
struct perf_sample;
|
|
|
|
struct thread;
|
|
|
|
|
2014-02-19 23:52:57 +08:00
|
|
|
bool libdw__arch_set_initial_registers(Dwfl_Thread *thread, void *arg);
|
|
|
|
|
|
|
|
struct unwind_info {
|
|
|
|
Dwfl *dwfl;
|
|
|
|
struct perf_sample *sample;
|
|
|
|
struct machine *machine;
|
|
|
|
struct thread *thread;
|
|
|
|
unwind_entry_cb_t cb;
|
|
|
|
void *arg;
|
|
|
|
int max_stack;
|
2015-11-19 21:01:19 +08:00
|
|
|
int idx;
|
|
|
|
struct unwind_entry entries[];
|
2014-02-19 23:52:57 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __PERF_UNWIND_LIBDW_H */
|