[commit: ghc] wip/libdw-prof: rts: Emit debug information about program to event log (944d3d1)

git at git.haskell.org git at git.haskell.org
Sat May 6 22:26:36 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/libdw-prof
Link       : http://ghc.haskell.org/trac/ghc/changeset/944d3d1b0a90c0a199c3a4c408de0a437e559a5b/ghc

>---------------------------------------------------------------

commit 944d3d1b0a90c0a199c3a4c408de0a437e559a5b
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Fri Sep 25 16:45:16 2015 +0200

    rts: Emit debug information about program to event log
    
    This commit adds support to the RTS for traversing the debug information
    present in a program and emitting it to the event log for later
    consumption by debugging and performance analysis tools. This includes
    source note, symbol, and address range information derived from the
    DWARF annotations produced by GHC.
    
    Unfortunately one function necessary for traversing GHC's extended DWARF
    information, `dwarf_cu_getdwarf`, was only introduced in libdw 0.160.
    Consequently we won't be able to support statistical profiling in
    releases earlier than this.


>---------------------------------------------------------------

944d3d1b0a90c0a199c3a4c408de0a437e559a5b
 configure.ac                  |   7 ++
 includes/rts/EventLogFormat.h |   9 +-
 rts/LibdwScrape.c             | 287 ++++++++++++++++++++++++++++++++++++++++++
 rts/LibdwScrape.h             |  15 +++
 rts/RtsStartup.c              |   2 +
 rts/Trace.c                   |  24 ++++
 rts/Trace.h                   |  19 ++-
 rts/eventlog/EventLog.c       |  77 ++++++++++++
 rts/eventlog/EventLog.h       |  18 +++
 9 files changed, 456 insertions(+), 2 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 944d3d1b0a90c0a199c3a4c408de0a437e559a5b


More information about the ghc-commits mailing list