]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/internal/trace/v2/event/go122/event.go
internal/trace/v2: resolve syscall parsing ambiguity
[gostls13.git] / src / internal / trace / v2 / event / go122 / event.go
index 8a106c8692d3b1467d6af3d308bce839d245fa7a..be7ce4c806a3e2ae45622efd3df4779aff6d80d8 100644 (file)
@@ -38,7 +38,7 @@ const (
        EvGoStop              // goroutine yields its time, but is runnable [timestamp, reason, stack ID]
        EvGoBlock             // goroutine blocks [timestamp, reason, stack ID]
        EvGoUnblock           // goroutine is unblocked [timestamp, goroutine ID, goroutine seq, stack ID]
-       EvGoSyscallBegin      // syscall enter [timestamp, stack ID]
+       EvGoSyscallBegin      // syscall enter [timestamp, P seq, stack ID]
        EvGoSyscallEnd        // syscall exit [timestamp]
        EvGoSyscallEndBlocked // syscall exit and it blocked at some point [timestamp]
        EvGoStatus            // goroutine status at the start of a generation [timestamp, goroutine ID, status]
@@ -193,9 +193,9 @@ var specs = [...]event.Spec{
        },
        EvGoSyscallBegin: event.Spec{
                Name:         "GoSyscallBegin",
-               Args:         []string{"dt", "stack"},
+               Args:         []string{"dt", "p_seq", "stack"},
                IsTimedEvent: true,
-               StackIDs:     []int{1},
+               StackIDs:     []int{2},
        },
        EvGoSyscallEnd: event.Spec{
                Name:         "GoSyscallEnd",