Skip to content

feat(prx): declare pending exports of 22 dummy-only libraries - #10672

Closed
MarcZX10 wants to merge 44 commits into
boykopovar:mainfrom
MarcZX10:marc/inventory-ps4libdoc
Closed

MarcZX10 wants to merge 44 commits into
boykopovar:mainfrom
MarcZX10:marc/inventory-ps4libdoc

Conversation

@MarcZX10

Copy link
Copy Markdown
Contributor

What

Replaces the APS5_DUMMY_FUN placeholder in 22 dummy-only libraries with their known exports, generated with tools/stubgen.py. Each declaration calls NotImplemented_nid_no_patch; the no-parameter declarations are import-resolution entries and make no ABI claim. The libraries have no entry in the PS5 3.20 inventory the project otherwise uses.

Sources, each recorded in the library's debt file:

  • 21 libraries: the libSce* export lists of idc/ps4libdoc at PS4 firmware 9.00 (commit a71315e7f36e312ae71e9e3a92982e9ffbfc725f): AsyncStorageInternal 19, AudiodReport 8, AudiodecCpuDdp/Dts/DtsHdLbr/DtsHdMa/M4aac 1 each, AudiodecCpuLpcm 2, DtcpIp 22, FontGs 6, GifParser 6, ImageUtil 4, JitBridge 23, JscCompiler 1, Marlin 70, PngParser 6, Scm 4, VideoOutSecondary 2, VnaInternal 27, VnaWebsocket 23, Web 12.
  • libSceAvcap2: 7 NIDs that the PS5 homebrew project HearBridge-PS5 resolves from the module on a console.

Every name is kept only if tools/nid_names.py compute_nid of it equals the listed NID (names come from the ps4libdoc name field or the project's aerolib database); the remaining ps4libdoc entries are exported by NID alone. Entries whose NID is already declared anywhere in core/libs were dropped, and _Z5dummyv (Marlin) was left out as too generic to attribute. Because the PS4 lists are not PS5 inventories, the PS5 modules may export more, fewer or different symbols; this is stated in each debt file, which also lists every name and NID. The large mangled C++ lists for libSceWebKit2, libSceWebKit2Secure and libSceOrbisCompat were deliberately not included.

Tested

Linux x86-64, Ninja Release: cmake --build <build-dir> --target <lib> built each of the 22 libraries. python3 tools/check_conventions.py --base upstream/main --head HEAD passed and git diff --check upstream/main is clean. tools/pr_overlap.py crashes on this machine with a JSON decode error, so overlap was checked by searching open PRs for each library name (only #10042 matched libSceAudiodecCpuLpcm and does not touch these names) and by comparing the candidate names and NIDs with the file patches of the open declaration PRs #9449, #9470, #9467, #9463, #9485, #9569, #9614, #9422, #9438, #9451, #9623, #9541, #9629, #8951, #9444, #9453, #9462 (no match). Windows and hardware were 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 (not applicable; no third-party code added)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

@github-actions

Copy link
Copy Markdown

Progress report (af45c30 → 850e4a7)

📉 System libraries: 47.68% (-0.97%, +247 declared functions)

🆕 247 declared as stubs
Library Name
libSceAsyncStorageInternal sceAsyncStorageInternalUnknown00
libSceAsyncStorageInternal sceAsyncStorageInternalUnknown01
libSceAsyncStorageInternal sceAsyncStorageInternalUnknown02
libSceAsyncStorageInternal sceAsyncStorageInternalUnknown03
libSceAsyncStorageInternal sceAsyncStorageInternalUnknown04
libSceAsyncStorageInternal sceAsyncStorageInternalUnknown05
libSceAsyncStorageInternal sceAsyncStorageInternalUnknown06
libSceAsyncStorageInternal sceAsyncStorageInternalUnknown07
libSceAsyncStorageInternal sceAsyncStorageInternalUnknown08
libSceAsyncStorageInternal sceAsyncStorageInternalUnknown09
libSceAsyncStorageInternal sceAsyncStorageInternalUnknown10
libSceAsyncStorageInternal sceAsyncStorageInternalUnknown11
libSceAsyncStorageInternal sceAsyncStorageInternalUnknown12
libSceAsyncStorageInternal sceAsyncStorageInternalUnknown13
libSceAsyncStorageInternal sceAsyncStorageInternalUnknown14
libSceAsyncStorageInternal sceAsyncStorageInternalUnknown15
libSceAsyncStorageInternal sceAsyncStorageInternalUnknown16
libSceAsyncStorageInternal sceAsyncStorageInternalUnknown17
libSceAsyncStorageInternal sceAsyncStorageInternalUnknown18
libSceAudiodReport sceAudiodReportLoudness
libSceAudiodReport sceAudiodReportMasteringGetParams
libSceAudiodReport sceAudiodReportMasteringSetParams
libSceAudiodReport sceAudiodReportMasteringStates
libSceAudiodReport sceAudiodReportOutput
libSceAudiodReport sceAudiodReportRegisterHandler
libSceAudiodReport sceAudiodReportSetEnableFlag
libSceAudiodReport sceAudiodReportUnregisterHandler
libSceAudiodecCpuDdp audiodeccpuinternal_core_ops_ddp_nid_postfix
libSceAudiodecCpuDts audiodeccpuinternal_core_ops_dts_nid_postfix
libSceAudiodecCpuDtsHdLbr audiodeccpuinternal_core_ops_dts_hd_lbr_nid_postfix
libSceAudiodecCpuDtsHdMa audiodeccpuinternal_core_ops_dts_hd_ma_nid_postfix
libSceAudiodecCpuLpcm audiodeccpuinternal_core_ops_lpcm_bd2_nid_postfix
libSceAudiodecCpuLpcm audiodeccpuinternal_core_ops_lpcm_dvd2_nid_postfix
libSceAudiodecCpuM4aac audiodeccpuinternal_core_ops_m4aac2_nid_postfix
libSceAvcap2 sceAvcap2Close
libSceAvcap2 sceAvcap2Initialize
libSceAvcap2 sceAvcap2OpenAudio
libSceAvcap2 sceAvcap2ReadAudio
libSceAvcap2 sceAvcap2Start
libSceAvcap2 sceAvcap2Stop
libSceAvcap2 sceAvcap2Terminate
libSceDtcpIp sceDtcpIpActivateAsync
libSceDtcpIp sceDtcpIpAddHeader
libSceDtcpIp sceDtcpIpByteSeekAsync
libSceDtcpIp sceDtcpIpCancelActivate
libSceDtcpIp sceDtcpIpCheckActivationAsync
libSceDtcpIp sceDtcpIpCloseContentAsync
libSceDtcpIp sceDtcpIpGetErrorCode
libSceDtcpIp sceDtcpIpGetHttpStatusCode
libSceDtcpIp sceDtcpIpInit
libSceDtcpIp sceDtcpIpInitAuthAsync
libSceDtcpIp sceDtcpIpOpenContentAsync
libSceDtcpIp sceDtcpIpPollAsync
libSceDtcpIp sceDtcpIpReadAsync
libSceDtcpIp sceDtcpIpRemoveHeader
libSceDtcpIp sceDtcpIpStartAuthAsync
libSceDtcpIp sceDtcpIpStartSeq
libSceDtcpIp sceDtcpIpStopAuthAsync
libSceDtcpIp sceDtcpIpStopSeq
libSceDtcpIp sceDtcpIpTerm
libSceDtcpIp sceDtcpIpTermAuthAsync
libSceDtcpIp sceDtcpIpTimeSeekAsync
libSceDtcpIp sceDtcpIpWaitAsync
libSceFontGs sceFontGraphicsGnmSurfaceInit
libSceFontGs sceFontGsUnknown00
libSceFontGs sceFontGsUnknown01
libSceFontGs sceFontGsUnknown02
libSceFontGs sceFontGsUnknown03
libSceFontGs sceFontSelectGraphicsGnm
libSceGifParser sceGifParserUnknown00
libSceGifParser sceGifParserUnknown01
libSceGifParser sceGifParserUnknown02
libSceGifParser sceGifParserUnknown03
libSceGifParser sceGifParserUnknown04
libSceGifParser sceGifParserUnknown05
libSceImageUtil sceImageUtilUnknown00
libSceImageUtil sceImageUtilUnknown01
libSceImageUtil sceImageUtilUnknown02
libSceImageUtil sceImageUtilUnknown03
libSceJitBridge _ZN19JITSharedDataMemory11shared_freeEPv_nid_postfix
libSceJitBridge _ZN19JITSharedDataMemory13shared_callocEmm_nid_postfix
libSceJitBridge _ZN19JITSharedDataMemory13shared_mallocEm_nid_postfix
libSceJitBridge _ZN19JITSharedDataMemory14shared_reallocEPvm_nid_postfix
libSceJitBridge _ZN19JITSharedDataMemory15shared_mallinfoEv_nid_postfix
libSceJitBridge _ZN19JITSharedDataMemory15shared_memalignEmm_nid_postfix
libSceJitBridge _ZN19JITSharedDataMemory27shared_malloc_max_footprintEv_nid_postfix
libSceJitBridge _ZN19JITSharedDataMemory9sbrk_infoE_nid_postfix
libSceJitBridge _ZN19JITSharedTextMemory11shared_freeEPv_nid_postfix
libSceJitBridge _ZN19JITSharedTextMemory15shared_mallinfoEv_nid_postfix
libSceJitBridge _ZN19JITSharedTextMemory15shared_memalignEmm_nid_postfix
libSceJitBridge _ZN19JITSharedTextMemory27shared_malloc_max_footprintEv_nid_postfix
libSceJitBridge _ZN19JITSharedTextMemory9sbrk_infoE_nid_postfix
libSceJitBridge _ZN9JITBridge12ringDoorbellEiNS_8DoorbellE_nid_postfix
libSceJitBridge _ZN9JITBridge12waitDoorbellEi_nid_postfix
libSceJitBridge _ZN9JITBridge14shutdownFromVMEPS_b_nid_postfix
libSceJitBridge _ZN9JITBridge16initializeFromVMEPKcPPcPKNS_11RestartDataE_nid_postfix
libSceJitBridge _ZN9JITBridge20shutdownFromCompilerEPS_b_nid_postfix
libSceJitBridge _ZN9JITBridge22initializeFromCompilerEPKcPPcPKNS_11RestartDataE_nid_postfix
libSceJitBridge _ZN9JITBridge8shutdownEb_nid_postfix
libSceJitBridge _ZNK9JITBridge20sharedMemoryAreaSizeEv_nid_postfix
... 147 more

Changed libraries (implemented exports)

Library Before After Change
libSceAsyncStorageInternal No exports 0/19 (0.00%) n/a
libSceAudiodecCpuDdp No exports 0/1 (0.00%) n/a
libSceAudiodecCpuDts No exports 0/1 (0.00%) n/a
libSceAudiodecCpuDtsHdLbr No exports 0/1 (0.00%) n/a
libSceAudiodecCpuDtsHdMa No exports 0/1 (0.00%) n/a
libSceAudiodecCpuLpcm No exports 0/2 (0.00%) n/a
libSceAudiodecCpuM4aac No exports 0/1 (0.00%) n/a
libSceAudiodReport No exports 0/8 (0.00%) n/a
libSceAvcap2 No exports 0/7 (0.00%) n/a
libSceDtcpIp No exports 0/22 (0.00%) n/a
libSceFontGs No exports 0/6 (0.00%) n/a
libSceGifParser No exports 0/6 (0.00%) n/a
libSceImageUtil No exports 0/4 (0.00%) n/a
libSceJitBridge No exports 0/23 (0.00%) n/a
libSceJscCompiler No exports 0/1 (0.00%) n/a
libSceMarlin No exports 0/70 (0.00%) n/a
libScePngParser No exports 0/6 (0.00%) n/a
libSceScm No exports 0/4 (0.00%) n/a
libSceVideoOutSecondary No exports 0/2 (0.00%) n/a
libSceVnaInternal No exports 0/27 (0.00%) n/a
libSceVnaWebsocket No exports 0/23 (0.00%) n/a
libSceWeb No exports 0/12 (0.00%) n/a

@MarcZX10

Copy link
Copy Markdown
Contributor Author

Closing: the export lists in this PR come from PS4 firmware inventories (idc/ps4libdoc 9.00), and nothing in the cited sources says the PS5 modules export the same symbols. PS4-only declarations are not submitted to this project.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant