Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160767647
D15359.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
802 B
Referenced Files
None
Subscribers
None
D15359.diff
View Options
Index: head/sys/cddl/dev/dtrace/aarch64/dtrace_isa.c
===================================================================
--- head/sys/cddl/dev/dtrace/aarch64/dtrace_isa.c
+++ head/sys/cddl/dev/dtrace/aarch64/dtrace_isa.c
@@ -70,7 +70,7 @@
{
struct unwind_state state;
int scp_offset;
- register_t sp;
+ register_t sp, fp;
int depth;
depth = 0;
@@ -88,11 +88,15 @@
state.pc = (uint64_t)dtrace_getpcstack;
while (depth < pcstack_limit) {
- if (unwind_frame(&state))
- break;
-
if (!INKERNEL(state.pc) || !INKERNEL(state.fp))
break;
+
+ fp = state.fp;
+ state.sp = fp + 0x10;
+ /* FP to previous frame (X29) */
+ state.fp = *(register_t *)(fp);
+ /* LR (X30) */
+ state.pc = *(register_t *)(fp + 8) - 4;
/*
* NB: Unlike some other architectures, we don't need to
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jun 28, 3:23 PM (3 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34437681
Default Alt Text
D15359.diff (802 B)
Attached To
Mode
D15359: DTrace aarch64: Avoid calling unwind_frame() in the probe context
Attached
Detach File
Event Timeline
Log In to Comment