refactor(prx): name the AbstractStorage, Ipmi and TEEClient stubs the NID database resolves #14884

Merged
ItsJustChrisE merged 1 commit from upstream-pr/14884 into main 2026-11-03 05:11:39 +00:00
ItsJustChrisE commented 2026-11-01 22:24:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ItsJustChrisE on 2026-11-01T22:24:13Z.


What

Names 151 *Unknown_* exports that tools/nid_names.py resolves through its pinned aerolib database (status rename-ready), as #12457 did for libSceXml, libSceNKWebKit, libSceJsc and libSceFreeTypeOl: 110 in libSceAbstractStorage, 40 in libSceIpmi, 1 in libSceTEEClient (AMDTEE_DLM_StartTADebug).

Every body still throws through NotImplemented_nid_no_patch, and each library exports the same NIDs as on main. A title that reaches one now fails with the function's name instead of the placeholder's. The other 28 placeholders in these libraries resolve to no name and stay as they are.

#14827 left these three libraries out because #14212 edits their debt files. #14212 is a draft that conflicts with main, and the overlap check finds it shares only those debt files with this branch.

Tested

Ubuntu 26.04 on WSL2, GCC 15.2.0, Release, main 0580e5c951. No title or homebrew run.

  • compute_nid(name) == nid for all 151.
  • nm -D on the patched .prx files of main and this branch, ignoring the removed _nid_no_patch helper names: identical NID sets (131, 97, 15).
  • ctest -R 'public_headers|patched_librar': 66 of 66 passed.
  • tools/check_conventions.py --base origin/main: passed.
  • tools/pr_overlap.py --branch: 1861 open pull requests probed. Only #14212 shares files: the debt files of these three libraries. No shared code or exports.
  • Not run: Windows, the wider test suite.

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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5112175671 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14884). Originally posted by [ItsJustChrisE](https://github.com/ItsJustChrisE) on 2026-11-01T22:24:13Z. --- ### What Names 151 `*Unknown_*` exports that `tools/nid_names.py` resolves through its pinned [aerolib database](https://github.com/zecoxao/sce_symbols/blob/2883963a0a514ba6e77407a08ef4730a65e88254/aerolib.csv) (status `rename-ready`), as #12457 did for libSceXml, libSceNKWebKit, libSceJsc and libSceFreeTypeOl: 110 in libSceAbstractStorage, 40 in libSceIpmi, 1 in libSceTEEClient (`AMDTEE_DLM_StartTADebug`). Every body still throws through `NotImplemented_nid_no_patch`, and each library exports the same NIDs as on `main`. A title that reaches one now fails with the function's name instead of the placeholder's. The other 28 placeholders in these libraries resolve to no name and stay as they are. #14827 left these three libraries out because #14212 edits their debt files. #14212 is a draft that conflicts with `main`, and the overlap check finds it shares only those debt files with this branch. ### Tested Ubuntu 26.04 on WSL2, GCC 15.2.0, Release, `main` `0580e5c951`. No title or homebrew run. - `compute_nid(name) == nid` for all 151. - `nm -D` on the patched `.prx` files of `main` and this branch, ignoring the removed `_nid_no_patch` helper names: identical NID sets (131, 97, 15). - `ctest -R 'public_headers|patched_librar'`: 66 of 66 passed. - `tools/check_conventions.py --base origin/main`: passed. - `tools/pr_overlap.py --branch`: 1861 open pull requests probed. Only #14212 shares files: the debt files of these three libraries. No shared code or exports. - Not run: Windows, the wider test suite. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
BunnyFl commented 2026-11-02 12:06:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-02T12:06:52Z.

Review: APPROVED


Looks right. I checked the renames mechanically:

  • NIDs. I pulled the 151 removed APS5_EXPORT("<nid>", …Unknown_…) NIDs from the diff, and the 151 symbol names newly defined in the three Export.cpp files. tools/nid_names.py --from-file on the new names gives exactly the removed set, with no NID missing and none extra. So every library exports the same NIDs, now under real names.
  • Bodies. They're unchanged apart from the signature line and still call NotImplemented_nid_no_patch(__func__).

Tested on Windows 11, WinLibs GCC 15.2.0, Release, with head 50b7248a26 merged onto main: libSceAbstractStorage, libSceIpmi and libSceTEEClient build, and public_headers and check_conventions.py --base upstream/main pass. I didn't compare nm -D output on this platform; the NID-set check above covers the same question from the source.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5736294608 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14884#pullrequestreview-5736294608). Originally posted by [BunnyFl](https://github.com/BunnyFl) on 2026-11-02T12:06:52Z. **Review:** APPROVED --- Looks right. I checked the renames mechanically: - **NIDs.** I pulled the 151 removed `APS5_EXPORT("<nid>", …Unknown_…)` NIDs from the diff, and the 151 symbol names newly defined in the three `Export.cpp` files. `tools/nid_names.py --from-file` on the new names gives exactly the removed set, with no NID missing and none extra. So every library exports the same NIDs, now under real names. - **Bodies.** They're unchanged apart from the signature line and still call `NotImplemented_nid_no_patch(__func__)`. Tested on Windows 11, WinLibs GCC 15.2.0, Release, with head `50b7248a26` merged onto `main`: `libSceAbstractStorage`, `libSceIpmi` and `libSceTEEClient` build, and `public_headers` and `check_conventions.py --base upstream/main` pass. I didn't compare `nm -D` output on this platform; the NID-set check above covers the same question from the source.
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!14884
No description provided.