docs(agc): count how local titles call sceAgcGetDataPacketPayloadAddress_0090 #12742

Merged
xXPBSXx merged 3 commits from upstream-pr/12742 into main 2026-11-01 06:23:21 +00:00
xXPBSXx commented 2026-10-29 06:35:52 +00:00 (Migrated from github.com)

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):

sceAgcGetDataPacketPayloadAddress (libSceAgc) - forward to sceAgcGetDataPacketPayloadAddress_0090 and the inferred (addr, cmd, type) parameters follow SharpProspero and decrypted firmware 3.20 NID mapping; not verified on console hardware. In the 14 local titles that call sceAgcGetDataPacketPayloadAddress_0090 directly from the executable (PPSA01285, PPSA10261, ...), the third argument (type) is the constant 0 or 1 at every call site.

Changed: docs/dev/debt/libSceAgc.md, one existing entry extended. No code change. The neighbouring entry for sceAgcGetDataPacketPayloadRange is 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 call instructions 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. jmp instructions 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 stub jmp [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 with main edf6804cf5 alone, and none of their hunks touches this entry; #8314 already conflicts with main in that file. Measured on the file sets of the 1422 open PRs on 29 October 05:27 (git diff --name-only from each PR head's merge base with main).

Tested

Documentation only. python tools/check_conventions.py --base upstream/main passes; based on main edf6804cf5 (head fca8839e06). Not built, not run.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none (#12701 is merged)
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

AI-assisted (Claude Code).

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5063502708 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12742). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-29T06:35:52Z. --- ### What The entry then reads (the new part is its last sentence): > [sceAgcGetDataPacketPayloadAddress](../../../core/libs/prx/libSceAgc/Misc/src/PacketInfo.cpp) (libSceAgc) - forward to `sceAgcGetDataPacketPayloadAddress_0090` and the inferred (addr, cmd, type) parameters follow SharpProspero and decrypted firmware 3.20 NID mapping; not verified on console hardware. In the 14 local titles that call `sceAgcGetDataPacketPayloadAddress_0090` directly from the executable (PPSA01285, PPSA10261, ...), the third argument (`type`) is the constant 0 or 1 at every call site. Changed: `docs/dev/debt/libSceAgc.md`, one existing entry extended. No code change. The neighbouring entry for `sceAgcGetDataPacketPayloadRange` is 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 `call` instructions 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. `jmp` instructions 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 stub `jmp [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 with `main` `edf6804cf5` alone, and none of their hunks touches this entry; #8314 already conflicts with `main` in that file. Measured on the file sets of the 1422 open PRs on 29 October 05:27 (`git diff --name-only` from each PR head's merge base with `main`). ### Tested Documentation only. `python tools/check_conventions.py --base upstream/main` passes; based on `main` `edf6804cf5` (head `fca8839e06`). Not built, not run. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none (#12701 is merged) - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes AI-assisted (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
adriadam10 commented 2026-10-29 06:42:14 +00:00 (Migrated from github.com)

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. "the type argument 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5693821143 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12742#pullrequestreview-5693821143). Originally posted by [adriadam10](https://github.com/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. "the `type` argument 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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!12742
No description provided.