refactor(scheduler-sim-decision-trace): split trace sources under the 800-line cap
Task 2.4: outcome capture moves to sched_trace_outcome.c and the position/host/summary/rollback half of the model to sched_trace_scan.c; shared helpers go behind sched_trace_internal.h (sti_ prefix). Code is moved unchanged; every target that compiles the trace sources gets all four, and the core isolation scan covers the new files. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
eacb1fa599
commit
144a01982e
40 changed files with 1355 additions and 1094 deletions
|
|
@ -17,9 +17,10 @@
|
|||
* Only the simulator REPL ever publishes a control block (`trace_ctl`), so
|
||||
* the live scheduler never builds a record (Requirement 11.2).
|
||||
*
|
||||
* The model (src/sched_trace.c) and the capture helpers
|
||||
* (src/sched_trace_capture.c) do no I/O and no logging; test_core_isolation.c
|
||||
* scans both files for stdio and file I/O.
|
||||
* The model (src/sched_trace.c, src/sched_trace_scan.c) and the capture
|
||||
* helpers (src/sched_trace_capture.c, src/sched_trace_outcome.c) do no I/O
|
||||
* and no logging; test_core_isolation.c scans these files and their shared
|
||||
* src/sched_trace_internal.h for stdio and file I/O.
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
|
|
@ -697,7 +698,8 @@ extern void sched_trace_finalize_failed(xce_sched_trace_rec_t* rec, int err);
|
|||
extern void sched_trace_search_end(xce_sched_trace_rec_t* rec, int rc);
|
||||
|
||||
/*
|
||||
* TraceCapture (src/sched_trace_capture.c, design.md "TraceCapture"). Each
|
||||
* TraceCapture (src/sched_trace_capture.c and, for the outcomes,
|
||||
* src/sched_trace_outcome.c; design.md "TraceCapture"). Each
|
||||
* reads scheduler state on the thread that owns it, read-only, and copies
|
||||
* what it reports into `rec` (never NULL: the SCHED_TRACE gate).
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue