feat(runtime): trace calls into the libraries listed in ANYBOX_TRACE #30
No reviewers
Labels
No labels
accessibility
bug
ci
docs
documentation
duplicate
enhancement
fixes issue
good first issue
help wanted
invalid
library request
libs
needs rebase
question
relinker
stale
tools
unblocks title
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Dark3581--AnyBox!30
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/30/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?
@Dark3581 on GitHub · 2026-11-22 03:17 UTC · original
Dark3581:feat/runtime-trace→main· +152 −17 · 9 files · 1 commits · merged 2026-11-22 03:20 UTCWhat
First of the three pull requests planned in #4: a switch that logs every call into chosen AnyBox libraries, for bring-up runs.
ab_runtime.dllexportsAbxTraceEnabled(library). It readsANYBOX_TRACEonce: a comma list of library names, orall; case, spaces and empty items are ignored.AbxTrace(format, ...)(inAbxApi.hpp) logs throughAbxLogon the library's channel. Each call site asksAbxTraceEnabledonce and caches the answer, so a trace that is off costs one branch.xmemand thed3d12_xroot signature functions trace every call with arguments and result, e.g.[xmem] XMemAlloc(100, 0x5e50000) -> 000001...and[d3d12_x] D3D12SerializeRootSignature(...) parameters 0, samplers 0, flags 0x3000001 -> 0x1, result 0x00000000.xgameruntimefollows in its own pull request.Tested
runtime_traceand the crash scenarios passed 5 repeats.runtime_tracetest driveslib_probewithANYBOX_TRACEunset, empty, listing another library,xmem,gameinput , D3D12_Xandall, and checks the lines on stderr and inANYBOX_LOG_FILE.python -m unittest discover -s tools/tests52/52;check_conventions.py,debt_fold.py --check,progress.py --jsonpass.Checklist
main; no other open PR implements the same functionspython tools/check_conventions.pypasses (no comments in code, one declaration per export, Conventional Commit subjects)AbxNotImplemented/AbxUnsupported); silent stubs are listed under Silent stubs through a debt fragmentdocs/dev/debt/changes/<branch>.md