Commit 11179ad
committed
Fix MMU cache statistics signal handling
This restores MMU cache statistics functionality broken by coroutine
refactoring. The refactor introduced separate execution paths (SMP mode,
single-hart mode, debug mode) but signal handling was only implemented
in the SMP path.
Signal handling follows async-signal-safe pattern: handler only sets a
volatile sig_atomic_t flag, with stats printing deferred to main loop
context. All execution paths now properly clean up resources (pfds, file
descriptors) before exit.
Close #1131 parent 51e1115 commit 11179ad
1 file changed
+20
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
1007 | 1008 | | |
1008 | 1009 | | |
1009 | 1010 | | |
1010 | | - | |
1011 | 1011 | | |
1012 | 1012 | | |
1013 | 1013 | | |
| |||
1152 | 1152 | | |
1153 | 1153 | | |
1154 | 1154 | | |
1155 | | - | |
1156 | | - | |
1157 | | - | |
1158 | | - | |
1159 | | - | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
1160 | 1160 | | |
1161 | 1161 | | |
1162 | 1162 | | |
| |||
1345 | 1345 | | |
1346 | 1346 | | |
1347 | 1347 | | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
1348 | 1355 | | |
1349 | 1356 | | |
1350 | 1357 | | |
| |||
1422 | 1429 | | |
1423 | 1430 | | |
1424 | 1431 | | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
1425 | 1439 | | |
1426 | 1440 | | |
1427 | 1441 | | |
| |||
1507 | 1521 | | |
1508 | 1522 | | |
1509 | 1523 | | |
1510 | | - | |
1511 | 1524 | | |
1512 | 1525 | | |
1513 | 1526 | | |
| |||
0 commit comments