blob: 0cbd2650e280e52635f7e0d9058467d633239c5f [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Jiri Olsa5ea84152014-02-19 16:52:57 +01002#ifndef __PERF_UNWIND_LIBDW_H
3#define __PERF_UNWIND_LIBDW_H
4
5#include <elfutils/libdwfl.h>
Jiri Olsa5ea84152014-02-19 16:52:57 +01006#include "unwind.h"
7
Arnaldo Carvalho de Meloe7ff8922017-04-19 21:34:35 -03008struct machine;
9struct perf_sample;
10struct thread;
11
Jiri Olsa5ea84152014-02-19 16:52:57 +010012bool libdw__arch_set_initial_registers(Dwfl_Thread *thread, void *arg);
13
14struct unwind_info {
15 Dwfl *dwfl;
16 struct perf_sample *sample;
17 struct machine *machine;
18 struct thread *thread;
19 unwind_entry_cb_t cb;
20 void *arg;
21 int max_stack;
Jiri Olsa8bd508b2015-11-19 14:01:19 +010022 int idx;
23 struct unwind_entry entries[];
Jiri Olsa5ea84152014-02-19 16:52:57 +010024};
25
26#endif /* __PERF_UNWIND_LIBDW_H */