Skip to content

Trace outstanding startup callbacks and game entry by thread - #6410

Open
kacper-serewis wants to merge 1 commit into
ItsNotRexed:mainfrom
kacper-serewis:feat/runtime-events-summary
Open

kacper-serewis wants to merge 1 commit into
ItsNotRexed:mainfrom
kacper-serewis:feat/runtime-events-summary

Conversation

@kacper-serewis

Copy link
Copy Markdown
Contributor

Closes #6378. Claimed in coordination issue #6214.

Opt-in startup JSONL now records the emitting Windows thread ID and pairs entry and return for process TLS callbacks, process-attach DllMain, and the executable entry on the game thread. Existing tls_callback and dllmain records retain their meanings. Thread TLS callbacks continue to run without tracing under the loader lock.

boot_trace reports phases for which it saw an entry and no matching return. An explicit process exit, a fault, or an interrupted capture can all leave such a record. Legacy traces still parse.

Verified on Windows x64, MSVC 19.50, RelWithDebInfo. All 21 tests in tests/test_boot_trace.py and CTests startup_trace, startup_trace_phases and process_cmdline passed. Synthetic fixtures exercised normal return, propagated SEH, externally terminated wait, nested records and concurrent writers. CPU only. No game files, GPU or graphics driver involved.

AI-assisted with OpenAI Codex.

@milas6669

Copy link
Copy Markdown

Tested as part of the stack with #6417 and #6419 (full results on #6419): startup_trace_phases passes, and fails when only pe_loader.cpp and process.cpp are put back to main. Windows 11 26200, RTX 3070. AI-assisted (Claude Code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

First-boot readiness: trace startup phase entry/completion and thread identity

2 participants