runtime: mark traceEnabled as no:split

The traceEnabled function splits the stack and is being
called by reentersyscall that shouldn't call anything
that splits the stack. Same with traceShuttingDown.

Fixes #61975
This commit is contained in:
Mauri de Souza Meneguzzo 2023-08-12 11:52:10 -03:00
parent 610d47a584
commit 9e55ae9d7c

View file

@ -257,11 +257,15 @@ func traceBufPtrOf(b *traceBuf) traceBufPtr {
}
// traceEnabled returns true if the trace is currently enabled.
//
//go:nosplit
func traceEnabled() bool {
return trace.enabled
}
// traceShuttingDown returns true if the trace is currently shutting down.
//
//go:nosplit
func traceShuttingDown() bool {
return trace.shutdown
}