From f30a2b9ca7ccfd325a5ebcc8eb57e39d8e9c7af3 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 12 Dec 2014 18:11:27 +0100 Subject: 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 --- src/runtime/runtime2.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/runtime/runtime2.go') 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 } -- cgit v1.3-5-g9baa