docs(agc): count how local titles call sceAgcGetDataPacketPayloadAddress_0090 #12742
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12742"
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?
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-29T06:35:52Z.
What
The entry then reads (the new part is its last sentence):
Changed:
docs/dev/debt/libSceAgc.md, one existing entry extended. No code change. The neighbouring entry forsceAgcGetDataPacketPayloadRangeis about a different function and is not touched.Method: for each of the 53 local titles the import table of the executable gives the function's import stub, and direct
callinstructions to it were counted in the executable's code; the value of the third argument is read with a stricter walk (writers including implicit ones, branch targets, decoding from several start offsets); 7 sites the walk reported as ambiguous were read by hand and have the same values as before.jmpinstructions to the stub (80, in 40 titles) are not counted as calls. Static counting only, nothing run on a console; no game code is attached. Per-title results and the counting script are attached to this PR. Calls through the GOT: every registry call site of the import (53) is a stubjmp [rip+got], none is a call. Not read: other indirect calls and library modules loaded next to the executable. Whether a title reaches these calls was not measured.Overlap
Five open PRs change
docs/dev/debt/libSceAgc.md(#12701, which extended the neighbouring entry, is merged and its change is in this branch). #12475, #10736, #10048 and #1060 merge cleanly with this head (fca8839e06) and withmainedf6804cf5alone, and none of their hunks touches this entry; #8314 already conflicts withmainin that file. Measured on the file sets of the 1422 open PRs on 29 October 05:27 (git diff --name-onlyfrom each PR head's merge base withmain).Tested
Documentation only.
python tools/check_conventions.py --base upstream/mainpasses; based onmainedf6804cf5(headfca8839e06). Not built, not run.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)AI-assisted (Claude Code).
🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-29T06:42:14Z.
Review: DISMISSED
Thanks for the counts. One change before this can merge:
docs/dev/debt/libSceAgc.md:26: the added sentences are a report of how the counting was done (53 local titles, 149 call sites, two independent counts, the PPSA10261 breakdown). Reports and logs go in the PR, not in the debt file; the entry should only state what is still unknown or inferred, and a reader can't reproduce a count over titles they don't have. Please cut it to the finding that matters, e.g. "thetypeargument is the constant 0 or 1 at every readable call site of the titles checked (PPSA01285, PPSA10261, ...)", and leave the per-title numbers and the script in your PR comment, where they already are.Landing order with #12701 is fine: whichever merges second gets rebased.