[iterate-4A] intro-video RE: XENIA_AUDIT_PC_TRACE (per-tid PC-range r3/r4/r5/r30/r31 trace)
Observe-only diagnostic (lockstep digest unaffected) added during the milestone-2 video investigation. `XENIA_AUDIT_PC_TRACE=lo:hi:tid` logs AUDIT-TRACE r3/r4/r5/r30/r31 for blocks in [lo,hi) on a given tid — used to capture the demux registrar's stream-id (r4) at sub_82509E40. Handoff (full detail in memory cont.10ff-10ii): - Video decode is GUEST SOFTWARE (decoder vt 0x82009f70, 615 fns/30k instr, zero host/video imports) — no host codec to build; fix is upstream. - Video IS registered/routed/queued (refutes "not selected"); the engine never reaches ready-state, pump sub_825078D8 bails 5262x, begin-playback sub_825076F0 never fires -> 2000ms readiness timeout. - CANARY oracle measured: video producer sub_824FF678 drives demux SM sub_825211A0 72x+ (loops/pulls continuously); OURS drives it 1x then the pull loop sub_824FA8A0 exits on no-data (assembly sub_8250A2B0 returns 0x8050000B = incomplete unit). Root: ours delivers INCOMPLETE video units where canary delivers complete ones. - NEXT: compare ours-vs-canary fragment chain [slot+24] for the video stream (missing end-fragment / fragment-header mis-parse). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -1336,6 +1336,35 @@ fn cmd_exec_inner(
|
||||
}
|
||||
}
|
||||
|
||||
// milestone-2 demux BB-trace. `XENIA_AUDIT_PC_TRACE=lo:hi:tid`
|
||||
// (hex addrs, decimal tid; tid 0 = all). Emits a compact `AUDIT-TRACE`
|
||||
// line at every block-entry inside [lo,hi) for the matching thread —
|
||||
// a BB-granularity control-flow trace. Used to compare how two thread
|
||||
// instances diverge through the demux read state machine.
|
||||
if let Ok(spec) = std::env::var("XENIA_AUDIT_PC_TRACE") {
|
||||
if !spec.is_empty() {
|
||||
let parts: Vec<&str> = spec.split(':').collect();
|
||||
if parts.len() != 3 {
|
||||
return Err(anyhow::anyhow!(
|
||||
"XENIA_AUDIT_PC_TRACE {spec:?}: expected lo:hi:tid"
|
||||
));
|
||||
}
|
||||
let parse_hex = |s: &str| -> anyhow::Result<u32> {
|
||||
let h = s.strip_prefix("0x").or_else(|| s.strip_prefix("0X")).unwrap_or(s);
|
||||
u32::from_str_radix(h, 16)
|
||||
.map_err(|e| anyhow::anyhow!("XENIA_AUDIT_PC_TRACE addr {s:?}: {e}"))
|
||||
};
|
||||
let lo = parse_hex(parts[0])?;
|
||||
let hi = parse_hex(parts[1])?;
|
||||
let tid: u32 = parts[2].trim().parse()
|
||||
.map_err(|e| anyhow::anyhow!("XENIA_AUDIT_PC_TRACE tid {:?}: {e}", parts[2]))?;
|
||||
kernel.audit_pc_trace = Some((lo, hi, tid));
|
||||
if !quiet {
|
||||
tracing::info!("audit-pc-trace armed: [{:#010x},{:#010x}) tid={}", lo, hi, tid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Diagnostic. Parse `--dump-addr=0x828F3D08,...` (or
|
||||
// `XENIA_DUMP_ADDR=...`) into `kernel.dump_addrs`. The contents
|
||||
// are dumped at end-of-run by `dump_thread_diagnostic`. Pure
|
||||
|
||||
Reference in New Issue
Block a user