Contrib/import telemetry #4
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/jadeowaowa--scarlett-layer!4
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4"
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?
@opal-26 on GitHub · 2026-11-23 00:33 UTC · original
opal-26:contrib/import-telemetry→main· +1436 −49 · 14 files · 6 commits · openSummary
Adds an opt-in, zero-dependency import & auto-stub telemetry ledger (
SCARLETT_TRACE_OUT) toscarlett_hook.dll, extendingAutoStubEnginewith caller-RVA capture and crash-safe Vectored Exception Handler (VEH) flushing.SCARLETT_TRACE_OUT=<path>is set (single relaxed atomic check when disabled).auto_stub.hpp: Addsmov rdx, [rsp + 0x28]inside the existing 48-byte W^X trampoline and an atomic call observer hook to capture the caller's return address without changing thunk stride or ABI.src/loader/import_telemetry.hpp): RecordsLoadLibrary*shim redirects,GetProcAddressoutcomes (resolved/auto_stubbed/unresolved, named and ordinal), runtime stub hit counts + first caller RVA, and a lock-free 128-slot chronologicalrecent_callsring buffer.TryAcquireSRWLockSharedand a stack-buffered Win32CreateFileW/WriteFileJSON writer so hardware exceptions (EXCEPTION_ACCESS_VIOLATION, etc.) dump the fault RVA, access address, and trailing stub calls before process teardown (toggleable viaSCARLETT_TRACE_VEH=0).ImportTelemetryAndVehFlushE2E): Exercises disabled no-op, dynamic redirects, resolved/stubbed/unresolved lookups, 4-thread ring-buffer wrap (160 calls), and a recoverable SEH-guarded access violation verifying the VEH JSON output.Verification
python tools/generate_status.py --check— synceddocs/STATUS.md,README.md,docs/ROADMAP.md,CONTRIBUTING.md, andAGENTS.mdto79/79(43 cpu,36 gpu).MSVC x64 /W4 /permissive-, 43 CPU CTests + 36 GPU WARP CTests): [link your green workflow run here]Scope & Hygiene
SCARLETT_TRACE_OUTis unset.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.