unwind-libdw.h 553 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __PERF_UNWIND_LIBDW_H
  3. #define __PERF_UNWIND_LIBDW_H
  4. #include <elfutils/libdwfl.h>
  5. #include "unwind.h"
  6. struct machine;
  7. struct perf_sample;
  8. struct thread;
  9. bool libdw__arch_set_initial_registers(Dwfl_Thread *thread, void *arg);
  10. struct unwind_info {
  11. Dwfl *dwfl;
  12. struct perf_sample *sample;
  13. struct machine *machine;
  14. struct thread *thread;
  15. unwind_entry_cb_t cb;
  16. void *arg;
  17. int max_stack;
  18. int idx;
  19. struct unwind_entry entries[];
  20. };
  21. #endif /* __PERF_UNWIND_LIBDW_H */