15 thread->unwind_libunwind_ops = ops;
26 if (thread->addr_space) {
27 pr_debug(
"unwind: thread map already set, dso=%s\n",
44 if (!strcmp(arch,
"x86")) {
47 }
else if (!strcmp(arch,
"arm64") || !strcmp(arch,
"arm")) {
53 pr_err(
"unwind: target platform=%s is not supported\n", arch);
59 err = thread->unwind_libunwind_ops->prepare_access(thread);
61 *initialized = err ? false :
true;
67 if (thread->unwind_libunwind_ops)
68 thread->unwind_libunwind_ops->flush_access(thread);
73 if (thread->unwind_libunwind_ops)
74 thread->unwind_libunwind_ops->finish_access(thread);
81 if (thread->unwind_libunwind_ops)
82 return thread->unwind_libunwind_ops->get_entries(cb, arg, thread, data, max_stack);
enum dso_type dso__type(struct dso *dso, struct machine *machine)
struct unwind_libunwind_ops __weak * arm64_unwind_libunwind_ops
void unwind__finish_access(struct thread *thread)
int(* unwind_entry_cb_t)(struct unwind_entry *entry, void *arg)
static void unwind__register_ops(struct thread *thread, struct unwind_libunwind_ops *ops)
struct unwind_libunwind_ops __weak * local_unwind_libunwind_ops
#define pr_debug(fmt,...)
int unwind__get_entries(unwind_entry_cb_t cb, void *arg, struct thread *thread, struct perf_sample *data, int max_stack)
const char * perf_env__arch(struct perf_env *env)
int unwind__prepare_access(struct thread *thread, struct map *map, bool *initialized)
void unwind__flush_access(struct thread *thread)
struct unwind_libunwind_ops __weak * x86_32_unwind_libunwind_ops