aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/extern.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-09-01 18:51:12 -0400
committerRuss Cox <rsc@golang.org>2014-09-01 18:51:12 -0400
commit548d0805f738c5f4d5bb7e72334b80c2acff059d (patch)
tree46e6202941a339e08fe7d57553fa9a0957add949 /src/pkg/runtime/extern.go
parent60be96217d4192312295c89731ab1239a73235e7 (diff)
downloadgo-548d0805f738c5f4d5bb7e72334b80c2acff059d.tar.xz
runtime: convert mprof.goc to mprof.go
The exported Go definitions appearing in mprof.go are copied verbatim from debug.go. The unexported Go funcs and types are new. The C Bucket type used a union and was not a line-for-line translation. LGTM=remyoudompheng R=golang-codereviews, remyoudompheng CC=dvyukov, golang-codereviews, iant, khr, r https://golang.org/cl/137040043
Diffstat (limited to 'src/pkg/runtime/extern.go')
-rw-r--r--src/pkg/runtime/extern.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pkg/runtime/extern.go b/src/pkg/runtime/extern.go
index 6b74c4fc25..f276a3839d 100644
--- a/src/pkg/runtime/extern.go
+++ b/src/pkg/runtime/extern.go
@@ -148,6 +148,12 @@ func Callers(skip int, pc []uintptr) int {
//go:noescape
func callers(int32, *uintptr, int32) int32
+//go:noescape
+func gcallers(*g, int32, *uintptr, int32) int32
+
+//go:noescape
+func gentraceback(uintptr, uintptr, uintptr, *g, int32, *uintptr, int32, unsafe.Pointer, unsafe.Pointer, bool) int32
+
func getgoroot() string
// GOROOT returns the root of the Go tree.