]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/runtime/trace2runtime.go
internal/trace/v2: resolve syscall parsing ambiguity
[gostls13.git] / src / runtime / trace2runtime.go
index 74aeb57d806b7e60062d96fa6356339aa7efa928..b6837d03609a04179b3378b5b99c4370efa466da 100644 (file)
@@ -465,8 +465,9 @@ func (tl traceLocker) GoSysCall() {
                skip = 4
        }
        // Scribble down the M that the P is currently attached to.
-       tl.mp.p.ptr().trace.mSyscallID = int64(tl.mp.procid)
-       tl.eventWriter(traceGoRunning, traceProcRunning).commit(traceEvGoSyscallBegin, tl.stack(skip))
+       pp := tl.mp.p.ptr()
+       pp.trace.mSyscallID = int64(tl.mp.procid)
+       tl.eventWriter(traceGoRunning, traceProcRunning).commit(traceEvGoSyscallBegin, pp.trace.nextSeq(tl.gen), tl.stack(skip))
 }
 
 // GoSysExit emits a GoSyscallEnd event, possibly along with a GoSyscallBlocked event