aboutsummaryrefslogtreecommitdiff
path: root/src/compress
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2016-05-27 16:03:44 -0700
committerIan Lance Taylor <iant@golang.org>2016-05-31 13:02:09 +0000
commit4223294eab3dee0f6c03fd57fc24be3dc3e2d53a (patch)
tree70f810ef844aee4ef2a974661de8f6fb347b97df /src/compress
parent87ee12cece96ec5837fe89c37899d725e7e852d9 (diff)
downloadgo-4223294eab3dee0f6c03fd57fc24be3dc3e2d53a.tar.xz
runtime/pprof, cmd/pprof: fix profiling for PIE
In order to support pprof for position independent executables, pprof needs to adjust the PC addresses stored in the profile by the address at which the program is loaded. The legacy profiling support which we use already supports recording the GNU/Linux /proc/self/maps data immediately after the CPU samples, so do that. Also change the pprof symbolizer to use the information, if available, when looking up addresses in the Go pcline data. Fixes #15714. Change-Id: I4bf679210ef7c51d85cf873c968ce82db8898e3e Reviewed-on: https://go-review.googlesource.com/23525 Reviewed-by: Michael Hudson-Doyle <michael.hudson@canonical.com>
Diffstat (limited to 'src/compress')
0 files changed, 0 insertions, 0 deletions