xref: /openbmc/linux/tools/perf/util/unwind-libdw.h (revision ef2b56df)
1 #ifndef __PERF_UNWIND_LIBDW_H
2 #define __PERF_UNWIND_LIBDW_H
3 
4 #include <elfutils/libdwfl.h>
5 #include "unwind.h"
6 
7 struct machine;
8 struct perf_sample;
9 struct thread;
10 
11 bool libdw__arch_set_initial_registers(Dwfl_Thread *thread, void *arg);
12 
13 struct unwind_info {
14 	Dwfl			*dwfl;
15 	struct perf_sample      *sample;
16 	struct machine          *machine;
17 	struct thread           *thread;
18 	unwind_entry_cb_t	cb;
19 	void			*arg;
20 	int			max_stack;
21 	int			idx;
22 	struct unwind_entry	entries[];
23 };
24 
25 #endif /* __PERF_UNWIND_LIBDW_H */
26