Re: [PATCH v7 01/17] unwind_user: Add user space unwinding API

From
Ingo Molnar <mingo@kernel.org>
Date
2025-05-04 09:30:37
Also in
lkml
Reply to
Steven Rostedt, 2025-05-02
* Steven Rostedt [off-list ref] wrote:
quoted hunk ↗ jump to hunk
+++ b/include/linux/unwind_user_types.h
@@ -0,0 +1,31 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _LINUX_UNWIND_USER_TYPES_H
+#define _LINUX_UNWIND_USER_TYPES_H
+
+#include <linux/types.h>
+
+enum unwind_user_type {
+	UNWIND_USER_TYPE_NONE,
+};
+
+struct unwind_stacktrace {
+	unsigned int	nr;
+	unsigned long	*entries;
+};
+
+struct unwind_user_frame {
+	s32 cfa_off;
+	s32 ra_off;
+	s32 fp_off;
+	bool use_fp;
+};
+
+struct unwind_user_state {
+	unsigned long ip;
+	unsigned long sp;
+	unsigned long fp;
+	enum unwind_user_type type;
+	bool done;
+};
Will any of these types be visible to tooling via ABIs?

Thanks,

	Ingo
Thread (26 messages) 26 messages, 3 authors, last reply 2025-05-09
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help