]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - tools/perf/util/unwind.h
perf callchain: Add mask into struct regs_dump
[mirror_ubuntu-zesty-kernel.git] / tools / perf / util / unwind.h
CommitLineData
71ad0f5e
JO
1#ifndef __UNWIND_H
2#define __UNWIND_H
3
4#include "types.h"
5#include "event.h"
6#include "symbol.h"
7
8struct unwind_entry {
9 struct map *map;
10 struct symbol *sym;
11 u64 ip;
12};
13
14typedef int (*unwind_entry_cb_t)(struct unwind_entry *entry, void *arg);
15
89fe808a 16#ifdef HAVE_LIBUNWIND_SUPPORT
71ad0f5e
JO
17int unwind__get_entries(unwind_entry_cb_t cb, void *arg,
18 struct machine *machine,
19 struct thread *thread,
37676af1 20 struct perf_sample *data, int max_stack);
71ad0f5e
JO
21int unwind__arch_reg_id(int regnum);
22#else
23static inline int
1d037ca1
IT
24unwind__get_entries(unwind_entry_cb_t cb __maybe_unused,
25 void *arg __maybe_unused,
26 struct machine *machine __maybe_unused,
27 struct thread *thread __maybe_unused,
37676af1
ACM
28 struct perf_sample *data __maybe_unused,
29 int max_stack __maybe_unused)
71ad0f5e
JO
30{
31 return 0;
32}
89fe808a 33#endif /* HAVE_LIBUNWIND_SUPPORT */
71ad0f5e 34#endif /* __UNWIND_H */