]> Cypherpunks repositories - gostls13.git/commit
runtime: use cgo traceback for SIGPROF
authorIan Lance Taylor <iant@golang.org>
Fri, 29 Apr 2016 22:20:27 +0000 (15:20 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 4 May 2016 00:08:19 +0000 (00:08 +0000)
commit84e808043ff40992ea1e25beb58365fd8e4f2591
tree7bdc538f6719fc3b08409baa020e436a4ab1a64a
parent4d5ac10f690bbc742a3cbf186ad8f3169a45ee26
runtime: use cgo traceback for SIGPROF

If we collected a cgo traceback when entering the SIGPROF signal
handler, record it as part of the profiling stack trace.

This serves as the promised test for https://golang.org/cl/21055 .

Change-Id: I5f60cd6cea1d9b7c3932211483a6bfab60ed21d2
Reviewed-on: https://go-review.googlesource.com/22650
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/crash_cgo_test.go
src/runtime/proc.go
src/runtime/testdata/testprogcgo/pprof.go [new file with mode: 0644]