go/src/cmd/trace
Austin Clements 44286b17c5 runtime: replace system goroutine whitelist with symbol test
Currently isSystemGoroutine has a hard-coded list of known entry
points into system goroutines. This list is annoying to maintain. For
example, it's missing the ensureSigM goroutine.

Replace it with a check that simply looks for any goroutine with
runtime function as its entry point, with a few exceptions. This also
matches the definition recently added to the trace viewer (CL 81315).

Change-Id: Iaed723d4a6e8c2ffb7c0c48fbac1688b00b30f01
Reviewed-on: https://go-review.googlesource.com/81655
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
2018-05-07 21:38:40 +00:00
..
annotations.go cmd/trace: distinguish task endTimestamp and lastTimestamp 2018-04-24 21:49:40 +00:00
annotations_test.go runtime/trace: rename "Span" with "Region" 2018-04-24 16:33:15 +00:00
doc.go cmd/trace: document that trace viewer is only tested on chromium 2017-04-20 16:44:55 +00:00
goroutines.go cmd/trace: beautify goroutine page 2018-03-26 15:36:56 +00:00
main.go runtime/trace: rename "Span" with "Region" 2018-04-24 16:33:15 +00:00
pprof.go runtime/trace: rename "Span" with "Region" 2018-04-24 16:33:15 +00:00
trace.go runtime: replace system goroutine whitelist with symbol test 2018-05-07 21:38:40 +00:00
trace_test.go cmd/trace: distinguish task endTimestamp and lastTimestamp 2018-04-24 21:49:40 +00:00
trace_unix_test.go cmd/trace: skip GoroutineInSyscall in case time order err 2018-04-10 17:09:30 +00:00