Bug 14298 - Add static probes to runtime linker
Summary: Add static probes to runtime linker
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: dynamic-link (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: 2.17
Assignee: Gary Benson
URL: http://sourceware.org/ml/libc-alpha/2...
Keywords:
Depends on:
Blocks: 2328
  Show dependency treegraph
 
Reported: 2012-06-26 15:16 UTC by Gary Benson
Modified: 2014-06-13 14:57 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments
Patch to add static probes to the runtime linker (1.89 KB, patch)
2012-06-26 15:16 UTC, Gary Benson
Details | Diff
Second version of patch (3.26 KB, patch)
2012-06-26 15:22 UTC, Gary Benson
Details | Diff
Third version of patch (3.54 KB, patch)
2012-07-23 13:40 UTC, Gary Benson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Benson 2012-06-26 15:16:09 UTC
Created attachment 6484 [details]
Patch to add static probes to the runtime linker

Bug to track the addition of static probes to the runtime linker for 2.17.
Comment 1 Gary Benson 2012-06-26 15:22:45 UTC
Created attachment 6485 [details]
Second version of patch

Updated patch as per http://sourceware.org/ml/libc-alpha/2012-06/msg00704.html
Comment 2 Gary Benson 2012-07-23 13:40:10 UTC
Created attachment 6548 [details]
Third version of patch

Updated patch as per http://sourceware.org/ml/libc-alpha/2012-07/msg00242.html
Comment 3 Carlos O'Donell 2012-07-25 13:24:10 UTC
Gary,

Given that you're actively working on getting the probes added to the runtime linker I'm assigning this issue to you :-)

If you need any help getting your patches reviewed please ping me on libc-alpha@sourceware.org.

I appreciates your work in this area.
Comment 4 Gary Benson 2012-07-27 13:06:24 UTC
commit 815e6fa3e010628f77838abec18692cbfeb60809
Author: Gary Benson <gbenson@redhat.com>
Date:   Thu Jul 26 11:03:35 2012 +0100

    Add SystemTap static probes to the runtime linker.  [BZ #14298]

ChangeLog:
2012-07-27  Gary Benson  <gbenson@redhat.com>

       [BZ #14298]
       * elf/rtld.c: Include <stap-probe.h>.
       (dl_main): Added static probes "init_start" and "init_complete".
       * elf/dl-load.c: Include <stap-probe.h>.
       (lose): Take new parameter "nsid".
       Added static probe "map_failed".
       (_dl_map_object_from_fd): Pass namespace id to lose.
       Added static probe "map_start".
       (open_verify): Pass namespace id to lose.
       * elf/dl-open.c: Include <stap-probe.h>.
       (dl_open_worker) Added static probes "map_complete", "reloc_start"
       and "reloc_complete".
       * elf/dl-close.c: Include <stap-probe.h>.
       (_dl_close_worker): Added static probes "unmap_start" and
       "unmap_complete".
       * elf/rtld-debugger-interface.txt: New file documenting the above.