Commit 1498d7f
committed
Implement opcode tracing and fix per-code instrumentation
- Add TraceEvent::Opcode for sys.settrace f_trace_opcodes support
- Fire 'opcode' event per instruction when f_trace_opcodes is set,
gated by trace_opcodes lock in _trace_event_inner
- Add events_for_code() to compute per-code-object event mask
(global events | code-local events) instead of broadcasting all
local events to every code object, which caused stack corruption
when INSTRUCTION was applied to unrelated running frames
- Use events_for_code() in update_events_mask and Resume handlers
- Remove test_stepinstr expectedFailure marker in test_bdb1 parent 38719f7 commit 1498d7f
File tree
5 files changed
+57
-9
lines changed- Lib/test
- crates/vm/src
- protocol
- stdlib/sys
- vm
5 files changed
+57
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
617 | | - | |
618 | 617 | | |
619 | 618 | | |
620 | 619 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
599 | 614 | | |
600 | 615 | | |
601 | 616 | | |
| |||
2192 | 2207 | | |
2193 | 2208 | | |
2194 | 2209 | | |
2195 | | - | |
| 2210 | + | |
| 2211 | + | |
| 2212 | + | |
| 2213 | + | |
2196 | 2214 | | |
2197 | 2215 | | |
2198 | 2216 | | |
| |||
2569 | 2587 | | |
2570 | 2588 | | |
2571 | 2589 | | |
2572 | | - | |
| 2590 | + | |
| 2591 | + | |
| 2592 | + | |
| 2593 | + | |
2573 | 2594 | | |
2574 | 2595 | | |
2575 | 2596 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
94 | 100 | | |
95 | 101 | | |
96 | 102 | | |
| |||
101 | 107 | | |
102 | 108 | | |
103 | 109 | | |
| 110 | + | |
104 | 111 | | |
105 | 112 | | |
106 | 113 | | |
| |||
142 | 149 | | |
143 | 150 | | |
144 | 151 | | |
| 152 | + | |
145 | 153 | | |
146 | 154 | | |
147 | 155 | | |
148 | 156 | | |
149 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
150 | 163 | | |
151 | 164 | | |
152 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
122 | 136 | | |
123 | 137 | | |
124 | 138 | | |
| |||
464 | 478 | | |
465 | 479 | | |
466 | 480 | | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
467 | 484 | | |
468 | 485 | | |
469 | 486 | | |
470 | 487 | | |
471 | 488 | | |
472 | 489 | | |
473 | | - | |
| 490 | + | |
| 491 | + | |
474 | 492 | | |
475 | 493 | | |
476 | 494 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1164 | 1164 | | |
1165 | 1165 | | |
1166 | 1166 | | |
1167 | | - | |
1168 | | - | |
| 1167 | + | |
1169 | 1168 | | |
1170 | 1169 | | |
1171 | 1170 | | |
1172 | 1171 | | |
1173 | | - | |
1174 | | - | |
1175 | | - | |
| 1172 | + | |
1176 | 1173 | | |
1177 | 1174 | | |
1178 | 1175 | | |
| |||
0 commit comments