]> Cypherpunks repositories - gostls13.git/commit
runtime: normalize sigprof traceback flags
authorMichael Pratt <mpratt@google.com>
Tue, 26 Oct 2021 20:18:52 +0000 (16:18 -0400)
committerMichael Pratt <mpratt@google.com>
Thu, 28 Oct 2021 18:10:50 +0000 (18:10 +0000)
commit2bc8ed8e9c5d8ae303b42bbd8c65f2c5dc38352a
tree34cdab33d2fccd7c4b27d6f9a40b6dee29953098
parent266626211e40d1f2c3a34fa4cd2023f5310cbd7d
runtime: normalize sigprof traceback flags

Each gentraceback call uses a different set of flags. Combine these into
a common variable, only adjusted as necessary.

The effective changes here are:

* cgo traceback now has _TraceJumpStack. This is a no-op since it
  already passes curg.
* libcall traceback now has _TraceJumpStack. This is a behavior change
  and will allow following stack transitions if a libcall is performed on
  g0.
* VDSO traceback drops _TraceTrap. vdsoPC is a return address, so
  _TraceTrap was not necessary.

Change-Id: I351b3cb8dc77df7466795d5fbf2bd8f30bba2d37
Reviewed-on: https://go-review.googlesource.com/c/go/+/358900
Trust: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/runtime/proc.go