mirror of
https://github.com/golang/go
synced 2024-09-29 03:24:29 -06:00
runtime: make traceClockNow nosplit
It's called from exitsyscall, which is nosplit. Change-Id: I3f5f92e044497a88a72c1870beb2bdd15c4263c4 Reviewed-on: https://go-review.googlesource.com/c/go/+/496517 Auto-Submit: Michael Knyszek <mknyszek@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Michael Knyszek <mknyszek@google.com> Reviewed-by: Austin Clements <austin@google.com> Reviewed-by: David Chase <drchase@google.com>
This commit is contained in:
parent
a1a048a8ab
commit
e6fb1905cb
@ -1786,6 +1786,10 @@ type traceTime uint64
|
||||
// traceClockNow returns a monotonic timestamp. The clock this function gets
|
||||
// the timestamp from is specific to tracing, and shouldn't be mixed with other
|
||||
// clock sources.
|
||||
//
|
||||
// nosplit because it's called from exitsyscall, which is nosplit.
|
||||
//
|
||||
//go:nosplit
|
||||
func traceClockNow() traceTime {
|
||||
return traceTime(cputicks() / traceTimeDiv)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user