Thread (79 messages) 79 messages, 6 authors, 2025-06-24

Re: [PATCH v10 06/14] unwind_user/deferred: Add deferred unwinding interface

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2025-06-18 15:37:04
Also in: bpf, lkml

On Wed, 18 Jun 2025 16:20:00 +0200
Peter Zijlstra [off-list ref] wrote:
quoted
The timestamp is passed to the caller on request, and when the stacktrace is
generated upon returning to user space, it call the requester's callback
with the timestamp as well as the stacktrace.  
This whole story hinges on there being a high resolution time-stamp
available... Good thing we killed x86 !TSC support when we did. You sure
there's no other architectures you're interested in that lack a high res
time source?

What about two CPUs managing to request an unwind at exactly the same
time?
It's mapped to a task. As long as each timestamp is unique for a task it
should be fine. As the trace can record the current->pid along with the
timestamp to map to the unique user space stack trace.

As for resolution, as long as there can't be two system calls back to back
within the same time stamp. Otherwise, yeah, we have an issue.

-- Steve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help