]> Cypherpunks repositories - gostls13.git/commitdiff
internal/trace/internal/testgen: fix missing stacks nframes arg
authorFelix Geisendörfer <felix.geisendoerfer@datadoghq.com>
Sun, 22 Jun 2025 13:29:34 +0000 (15:29 +0200)
committerGopher Robot <gobot@golang.org>
Tue, 12 Aug 2025 18:41:56 +0000 (11:41 -0700)
Change-Id: I6a6a6964c9c1322bfe289394d5d3937d1f7097bb
Reviewed-on: https://go-review.googlesource.com/c/go/+/694616
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>

src/internal/trace/internal/testgen/trace.go

index 415acaccae33bdb080617a028a143f7186cd93e3..38d2febb43b42635ea54e64f9640de0549ead750 100644 (file)
@@ -295,7 +295,7 @@ func (g *Generation) writeEventsTo(tw *raw.TextWriter) {
        b.RawEvent(tracev2.EvStacks, nil)
        for stk, id := range g.stacks {
                stk := stk.stk[:stk.len]
-               args := []uint64{id}
+               args := []uint64{id, uint64(len(stk))}
                for _, f := range stk {
                        args = append(args, f.PC, g.String(f.Func), g.String(f.File), f.Line)
                }