]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Fix resolving addresses of relocation records for SDT probe points. The
authorKris Van Hees <kris.van.hees@oracle.com>
Fri, 11 Nov 2011 07:34:04 +0000 (02:34 -0500)
committerKris Van Hees <kris.van.hees@oracle.com>
Fri, 11 Nov 2011 07:34:04 +0000 (02:34 -0500)
commit9523c6714e1b45d6ddde96b79bc2a8d39cb3193c
tree6bdc68ae493aa76b347ea3b5805d19763a0b40fc
parent4e20e9b9d2a207b0eb35e1689147de1e06cfe1f5
Fix resolving addresses of relocation records for SDT probe points.  The
addresses were being calculated based on the wrong starting point (_stext
whereas it ought to be _text), and the base was not taken into account.
Fixed the writing of NOPs in the location of the probe point calls, since
the existing case was causing kernel paging faults.  Made the add_nops()
function in alternative.c non-static so it can be used in sdt_register.
Use add_nops() to select the most appropriate NOP sequence for replacing the
probe point call, and write the NOPs using text_poke().

Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
dtrace/sdt_dev.c