Re: [PATCH v10 04/14] unwind_user/deferred: Add unwind_deferred_trace()

From
Peter Zijlstra <peterz@infradead.org>
Date
2025-06-18 14:01:18
Also in
bpf, lkml
Reply to
Steven Rostedt, 2025-06-11
On Tue, Jun 10, 2025 at 08:54:25PM -0400, Steven Rostedt wrote:
+#define UNWIND_MAX_ENTRIES 512
The reason this is 512 is so that you end up with a whole page below?
quoted hunk ↗ jump to hunk
+int unwind_deferred_trace(struct unwind_stacktrace *trace)
+{
+	struct unwind_task_info *info = &current->unwind_info;
+
+	/* Should always be called from faultable context */
+	might_fault();
+
+	if (current->flags & PF_EXITING)
+		return -EINVAL;
+
+	if (!info->entries) {
+		info->entries = kmalloc_array(UNWIND_MAX_ENTRIES, sizeof(long),
+					      GFP_KERNEL);
  
Thread (79 messages) 79 messages, 6 authors, last reply 2025-06-24
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