]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof: add GNU build IDs to Mappings recorded from /proc/self/maps
authorRuss Cox <rsc@golang.org>
Tue, 7 Mar 2017 01:39:57 +0000 (20:39 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 8 Mar 2017 01:09:18 +0000 (01:09 +0000)
commitc797256a8f7dcf24fdc798b1e0845d58aeeef7a2
treefb7f4097aa447976c6fb2076b888ec9854fafb17
parent752d7bad4fc6cb4c70edbe0b735ca89d7da16732
runtime/pprof: add GNU build IDs to Mappings recorded from /proc/self/maps

This helps systems that maintain an external database mapping
build ID to symbol information for the given binary, especially
in the case where /proc/self/maps lists many different files
(for example, many shared libraries).

Avoid importing debug/elf to avoid dragging in that whole
package (and its dependencies like debug/dwarf) into the
build of every program that generates a profile.

Fixes #19431.

Change-Id: I6d4362a79fe23e4f1726dffb0661d20bb57f766f
Reviewed-on: https://go-review.googlesource.com/37855
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/go/build/deps_test.go
src/runtime/pprof/elf.go [new file with mode: 0644]
src/runtime/pprof/proto.go
src/runtime/pprof/proto_test.go
src/runtime/pprof/testdata/README [new file with mode: 0644]
src/runtime/pprof/testdata/test32 [new file with mode: 0755]
src/runtime/pprof/testdata/test32be [new file with mode: 0755]
src/runtime/pprof/testdata/test64 [new file with mode: 0755]
src/runtime/pprof/testdata/test64be [new file with mode: 0755]