gvisor: update traceBlockReason for new runtime tracer

The definition for the new constant values lives upstream at:
https://cs.opensource.google/go/go/+/master:src/runtime/trace2runtime.go;l=77-102;drc=b6b72c775ab562c632abf5d93e8c541385edfffc

PiperOrigin-RevId: 587718645
This commit is contained in:
gVisor bot
2023-12-04 07:51:56 -08:00
parent 126ee58746
commit 73fe5bffaf
3 changed files with 26 additions and 0 deletions
+1
View File
@@ -28,6 +28,7 @@ go_library(
"runtime_amd64.go",
"runtime_constants.go",
"runtime_exectracer1.go",
"runtime_exectracer2.go",
"runtime_go121_unsafe.go",
"runtime_not_go121_unsafe.go",
"runtime_other.go",
+2
View File
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !goexperiment.exectracer2
package sync
// TraceBlockReason constants, from Go's src/runtime/trace.go.
+23
View File
@@ -0,0 +1,23 @@
// Copyright 2023 The gVisor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build goexperiment.exectracer2
package sync
// TraceBlockReason constants, from Go's src/runtime/trace2runtime.go.
const (
TraceBlockSelect TraceBlockReason = 3 // +checkconst runtime traceBlockSelect
TraceBlockSync = 5 // +checkconst runtime traceBlockSync
)