Re: [PATCH v12 01/14] unwind_user: Add user space unwinding API

From
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Date
2025-07-04 17:58:26
Also in
bpf, lkml
Reply to
Steven Rostedt, 2025-07-01
On 2025-06-30 20:53, Steven Rostedt wrote:
[...]
quoted hunk ↗ jump to hunk
diff --git a/include/linux/unwind_user.h b/include/linux/unwind_user.h
new file mode 100644
index 000000000000..aa7923c1384f
--- /dev/null
+++ b/include/linux/unwind_user.h
[...]
quoted hunk ↗ jump to hunk
+
+int unwind_user(struct unwind_stacktrace *trace, unsigned int max_entries);
+
+#define for_each_user_frame(state) \
+	for (unwind_user_start((state)); !(state)->done; unwind_user_next((state)))
You can remove the () around "state" when it's already surrounded by parentheses:

+#define for_each_user_frame(state) \
+	for (unwind_user_start(state); !(state)->done; unwind_user_next(state))

Thanks,

Mathieu

-- 
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com
Thread (51 messages) 51 messages, 6 authors, last reply 2025-07-07
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