LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2011 The Go Authors. All rights reserved. | 1 // Copyright 2011 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 #include "runtime.h" | 5 #include "runtime.h" |
6 #include "defs.h" | 6 #include "defs.h" |
7 #include "os.h" | 7 #include "os.h" |
8 | 8 |
9 extern void *runtime·sigtramp; | 9 extern void *runtime·sigtramp; |
10 | 10 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 runtime·traceback((void*)r->Rip, (void*)r->Rsp, 0, gp); | 93 runtime·traceback((void*)r->Rip, (void*)r->Rsp, 0, gp); |
94 runtime·tracebackothers(gp); | 94 runtime·tracebackothers(gp); |
95 runtime·dumpregs(r); | 95 runtime·dumpregs(r); |
96 } | 96 } |
97 | 97 |
98 runtime·exit(2); | 98 runtime·exit(2); |
99 return 0; | 99 return 0; |
100 } | 100 } |
101 | 101 |
102 void | 102 void |
103 runtime·resetcpuprofiler(int32 hz) | 103 runtime·dosigprof(Context *r, G *gp) |
104 { | 104 { |
105 » // TODO: Enable profiling interrupts. | 105 » runtime·sigprof((uint8*)r->Rip, (uint8*)r->Rsp, nil, gp); |
106 »······· | |
107 » m->profilehz = hz; | |
108 } | 106 } |
LEFT | RIGHT |