ftl: add P0 bench verification probes (#85) #96

Merged
wandering1 merged 3 commits from dig-volume-view-283370226187 into master 2026-11-07 22:21:02 +08:00

3 Commits

Author SHA1 Message Date
wandering1 ebb64f6df2 Merge branch 'master' into dig-volume-view-283370226187
CI / 静态门禁 (pre-commit) (pull_request) Failing after 29s
CI / 主机侧单测 (MSVC) (pull_request) Failing after 44s
2026-11-07 22:20:40 +08:00
wandering1 2aa4561af6 Merge branch 'master' into dig-volume-view-283370226187
CI / 静态门禁 (pre-commit) (push) Failing after 46s
CI / 主机侧单测 (MSVC) (push) Failing after 45s
CI / 静态门禁 (pre-commit) (pull_request) Failing after 46s
CI / 主机侧单测 (MSVC) (pull_request) Failing after 44s
2026-11-07 22:06:44 +08:00
super_agent_bot aa831968ea ftl: add P0 bench verification probes (#85)
CI / 主机侧单测 (MSVC) (push) Has been cancelled
CI / 静态门禁 (pre-commit) (pull_request) Has been cancelled
CI / 主机侧单测 (MSVC) (pull_request) Has been cancelled
CI / 静态门禁 (pre-commit) (push) Has been cancelled
Add two bench empirical verification probes for the whole-volume stale
view investigation:

1. Write-commit readback probe in dhara_nand_prog(): after a successful
   program, immediately read back the same physical page and compare
   byte-by-byte. Log ECC errors and data mismatches with a counter.

2. Map state logging in ftl_flush_cache(): after each successful
   dhara_map_write, log the journal root/head/tail/epoch/count to
   correlate with bench stale-view events.

Both probes are marked as bench-only and should be removed before
production release.
2026-11-07 21:57:46 +08:00