...
1
2
3
4
5
6
7
8 package main
9
10 import (
11 "internal/trace"
12 "internal/trace/event/go122"
13 testgen "internal/trace/internal/testgen/go122"
14 )
15
16 func main() {
17 testgen.Main(gen)
18 }
19
20 func gen(t *testgen.Trace) {
21 g := t.Generation(1)
22
23
24
25 b0 := g.Batch(trace.ThreadID(0), 0)
26 b0.Event("ProcStatus", trace.ProcID(0), go122.ProcSyscallAbandoned)
27 b0.Event("ProcSteal", trace.ProcID(0), testgen.Seq(1), trace.ThreadID(1))
28
29
30 bz := g.Batch(trace.NoThread, 0)
31 bz.Event("GoStatus", trace.GoID(1), trace.ThreadID(1), go122.GoSyscall)
32 }
33
View as plain text