OLD | NEW |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 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 void | 9 void |
10 runtime·dumpregs(Context *r) | 10 runtime·dumpregs(Context *r) |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 81 |
82 if(runtime·gotraceback()){ | 82 if(runtime·gotraceback()){ |
83 runtime·traceback((void*)r->Eip, (void*)r->Esp, 0, m->curg); | 83 runtime·traceback((void*)r->Eip, (void*)r->Esp, 0, m->curg); |
84 runtime·tracebackothers(m->curg); | 84 runtime·tracebackothers(m->curg); |
85 runtime·dumpregs(r); | 85 runtime·dumpregs(r); |
86 } | 86 } |
87 | 87 |
88 runtime·exit(2); | 88 runtime·exit(2); |
89 return 0; | 89 return 0; |
90 } | 90 } |
| 91 |
| 92 void |
| 93 runtime·resetcpuprofiler(int32 hz) |
| 94 { |
| 95 // TODO: Enable profiling interrupts. |
| 96 ········ |
| 97 m->profilehz = hz; |
| 98 } |
OLD | NEW |