Skip to content

Commit c20c309

Browse files
simulation: restore traceKind=syscall for logs-with-stacks
Got lost when adding stacks to the logs. Needs a test...
1 parent f6dc25f commit c20c309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/simulation/os_linux.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func (l *LinuxOS) logfFor(invocation *syscallabi.Syscall, format string, args ..
9494
msg := fmt.Sprintf(format, args...)
9595

9696
r := slog.NewRecord(time.Now(), slog.LevelInfo, msg, invocation.PC)
97-
r.Add("machine", l.machine.label, "goroutine", invocation.Goroutine, "step", gosimruntime.Step())
97+
r.Add("machine", l.machine.label, "goroutine", invocation.Goroutine, "step", gosimruntime.Step(), "traceKind", "syscall")
9898
if gosimruntime.TraceStack.Enabled() {
9999
// TODO: log invocation from its goroutine instead and skip this trickery?
100100
// TODO: stick stacktrace on invocation instead?

0 commit comments

Comments
 (0)