feat(libkernel): implement sync #3104

Merged
babyhuey merged 1 commit from upstream-pr/3104 into main 2026-10-10 22:20:29 +00:00
babyhuey commented 2026-10-10 22:15:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by babyhuey on 2026-10-10T22:15:30Z.


What

Implements sync (Y2OqwJQ3lr8) in libkernel as a wrapper over the existing sceKernelSync, so the guest's sync flushes the paths it has written the same way.

Prospero Vibrate (PPSA99920) stops at it on main ecafb64f, now that preadv/pwritev (#3005) are in (catalog build, eboot.bin and sce_module/libc.prx unwrapped as #2605 requires; tracked in #1578):

  • main, Linux: app.elf: symbol lookup error: app.elf: undefined symbol: Y2OqwJQ3lr8
  • with this PR, Linux: no missing import; it runs until DisplayWindow finds no Vulkan display in the headless test container.
  • with this PR, Windows 11 (MinGW-w64 GCC 15.2, Release, RTX 3080): it creates its swapchain, opens a window titled Prospero Vibrate | FPS: 14.38 (419) and shows its full UI (header, Live, Presets, Custom, Timer and Settings tabs, motor sliders, "State: Idle"), and stays up until killed. Details in #3005.

Tested

Linux (Ubuntu 24.04, GCC 13, Release) on ecafb64f: guest_kernel_sync passes 5/5 (--repeat until-fail:5). The new case writes a file, deletes it and calls sync, and checks that the deleted path is no longer recorded, as it does for sceKernelSync. Windows 11: guest_kernel_sync 5/5 and the Vibrate run above, on the same commit stacked on #3005 before it merged. check_conventions.py passes.

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 in TechnicalDebt
  • 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
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4814817819 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3104). Originally posted by [babyhuey](https://github.com/babyhuey) on 2026-10-10T22:15:30Z. --- ### What Implements `sync` (`Y2OqwJQ3lr8`) in libkernel as a wrapper over the existing `sceKernelSync`, so the guest's `sync` flushes the paths it has written the same way. Prospero Vibrate (PPSA99920) stops at it on `main` ecafb64f, now that `preadv`/`pwritev` (#3005) are in (catalog build, `eboot.bin` and `sce_module/libc.prx` unwrapped as #2605 requires; tracked in #1578): - `main`, Linux: `app.elf: symbol lookup error: app.elf: undefined symbol: Y2OqwJQ3lr8` - with this PR, Linux: no missing import; it runs until `DisplayWindow` finds no Vulkan display in the headless test container. - with this PR, Windows 11 (MinGW-w64 GCC 15.2, Release, RTX 3080): it creates its swapchain, opens a window titled `Prospero Vibrate | FPS: 14.38 (419)` and shows its full UI (header, Live, Presets, Custom, Timer and Settings tabs, motor sliders, "State: Idle"), and stays up until killed. Details in #3005. ### Tested Linux (Ubuntu 24.04, GCC 13, Release) on ecafb64f: `guest_kernel_sync` passes 5/5 (`--repeat until-fail:5`). The new case writes a file, deletes it and calls `sync`, and checks that the deleted path is no longer recorded, as it does for `sceKernelSync`. Windows 11: `guest_kernel_sync` 5/5 and the Vibrate run above, on the same commit stacked on #3005 before it merged. `check_conventions.py` passes. ### 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 in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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] AI-assisted: yes
github-actions[bot] commented 2026-10-10 22:15:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T22:15:52Z.


Progress report (3c46fa6 → 97e81c4)

➖ System libraries: 84.9% (+0.0%, +1 implemented functions)

✅ 1 implemented
Library Name
libkernel sync_nid_postfix
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6102755516 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3104#issuecomment-6102755516). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-10T22:15:52Z. --- <!-- progress-report --> ### Progress report (3c46fa6 → 97e81c4) ➖ **System libraries**: 84.9% (+0.0%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libkernel | `sync_nid_postfix` | </details>
adriadam10 commented 2026-10-10 22:20:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T22:20:26Z.


Checked the build and guest_kernel_sync on Linux; the new case fails to link without the change (the wrapper doesn't exist) and passes with it. sync is a thin wrapper over sceKernelSync, no open PR adds it; merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6102791549 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3104#issuecomment-6102791549). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-10T22:20:26Z. --- Checked the build and `guest_kernel_sync` on Linux; the new case fails to link without the change (the wrapper doesn't exist) and passes with it. `sync` is a thin wrapper over `sceKernelSync`, no open PR adds it; merging.
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!3104
No description provided.