README: the switches for a bug report's diagnostics #2313
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2313
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2313/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@gefydev on GitHub · 2026-11-25 13:32 UTC · original
gefydev:readme-diagnostics-switches→main· +25 −0 · 1 files · 2 commits · merged 2026-11-25 21:36 UTCSeven switches that bug reports and issue threads use to see what a title is doing are read by the runtime and are not in the README. Docs only. Part of the "document what a user sets" gap; the xcl.toml keys are #2190's and are not touched here.
What is in it
README.md: a "Diagnostics for a bug report" entry in the "Switches, caches, logs and the files XCL writes" block, withXCL_RUN_SECONDS,XCL_ACTIVITY,XCL_THREAD_DUMP_AT,XCL_TRACE_FAULTS,XCL_TRACE_MEM,XCL_TRACE_IMPORTSandXCL_D3D12_TRACE. Each line gives what lands inxcl.logand the values the code accepts, read fromhost.rs,eh.rs,hle/kernelx.rs,resolver.rsandhle/d3d12x/real.rs.Tested
docs/for each name first: none of the seven was there.Not tested
cargo testandscripts/smoke.ps1were not run, since no code changed.AI use
@oni-swr on GitHub · 2026-11-25 13:46 UTC · original
Docs review of #2313 at head
7817eb17eba0ce921d78e60b862c2ebe49a71185, againstorigin/mainafc5ee86ae3a9521c9f15d96505cd73fe72f2191(PR based on1a0bbe3; merges into currentmaincleanly;README.mdonmainhas none of these variables yet).Checked against the source (all match unless noted):
XCL_RUN_SECONDS(host.rs: whole-numberu64, anything else ignored),XCL_ACTIVITY(any value, even0, turns it on; 2 sactivity (2 s)line plusmemory:line),XCL_THREAD_DUMP_AT(comma list of seconds),XCL_TRACE_FAULTS(any value; first 32 access violations; read/write/execute, address, rax/rcx/rdx/r8, stack callers; logged from the exception handler),XCL_TRACE_MEM(1or unset-like values trace the first 60 allocations of 64 KiB or more,n > 1the first n),XCL_D3D12_TRACE(any value, logs interface and method),XCL_TRACE_IMPORTSword semantics (1/hle,all, prefix include,-exclude; a list with no include word meanshle).One inaccuracy
XCL_TRACE_IMPORTSexamplehle,-kernelx!GetTickCount: the filter compares each word as a prefix of the lower-cased<dll key>!<Function>, anddll_keykeeps the extension (kernelx.dll!gettickcount).-kernelx!GetTickCountis therefore not a prefix of anything and excludes nothing;-kernelx.dll!GetTickCountwould. (gameinputworks because it is a prefix ofgameinput.dll!….) The same example is in the source comment inresolver.rsand inHANDOFF.md, so it is not this PR's invention, but the README should saydll.dll!Functionor usekernelx.dll!in the example. I read this fromresolver.rsandutil::dll_key; I did not run it.Minor
XCL_TRACE_MEMwith any value (even0) also turns on the UMA allocation trace ingpu/uma.rs, andXCL_TRACE_MEM=0still logs 60 allocations. The README text is correct for1andn; you may want "any value turns it on" for consistency with the others.XCL_RUN_SECONDS: "GPU drained" is what the code comment says the end path does (end_title); I did not run it.Overlap
README.mdin a different place (no conflict). #2144, #1832 and #2111 change what theXCL_ACTIVITYline contains (host.rs); the README text is generic enough to stay true, but check it if they land first. No other open PR documents these variables.Not tested
origin/main. The full workspace suite, GPU tests andscripts/smoke.ps1/ any title run were not run either.AI use
@gefydev on GitHub · 2026-11-25 13:48 UTC · original
@oni-swr thank you for the review of #2313; both points are right, and fixed in
dbd11b9.XCL_TRACE_IMPORTS:wantscompares a word with the lower-cased<dll key>!<Function>, and the key keeps the extension (resolver.rs), so-kernelx!GetTickCountexcluded nothing. The example is nowhle,-kernelx.dll!GetTickCount,gameinput, and the text says the name carries the DLL's extension and that case does not matter.XCL_TRACE_MEM:gpu/uma.rsreads it withvar_ostoo, so any value turns it on, and there it also logs XCL's own allocations of 1 MB or more in the committed window and the ones that fail. The entry says both.The other lines were not changed. Noted on #2144, #1832 and #2111 changing the
XCL_ACTIVITYline: I will check the README text if one of them lands first.AI use: Claude Code (Claude Sonnet 5.5) wrote this comment for @gefydev.
@DavidM1911 on GitHub · 2026-11-25 17:41 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@gefydev on GitHub · 2026-11-25 17:49 UTC · original
@DavidM1911 thank you for the verifications on #2310, #2311, #2312 (all three already merged) and #2313, the same on each: RTX 3060 Ti, Windows 11, branch merged with current
main,cargo test -p xcl --liball passed, 0 failed, about 26 ignored, with the intermittent abort under parallel scheduling tracked in #1978 that was clean on a single-threaded rerun. Noted.AI use: Claude Code (Claude Sonnet 5.5) wrote this comment for @gefydev.