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

git at git.haskell.org git at git.haskell.org
Sun May 7 02:11:17 UTC 2017


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

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

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

commit b8c269275ee4d8d4a58f0de23a4c5ff39ce0f352
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.


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

b8c269275ee4d8d4a58f0de23a4c5ff39ce0f352
 configure.ac                  |   7 ++
 includes/rts/EventLogFormat.h |   9 +-
 rts/LibdwScrape.c             | 287 ++++++++++++++++++++++++++++++++++++++++++
 rts/LibdwScrape.h             |  12 ++
 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, 453 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 b8c269275ee4d8d4a58f0de23a4c5ff39ce0f352


More information about the ghc-commits mailing list