diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2014-12-12 18:11:27 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2015-01-28 16:28:18 +0000 |
| commit | f30a2b9ca7ccfd325a5ebcc8eb57e39d8e9c7af3 (patch) | |
| tree | 011b8c1576f20d8d7607b0dc6dc713ad7c0d4286 /src/runtime/runtime2.go | |
| parent | fd85a6c64057402d809a15eb5ec0af8dba8b1256 (diff) | |
| download | go-f30a2b9ca7ccfd325a5ebcc8eb57e39d8e9c7af3.tar.xz | |
runtime: add execution tracing functionality
This is first patch of series of patches that implement tracing functionality.
Design doc:
https://docs.google.com/document/u/1/d/1FP5apqzBgr7ahCCgFO-yoVhk4YZrNIDNf9RybngBc14/pub
Full change:
https://codereview.appspot.com/146920043
Change-Id: I84588348bb05a6f6a102c230f3bca6380a3419fe
Reviewed-on: https://go-review.googlesource.com/1450
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/runtime/runtime2.go')
| -rw-r--r-- | src/runtime/runtime2.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go index 697ff69234..f0f8c1abc3 100644 --- a/src/runtime/runtime2.go +++ b/src/runtime/runtime2.go @@ -213,6 +213,7 @@ type g struct { sigcode1 uintptr sigpc uintptr gopc uintptr // pc of go statement that created this goroutine + startpc uintptr // pc of goroutine function racectx uintptr waiting *sudog // sudog structures this g is waiting on (that have a valid elem ptr) } @@ -324,6 +325,8 @@ type p struct { gfree *g gfreecnt int32 + tracebuf *traceBuf + pad [64]byte } |
