Bug 10056 - epilogue-area (pre-return) probes
Summary: epilogue-area (pre-return) probes
Status: NEW
Alias: None
Product: systemtap
Classification: Unclassified
Component: translator (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-10 17:54 UTC by Frank Ch. Eigler
Modified: 2013-02-21 18:37 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Ch. Eigler 2009-04-10 17:54:14 UTC
Investigate whether gcc provides enough information
to place kprobes into the function-exit path, so that
last-gasp locals might be accessible, sort of like a
"kpreretprobe".
Comment 1 Frank Ch. Eigler 2011-06-03 18:12:34 UTC
See http://gcc.gnu.org/PR49167
Comment 2 Josh Stone 2011-06-03 18:59:59 UTC
As I noted on the gcc PR, getting the imminent $return value from a tail-call converted function may not be easy or even possible.
Comment 3 Frank Ch. Eigler 2012-12-11 20:38:53 UTC
It could help to have gcc emit DW_LNS_set_epilogue_begin markers, but there appears to be no gcc bugzilla entry requesting that. (Plus accessing the return value at that moment could be tricky as it may not yet reside in the ABI-fixed value.)
Comment 4 Josh Stone 2013-02-21 18:37:47 UTC
(In reply to comment #1)
> See http://gcc.gnu.org/0

The link in this comment looks corrupted, but I think this is the right one:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49167