Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178332592
D62453.1796510944.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
834 B
Referenced Files
None
Subscribers
None
D62453.1796510944.diff
View Options
diff --git a/sys/cddl/dev/dtrace/powerpc/dtrace_isa.c b/sys/cddl/dev/dtrace/powerpc/dtrace_isa.c
--- a/sys/cddl/dev/dtrace/powerpc/dtrace_isa.c
+++ b/sys/cddl/dev/dtrace/powerpc/dtrace_isa.c
@@ -153,7 +153,12 @@
aframes++;
- sp = (uintptr_t)__builtin_frame_address(0);
+ /*
+ * A function saves its return address in its caller's frame, so the
+ * one into dtrace_probe() is looked for there. Nothing is saved in
+ * the frame of this function.
+ */
+ sp = *(uintptr_t *)__builtin_frame_address(0);
while (depth < pcstack_limit) {
if (sp <= osp)
@@ -510,8 +515,11 @@
uintptr_t osp, sp;
vm_offset_t callpc;
+ aframes++;
+
osp = PAGE_SIZE;
- sp = (uintptr_t)__builtin_frame_address(0);
+ /* See dtrace_getpcstack(). */
+ sp = *(uintptr_t *)__builtin_frame_address(0);
for(;;) {
if (sp <= osp)
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 5, 10:49 PM (7 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42241324
Default Alt Text
D62453.1796510944.diff (834 B)
Attached To
Mode
D62453: dtrace/powerpc: leave the stack walker's own frame out
Attached
Detach File
Event Timeline