diff options
author | Russ Cox <rsc@golang.org> | 2014-12-22 13:27:53 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-12-23 03:17:22 +0000 |
commit | 7a524a103647d0b839ff133be1b1b866c92d11fb (patch) | |
tree | c5b1f7f352509a9965911eb8fad11900e9c7ebc7 /src/runtime/cpuprof.go | |
parent | 200e7bf6b13a16452e5add94bb641ed434526e37 (diff) | |
download | go-7a524a103647d0b839ff133be1b1b866c92d11fb.tar.gz go-7a524a103647d0b839ff133be1b1b866c92d11fb.zip |
runtime: remove thunk.s
Replace with uses of //go:linkname in Go files, direct use of name in .s files.
The only one that really truly needs a jump is reflect.call; the jump is now
next to the runtime.reflectcall assembly implementations.
Change-Id: Ie7ff3020a8f60a8e4c8645fe236e7883a3f23f46
Reviewed-on: https://go-review.googlesource.com/1962
Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/cpuprof.go')
-rw-r--r-- | src/runtime/cpuprof.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime/cpuprof.go b/src/runtime/cpuprof.go index a9bb1add85..d8e0ab7d40 100644 --- a/src/runtime/cpuprof.go +++ b/src/runtime/cpuprof.go @@ -421,3 +421,8 @@ func uintptrBytes(p []uintptr) (ret []byte) { func CPUProfile() []byte { return cpuprof.getprofile() } + +//go:linkname runtime_pprof_runtime_cyclesPerSecond runtime/pprof.runtime_cyclesPerSecond +func runtime_pprof_runtime_cyclesPerSecond() int64 { + return tickspersecond() +} |