1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef __PERF_UNWIND_LIBDW_H 2 #ifndef __PERF_UNWIND_LIBDW_H 3 #define __PERF_UNWIND_LIBDW_H 3 #define __PERF_UNWIND_LIBDW_H 4 4 5 #include <elfutils/libdwfl.h> 5 #include <elfutils/libdwfl.h> 6 #include "unwind.h" 6 #include "unwind.h" 7 7 8 struct machine; 8 struct machine; 9 struct perf_sample; 9 struct perf_sample; 10 struct thread; 10 struct thread; 11 11 12 bool libdw__arch_set_initial_registers(Dwfl_Th 12 bool libdw__arch_set_initial_registers(Dwfl_Thread *thread, void *arg); 13 13 14 struct unwind_info { 14 struct unwind_info { 15 Dwfl *dwfl; 15 Dwfl *dwfl; 16 struct perf_sample *sample; 16 struct perf_sample *sample; 17 struct machine *machine; 17 struct machine *machine; 18 struct thread *thread; 18 struct thread *thread; 19 unwind_entry_cb_t cb; 19 unwind_entry_cb_t cb; 20 void *arg; 20 void *arg; 21 int max_stack; 21 int max_stack; 22 int idx; 22 int idx; 23 bool best_effort; 23 bool best_effort; 24 struct unwind_entry entries[]; 24 struct unwind_entry entries[]; 25 }; 25 }; 26 26 27 #endif /* __PERF_UNWIND_LIBDW_H */ 27 #endif /* __PERF_UNWIND_LIBDW_H */ 28 28
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.