From 70a8d1d4656bc678ddada5e56263c9cb4423a623 Mon Sep 17 00:00:00 2001 From: Shell Date: Sat, 21 Oct 2023 20:14:45 +0800 Subject: [kservice] improve backtrace service in kernel (#8144) Signed-off-by: Shell --- include/rtthread.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/rtthread.h') diff --git a/include/rtthread.h b/include/rtthread.h index 610115134c..f693b4f856 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -19,6 +19,7 @@ * 2022-06-04 Meco Man remove strnlen * 2023-05-20 Bernard add rtatomic.h header file to included files. * 2023-06-30 ChuShicheng move debug check from the rtdebug.h + * 2023-10-16 Shell Support a new backtrace framework */ #ifndef __RT_THREAD_H__ @@ -658,6 +659,11 @@ void rt_components_board_init(void); #else int rt_kprintf(const char *fmt, ...); void rt_kputs(const char *str); + +rt_err_t rt_backtrace(void); +rt_err_t rt_backtrace_thread(rt_thread_t thread); +rt_err_t rt_backtrace_frame(struct rt_hw_backtrace_frame *frame); + #endif /* RT_USING_CONSOLE */ int rt_vsprintf(char *dest, const char *format, va_list arg_ptr); -- cgit v1.3.1