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