feat(libSceNpCommon): implement sce::np::EventFlag and sceNpWaitEventFlag #13270

Merged
hypermoist merged 1 commit from upstream-pr/13270 into main 2026-11-06 13:22:30 +00:00
hypermoist commented 2026-10-30 10:45:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hypermoist on 2026-10-30T10:45:03Z.


What

Implements sce::np::EventFlag (15 exports) and the C export sceNpWaitEventFlag from libSceNpCommon.sprx of firmware 13.60 (read from disassembly, not measured on a console).

  • Already stubs on main: 7 of them had placeholder int (void) declarations: Create, Open, Destroy, Set, Poll, D0 and D2.
  • Missing from AnyPS5: the other 9 are exported by the module but were not declared: C1, C2, D1, ctor, dtor, Wait, Clear, Cancel and sceNpWaitEventFlag.
  • Left as a stub: EventFlag::IsInit, because open #12823 implements it.

sceNpWaitEventFlag(flag, pattern, mode, result, timeout*):

  • calls sceKernelWaitEventFlag with the same arguments;
  • maps the kernel timeout 0x8002003C to 0x8055800B and 0x80020055 (cancelled) to 0x80558010;
  • otherwise returns only negative results.

NpEventFlagObject (declared in Api.hpp, 24 bytes): vtable, KernelEventFlag flag, then int32_t state at +0x10. The state is 0 when uninitialized, 1 when created and 2 when opened. The vtable is {0, 0, D1, D0}.

  • C1/C2 and ctor: set the state to 0. C1/C2 also set the vtable.
  • D1/D2 and dtor: call sceKernelCloseEventFlag (opened) or sceKernelDeleteEventFlag (created). D1/D2 also reset the vtable. D0 uses sceNpCloseEventFlag / sceNpDeleteEventFlag and then frees through sce::np::Object::operator delete(void*).
  • Create(const char* name, uint32_t attr) / Open(const char* name):
    • return 0x80559E03 when already initialized;
    • otherwise call sceNpCreateEventFlag(&flag, name, attr, 0) / sceNpOpenEventFlag(&flag, name) and return its result as is, setting the state on success.
  • Destroy: closes or deletes by state and always clears the state.
  • Set(pattern) / Clear(pattern): call sceKernelSetEventFlag / sceKernelClearEventFlag directly.
  • Poll(pattern, mode, result*): calls sceNpPollEventFlag. Both these and Set/Clear keep only negative results.
  • Wait(pattern, mode, result*, uint32_t usec): calls sceNpWaitEventFlag, passing a pointer to its own copy of the timeout, or null when usec is 0, so 0 waits without a timeout.
  • Cancel(pattern): calls sceNpCancelEventFlag with a local waiter count and returns its result.

Where the module halts: before Create or Open, Set, Poll, Wait, Clear and Cancel assert IsInit() and panic. AnyPS5 throws std::invalid_argument, following the libSceJson2 exports, and the debt file records it.

Tested

Linux (CachyOS, GCC 16.2, Release): ctest --test-dir build -R 'np_common|public_headers' --output-on-failure, 70/70 passed. guest_np_common_runtime passed 3 of 3 runs, in 0.03 s each. TestEventFlagObjects in GuestNpCommonRuntime.cpp uses real kernel event flags and a thread to check:

  • the throw before Create;
  • a second Create or Open returning 0x80559E03;
  • a busy Poll;
  • Set followed by Poll;
  • a timed-out Wait returning 0x8055800B;
  • Wait with timeout 0 returning for bits already set;
  • Clear keeping only the bits of its pattern;
  • Cancel ending a blocked Wait on another thread with 0x80558010;
  • sceNpWaitEventFlag's timeout mapping;
  • Open by name on a shared flag, with Destroy closing the opened handle and leaving the creator's;
  • D0 freeing through the allocator stored by Object::operator new.

Mutation check: I changed 8 single lines of the new functions, one at a time; the test fails for all 8. The changes were:

  • either error mapping in sceNpWaitEventFlag dropped;
  • Wait always passing a timeout;
  • Open recording "created";
  • the double-Create check removed;
  • Clear ignoring its pattern;
  • Poll ignoring the kernel;
  • Destroy not clearing the state.

No firmware differential: these methods wrap kernel event flags. A unicorn run would only exercise the glue against a fake kernel, and I can't swap the kernel under AnyPS5. The contract above comes from the disassembly, including the vtable relocations and the C1/C2 and D1/D2 aliases (one address each).

Windows not built. Not run on a console.

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: #13130. Landing order for the overlaps the PR overlap comment lists:
    • #13130 (mine) lands first, then this PR, then #13277 (mine). All three add the same NP_ERROR_OBJECT_ALREADY_INITIALIZED constant in the same place; after #13130 lands, I merge main here and keep its copy. #13277 now declares Depends on: #13130, #13270.
    • This PR lands before #13120. #13120 declares 9 of these exports as NotImplemented stubs (the ones missing from main), so it drops them from InventoryExports.cpp after this lands. Agreed with its author (comment): #13120 has removed these declarations and declares Depends on: #13130, #13270, #13277, #13281.
    • Neighbouring lines only, no shared exports: #11601, #12823, #12839, #12852, #12859, #12866, #12899 and #12919 touch nearby stub, declaration, include, test or debt lines. Either order works; whichever lands second needs a trivial merge, and I will do it on mine.
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

Assisted With AI: Yes. All tests were run locally on computer hardware (AMD Ryzen 5 5600G, 32 GB RAM, NVIDIA GeForce RTX 3060, CachyOS Linux 7.3, GCC 16.2), not on an actual console.

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5083104455 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13270). Originally posted by [hypermoist](https://github.com/hypermoist) on 2026-10-30T10:45:03Z. --- ### What Implements `sce::np::EventFlag` (15 exports) and the C export `sceNpWaitEventFlag` from `libSceNpCommon.sprx` of firmware 13.60 (read from disassembly, not measured on a console). - **Already stubs on `main`:** 7 of them had placeholder `int (void)` declarations: `Create`, `Open`, `Destroy`, `Set`, `Poll`, `D0` and `D2`. - **Missing from AnyPS5:** the other 9 are exported by the module but were not declared: `C1`, `C2`, `D1`, `ctor`, `dtor`, `Wait`, `Clear`, `Cancel` and `sceNpWaitEventFlag`. - **Left as a stub:** `EventFlag::IsInit`, because open #12823 implements it. **`sceNpWaitEventFlag(flag, pattern, mode, result, timeout*)`:** - calls `sceKernelWaitEventFlag` with the same arguments; - maps the kernel timeout `0x8002003C` to `0x8055800B` and `0x80020055` (cancelled) to `0x80558010`; - otherwise returns only negative results. **`NpEventFlagObject`** (declared in `Api.hpp`, 24 bytes): vtable, `KernelEventFlag flag`, then `int32_t state` at +0x10. The state is 0 when uninitialized, 1 when created and 2 when opened. The vtable is `{0, 0, D1, D0}`. - **C1/C2 and `ctor`:** set the state to 0. C1/C2 also set the vtable. - **D1/D2 and `dtor`:** call `sceKernelCloseEventFlag` (opened) or `sceKernelDeleteEventFlag` (created). D1/D2 also reset the vtable. `D0` uses `sceNpCloseEventFlag` / `sceNpDeleteEventFlag` and then frees through `sce::np::Object::operator delete(void*)`. - **`Create(const char* name, uint32_t attr)` / `Open(const char* name)`:** - return `0x80559E03` when already initialized; - otherwise call `sceNpCreateEventFlag(&flag, name, attr, 0)` / `sceNpOpenEventFlag(&flag, name)` and return its result as is, setting the state on success. - **`Destroy`:** closes or deletes by state and always clears the state. - **`Set(pattern)` / `Clear(pattern)`:** call `sceKernelSetEventFlag` / `sceKernelClearEventFlag` directly. - **`Poll(pattern, mode, result*)`:** calls `sceNpPollEventFlag`. Both these and `Set`/`Clear` keep only negative results. - **`Wait(pattern, mode, result*, uint32_t usec)`:** calls `sceNpWaitEventFlag`, passing a pointer to its own copy of the timeout, or null when `usec` is 0, so 0 waits without a timeout. - **`Cancel(pattern)`:** calls `sceNpCancelEventFlag` with a local waiter count and returns its result. **Where the module halts:** before `Create` or `Open`, `Set`, `Poll`, `Wait`, `Clear` and `Cancel` assert `IsInit()` and panic. AnyPS5 throws `std::invalid_argument`, following the libSceJson2 exports, and the debt file records it. ### Tested Linux (CachyOS, GCC 16.2, Release): `ctest --test-dir build -R 'np_common|public_headers' --output-on-failure`, 70/70 passed. `guest_np_common_runtime` passed 3 of 3 runs, in 0.03 s each. `TestEventFlagObjects` in `GuestNpCommonRuntime.cpp` uses real kernel event flags and a thread to check: - the throw before `Create`; - a second `Create` or `Open` returning `0x80559E03`; - a busy `Poll`; - `Set` followed by `Poll`; - a timed-out `Wait` returning `0x8055800B`; - `Wait` with timeout 0 returning for bits already set; - `Clear` keeping only the bits of its pattern; - `Cancel` ending a blocked `Wait` on another thread with `0x80558010`; - `sceNpWaitEventFlag`'s timeout mapping; - `Open` by name on a shared flag, with `Destroy` closing the opened handle and leaving the creator's; - `D0` freeing through the allocator stored by `Object::operator new`. **Mutation check:** I changed 8 single lines of the new functions, one at a time; the test fails for all 8. The changes were: - either error mapping in `sceNpWaitEventFlag` dropped; - `Wait` always passing a timeout; - `Open` recording "created"; - the double-`Create` check removed; - `Clear` ignoring its pattern; - `Poll` ignoring the kernel; - `Destroy` not clearing the state. **No firmware differential:** these methods wrap kernel event flags. A unicorn run would only exercise the glue against a fake kernel, and I can't swap the kernel under AnyPS5. The contract above comes from the disassembly, including the vtable relocations and the C1/C2 and D1/D2 aliases (one address each). Windows not built. Not run on a console. ### 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: #13130. Landing order for the overlaps the PR overlap comment lists: - **#13130 (mine) lands first, then this PR, then #13277 (mine).** All three add the same `NP_ERROR_OBJECT_ALREADY_INITIALIZED` constant in the same place; after #13130 lands, I merge `main` here and keep its copy. #13277 now declares `Depends on: #13130, #13270`. - **This PR lands before #13120.** #13120 declares 9 of these exports as `NotImplemented` stubs (the ones missing from `main`), so it drops them from `InventoryExports.cpp` after this lands. Agreed with its author ([comment](https://github.com/boykopovar/AnyPS5/pull/13120#issuecomment-6522956813)): #13120 has removed these declarations and declares `Depends on: #13130, #13270, #13277, #13281`. - **Neighbouring lines only, no shared exports:** #11601, #12823, #12839, #12852, #12859, #12866, #12899 and #12919 touch nearby stub, declaration, include, test or debt lines. Either order works; whichever lands second needs a trivial merge, and I will do it on mine. - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes Assisted With AI: Yes. All tests were run locally on computer hardware (AMD Ryzen 5 5600G, 32 GB RAM, NVIDIA GeForce RTX 3060, CachyOS Linux 7.3, GCC 16.2), not on an actual console. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-30 11:00:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T11:00:10Z.

Review: APPROVED


Reviewed — looks good

The EventFlag implementation and its focused tests are consistent with the reviewed source, and no blocking defect was found at head 5018820e73e03373871e52340aed3dce9fcc55a5.

What I ran

Reviewed head 5018820e73e03373871e52340aed3dce9fcc55a5 against PR base d2250771ab27167fdc8e08931708f772ec39b467. A merge preview onto current main 3948413d701b093b32a194f5fe5525ea8d5f5079 was clean (tree 68b54ede7df9a0f2c610b6a2409685b76d9b4232). Environment: Debian 12 x86-64, Python 3.11.2, Git 2.39.5, GCC 12.2.0. I did not build or compile locally. The Linux CTest and mutation results below are reported by the author, not run by me.

git diff --check d2250771ab27167fdc8e08931708f772ec39b467...5018820e73e03373871e52340aed3dce9fcc55a5
python3 tools/check_conventions.py --base d2250771ab27167fdc8e08931708f772ec39b467 --head 5018820e73e03373871e52340aed3dce9fcc55a5 --title 'feat(libSceNpCommon): implement sce::np::EventFlag and sceNpWaitEventFlag' --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13270-5018820e73e0/pr-body.md
python3 core/libs/tests/test_public_headers.py --audit-only
python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base d2250771ab27167fdc8e08931708f772ec39b467 --head 5018820e73e03373871e52340aed3dce9fcc55a5 --json
ctest --test-dir build -R 'np_common|public_headers' --output-on-failure  # author-reported Linux run

Results

Check Result
git diff --check Passed; no output.
Repository conventions Passed.
Public-header audit at exact PR worktree Passed: 373 libraries and 14,593 exports checked.
ABI lexical audit Passed with 7 warnings for private helper definitions without header declarations; it does not certify binary ABI. None identifies the EventFlag exports reviewed here.
Author-reported Linux tests 70/70 selected tests passed; guest_np_common_runtime passed 3/3 runs.
Hosted CI Intake, eligibility, conventions, labels, and progress report passed. Windows was pending; Linux and specialized jobs were skipped.
Current-main merge preview Clean.
Unedited local command output

git diff --check produced no output.

All conventions checks passed.
373 libraries, 14593 exports: unique declarations and umbrella coverage verified

Negative control

Assertion Change reported by the author Result reported by the author
EventFlag state, timeout/cancel mapping, clear pattern, poll behavior, and destroy state are covered Eight one-line mutations across those behaviors The focused runtime test failed for all eight mutations.

Findings

Blocking

None found in the reviewed change.

Non-blocking

Open PR #13120 currently declares several overlapping EventFlag exports as throwing placeholders. This PR removes the corresponding placeholders from its own pending-export files, and its description already notes that whichever PR lands second must remove the duplicate inventory definitions. The overlap is a landing-order coordination item, not a defect in this PR against current main.

Sources

Not verified

I did not independently run the author-reported Linux tests or mutation checks, build on Windows, or test on console hardware. Hosted Windows CI was pending at the last check.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5711293692 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13270#pullrequestreview-5711293692). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T11:00:10Z. **Review:** APPROVED --- # Reviewed — looks good The EventFlag implementation and its focused tests are consistent with the reviewed source, and no blocking defect was found at head `5018820e73e03373871e52340aed3dce9fcc55a5`. ## What I ran Reviewed head `5018820e73e03373871e52340aed3dce9fcc55a5` against PR base `d2250771ab27167fdc8e08931708f772ec39b467`. A merge preview onto current `main` `3948413d701b093b32a194f5fe5525ea8d5f5079` was clean (tree `68b54ede7df9a0f2c610b6a2409685b76d9b4232`). Environment: Debian 12 x86-64, Python 3.11.2, Git 2.39.5, GCC 12.2.0. I did not build or compile locally. The Linux CTest and mutation results below are reported by the author, not run by me. ```sh git diff --check d2250771ab27167fdc8e08931708f772ec39b467...5018820e73e03373871e52340aed3dce9fcc55a5 python3 tools/check_conventions.py --base d2250771ab27167fdc8e08931708f772ec39b467 --head 5018820e73e03373871e52340aed3dce9fcc55a5 --title 'feat(libSceNpCommon): implement sce::np::EventFlag and sceNpWaitEventFlag' --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13270-5018820e73e0/pr-body.md python3 core/libs/tests/test_public_headers.py --audit-only python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base d2250771ab27167fdc8e08931708f772ec39b467 --head 5018820e73e03373871e52340aed3dce9fcc55a5 --json ctest --test-dir build -R 'np_common|public_headers' --output-on-failure # author-reported Linux run ``` ## Results | Check | Result | |---|---| | `git diff --check` | Passed; no output. | | Repository conventions | Passed. | | Public-header audit at exact PR worktree | Passed: 373 libraries and 14,593 exports checked. | | ABI lexical audit | Passed with 7 warnings for private helper definitions without header declarations; it does not certify binary ABI. None identifies the EventFlag exports reviewed here. | | Author-reported Linux tests | 70/70 selected tests passed; `guest_np_common_runtime` passed 3/3 runs. | | Hosted CI | Intake, eligibility, conventions, labels, and progress report passed. Windows was pending; Linux and specialized jobs were skipped. | | Current-main merge preview | Clean. | <details><summary>Unedited local command output</summary> `git diff --check` produced no output. ```text All conventions checks passed. 373 libraries, 14593 exports: unique declarations and umbrella coverage verified ``` </details> ## Negative control | Assertion | Change reported by the author | Result reported by the author | |---|---|---| | EventFlag state, timeout/cancel mapping, clear pattern, poll behavior, and destroy state are covered | Eight one-line mutations across those behaviors | The focused runtime test failed for all eight mutations. | ## Findings ### Blocking None found in the reviewed change. ### Non-blocking Open PR [#13120](https://github.com/boykopovar/AnyPS5/blob/7f86a794b342b40790bd32bb8b9c2e91208f3fb0/core/libs/prx/libSceNpCommon/InventoryExports.cpp#L1979) currently declares several overlapping EventFlag exports as throwing placeholders. This PR removes the corresponding placeholders from its own pending-export files, and its description already notes that whichever PR lands second must remove the duplicate inventory definitions. The overlap is a landing-order coordination item, not a defect in this PR against current `main`. ## Sources - [EventFlag object methods and `sceNpWaitEventFlag`](https://github.com/boykopovar/AnyPS5/blob/5018820e73e03373871e52340aed3dce9fcc55a5/core/libs/prx/libSceNpCommon/Runtime.cpp#L349-L382) and [object lifecycle and wait operations](https://github.com/boykopovar/AnyPS5/blob/5018820e73e03373871e52340aed3dce9fcc55a5/core/libs/prx/libSceNpCommon/Runtime.cpp#L854-L930). - [EventFlag runtime tests](https://github.com/boykopovar/AnyPS5/blob/5018820e73e03373871e52340aed3dce9fcc55a5/core/libs/tests/GuestNpCommonRuntime.cpp). - [Overlapping placeholder exports in #13120](https://github.com/boykopovar/AnyPS5/blob/7f86a794b342b40790bd32bb8b9c2e91208f3fb0/core/libs/prx/libSceNpCommon/InventoryExports.cpp#L1979-L2011) and [`sceNpWaitEventFlag` placeholder](https://github.com/boykopovar/AnyPS5/blob/7f86a794b342b40790bd32bb8b9c2e91208f3fb0/core/libs/prx/libSceNpCommon/InventoryExports.cpp#L3031). ## Not verified I did not independently run the author-reported Linux tests or mutation checks, build on Windows, or test on console hardware. Hosted Windows CI was pending at the last check.
MarcZX10 commented 2026-10-30 11:46:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T11:46:23Z.

Review: CHANGES_REQUESTED


Re-checked — new overlap report, changes requested

I found no new implementation defect, but the refreshed overlap report shows unresolved shared exports and source lines while the checklist still says Depends on: none; repository rules require an agreed landing order for these overlaps.

What I ran

Reviewed head 5018820e73e03373871e52340aed3dce9fcc55a against PR base d2250771ab27167fdc8e08931708f772ec39b467. Current main is d823f56fbf088fcb7b1ebadfbc95acc4d3433a8b; its merge preview is clean, but it is not included in this head. Environment: Debian 12 x86_64, Python 3.11.2, GCC 12.2.0. No local build/tests were run.

python3 tools/pr_overlap.py --branch refs/pr/13270 --repo boykopovar/AnyPS5 --jobs 8
git merge-tree --write-tree d823f56fbf088fcb7b1ebadfbc95acc4d3433a8b 5018820e73e03373871e52340aed3dce9fcc55a5
gh pr checks 13270 --repo boykopovar/AnyPS5 --watch=false

Results

Check Result
Current-main merge preview Clean; current main is not in the PR head
Overlap scan Shared source/test/debt insertion points with open PRs; nine identical exports with #13120; overlapping constant/source lines with #13130 and #13277
Hosted CI Intake, eligibility, labels, report, conventions, and Windows passed; Linux and specialized jobs skipped
Author-reported tests Linux runtime tests 70/70; targeted runtime test 3/3 runs and eight mutation checks failed as intended; not rerun locally
Observed overlap and CI output
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
[PR 11601] core/libs/tests/GuestNpCommonRuntime.cpp
[PR 12823] core/libs/prx/libSceNpCommon/PendingExportsRound7.cpp; core/libs/prx/libSceNpCommon/include/Api.hpp; docs/dev/debt/libSceNpCommon.md
[PR 12839] core/libs/tests/GuestNpCommonRuntime.cpp
[PR 12852] core/libs/prx/libSceNpCommon/PendingExportsRound7.cpp; core/libs/prx/libSceNpCommon/include/Api.hpp; core/libs/tests/GuestNpCommonRuntime.cpp; docs/dev/debt/libSceNpCommon.md
[PR 12859] core/libs/prx/libSceNpCommon/include/Api.hpp
[PR 12866] core/libs/prx/libSceNpCommon/include/Api.hpp; docs/dev/debt/libSceNpCommon.md
[PR 12899] core/libs/prx/libSceNpCommon/Runtime.cpp
[PR 13120] same exports: _ZN3sce2np9EventFlag4WaitEmjPmj, _ZN3sce2np9EventFlag4ctorEv, _ZN3sce2np9EventFlag4dtorEv, _ZN3sce2np9EventFlag5ClearEm, _ZN3sce2np9EventFlag6CancelEm, _ZN3sce2np9EventFlagC1Ev, _ZN3sce2np9EventFlagC2Ev, _ZN3sce2np9EventFlagD1Ev, sceNpWaitEventFlag
[PR 13277] core/libs/prx/libSceNpCommon/Runtime.cpp; core/libs/prx/libSceNpCommon/include/Api.hpp; core/libs/tests/GuestNpCommonRuntime.cpp; docs/dev/debt/libSceNpCommon.md
conventions pass
labels pass
report pass
windows pass
intake pass
eligibility pass
linux skipping
register-context skipping
relinker skipping
relinker-asan skipping
write-watch skipping
f413d46b1a8c3ad4e683e08fbfed5f3bcb23e3ce

Negative control

Not applicable to this recheck; the implementation and test assertions did not change.

Findings

Blocking

CONTRIBUTING.md requires agreeing with authors of overlapping open PRs on which lands first and recording that order with Depends on. #13270 documents several overlaps—including nine exports also declared as stubs by #13120 and a shared constant with #13130/#13277—but the checklist still says Depends on: none and the discussion does not record an agreed order. Please update the checklist after coordinating the order with the affected authors. Also refresh this branch onto current main; the merge preview is clean, but the rule requires an up-to-date base.

Non-blocking

The earlier Linux and Windows runtime results remain useful evidence for this unchanged head; I have not repeated those builds or tests.

Sources

Not verified

No local build or tests; no PS5 console behavior. The exact merge order and resolution of the listed shared edits remain unsettled.

To get this to a good state

Coordinate and record the landing order for the overlapping PRs, update Depends on accordingly, rebase onto current main, and rerun the relevant CI/tests on the new head. I will review that exact head again.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5711759776 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13270#pullrequestreview-5711759776). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T11:46:23Z. **Review:** CHANGES_REQUESTED --- # Re-checked — new overlap report, changes requested I found no new implementation defect, but the refreshed overlap report shows unresolved shared exports and source lines while the checklist still says `Depends on: none`; repository rules require an agreed landing order for these overlaps. ## What I ran Reviewed head `5018820e73e03373871e52340aed3dce9fcc55a` against PR base `d2250771ab27167fdc8e08931708f772ec39b467`. Current `main` is `d823f56fbf088fcb7b1ebadfbc95acc4d3433a8b`; its merge preview is clean, but it is not included in this head. Environment: Debian 12 x86_64, Python 3.11.2, GCC 12.2.0. No local build/tests were run. ```sh python3 tools/pr_overlap.py --branch refs/pr/13270 --repo boykopovar/AnyPS5 --jobs 8 git merge-tree --write-tree d823f56fbf088fcb7b1ebadfbc95acc4d3433a8b 5018820e73e03373871e52340aed3dce9fcc55a5 gh pr checks 13270 --repo boykopovar/AnyPS5 --watch=false ``` ## Results | Check | Result | |---|---| | Current-main merge preview | Clean; current `main` is not in the PR head | | Overlap scan | Shared source/test/debt insertion points with open PRs; nine identical exports with #13120; overlapping constant/source lines with #13130 and #13277 | | Hosted CI | Intake, eligibility, labels, report, conventions, and Windows passed; Linux and specialized jobs skipped | | Author-reported tests | Linux runtime tests 70/70; targeted runtime test 3/3 runs and eight mutation checks failed as intended; not rerun locally | <details><summary>Observed overlap and CI output</summary> ```text Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on. [PR 11601] core/libs/tests/GuestNpCommonRuntime.cpp [PR 12823] core/libs/prx/libSceNpCommon/PendingExportsRound7.cpp; core/libs/prx/libSceNpCommon/include/Api.hpp; docs/dev/debt/libSceNpCommon.md [PR 12839] core/libs/tests/GuestNpCommonRuntime.cpp [PR 12852] core/libs/prx/libSceNpCommon/PendingExportsRound7.cpp; core/libs/prx/libSceNpCommon/include/Api.hpp; core/libs/tests/GuestNpCommonRuntime.cpp; docs/dev/debt/libSceNpCommon.md [PR 12859] core/libs/prx/libSceNpCommon/include/Api.hpp [PR 12866] core/libs/prx/libSceNpCommon/include/Api.hpp; docs/dev/debt/libSceNpCommon.md [PR 12899] core/libs/prx/libSceNpCommon/Runtime.cpp [PR 13120] same exports: _ZN3sce2np9EventFlag4WaitEmjPmj, _ZN3sce2np9EventFlag4ctorEv, _ZN3sce2np9EventFlag4dtorEv, _ZN3sce2np9EventFlag5ClearEm, _ZN3sce2np9EventFlag6CancelEm, _ZN3sce2np9EventFlagC1Ev, _ZN3sce2np9EventFlagC2Ev, _ZN3sce2np9EventFlagD1Ev, sceNpWaitEventFlag [PR 13277] core/libs/prx/libSceNpCommon/Runtime.cpp; core/libs/prx/libSceNpCommon/include/Api.hpp; core/libs/tests/GuestNpCommonRuntime.cpp; docs/dev/debt/libSceNpCommon.md conventions pass labels pass report pass windows pass intake pass eligibility pass linux skipping register-context skipping relinker skipping relinker-asan skipping write-watch skipping f413d46b1a8c3ad4e683e08fbfed5f3bcb23e3ce ``` </details> ## Negative control Not applicable to this recheck; the implementation and test assertions did not change. ## Findings ### Blocking `CONTRIBUTING.md` requires agreeing with authors of overlapping open PRs on which lands first and recording that order with `Depends on`. #13270 documents several overlaps—including nine exports also declared as stubs by #13120 and a shared constant with #13130/#13277—but the checklist still says `Depends on: none` and the discussion does not record an agreed order. Please update the checklist after coordinating the order with the affected authors. Also refresh this branch onto current `main`; the merge preview is clean, but the rule requires an up-to-date base. ### Non-blocking The earlier Linux and Windows runtime results remain useful evidence for this unchanged head; I have not repeated those builds or tests. ## Sources - [Overlap and branch rules in CONTRIBUTING.md](https://github.com/boykopovar/AnyPS5/blob/d823f56fbf088fcb7b1ebadfbc95acc4d3433a8b/CONTRIBUTING.md#L57-L68) - [EventFlag implementation at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/5018820e73e03373871e52340aed3dce9fcc55a5/core/libs/prx/libSceNpCommon/Runtime.cpp) - [Placeholder exports in #13120](https://github.com/boykopovar/AnyPS5/blob/7f86a794b342b40790bd32bb8b9c2e91208f3fb/core/libs/prx/libSceNpCommon/InventoryExports.cpp) - [Overlapping PR #13130](https://github.com/boykopovar/AnyPS5/pull/13130), [#13277](https://github.com/boykopovar/AnyPS5/pull/13277) ## Not verified No local build or tests; no PS5 console behavior. The exact merge order and resolution of the listed shared edits remain unsettled. ## To get this to a good state Coordinate and record the landing order for the overlapping PRs, update `Depends on` accordingly, rebase onto current `main`, and rerun the relevant CI/tests on the new head. I will review that exact head again.
MarcZX10 commented 2026-10-30 12:24:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T12:24:27Z.

Review: CHANGES_REQUESTED


Re-checked — new head, changes still needed

The updated checklist now records #13130 as a dependency, but the branch conflicts with current main, does not include #13130's current head, and the overlapping export order with #13120 is still unconfirmed.

What I ran

Head d5c85970c505ad7bdcd2760e7eb5ab07a312d981; PR base 8e68a7d7b9f6aeedb0ca03eee115571640555988; current main 42d009f5f37c8f388b01fbfe38d2e704c792c46f. Environment: Linux x86_64, Python 3.11.2. No local build or C++ tests were run.

python3 tools/check_conventions.py --base 8e68a7d7b9f6aeedb0ca03eee115571640555988 --head d5c85970c505ad7bdcd2760e7eb5ab07a312d981 --title 'feat(libSceNpCommon): implement sce::np::EventFlag and sceNpWaitEventFlag'
python3 tools/pr_abi_audit.py --base 8e68a7d7b9f6aeedb0ca03eee115571640555988 --head d5c85970c505ad7bdcd2760e7eb5ab07a312d981 --json
python3 tools/pr_stack_check.py 13270 --repo boykopovar/AnyPS5

Results

Check Result
Conventions and diff check Passed.
ABI audit passed_with_warnings: 322 symbols, seven lexical warnings for the same private helper definitions; no EventFlag-specific warning.
Dependency/mergeability Current main preview conflicts in Runtime.cpp, include/Api.hpp, GuestNpCommonRuntime.cpp, and docs/dev/debt/libSceNpCommon.md. The current #13130 head 39318d9ed35ecd533e4d2494aa7b9b5f5e556007 is not included in this head.
Author-reported tests The author reports `np_common
Hosted CI Eligibility, conventions, portability and report passed on the previous check snapshot; current head's labels were queued and Windows was still in progress. Linux and specialized jobs were skipped.
Unedited audit summary
status: passed_with_warnings
symbols: 322
findings: 7
names: ['CalloutThread', 'HeapAllocate', 'HeapReallocate', 'HeapRelease', 'MemoryHeapAllocate', 'MemoryHeapReallocate', 'MemoryHeapRelease']

Findings

Blocking

  1. The nine shared NotImplemented exports with #13120 still have no agreed landing order. The PR author has proposed that #13270 land first, but the latest comment says the #13120 author has not confirmed. Please get and record that confirmation; if #13120 lands first, remove the duplicates here and list #13120 as a dependency.
  2. The branch's merge with main is stale: its current-main preview has content conflicts in the four files listed above. The stack check also shows that the current #13130 head is absent from this branch. Once #13130's dependency state is settled, update the stack onto the appropriate current base and resolve the conflicts.

Non-blocking

The EventFlag implementation is unchanged in this merge update. The author reports rerunning the focused tests on the new head; I did not reproduce them locally.

Sources

Not verified

No local build, C++ tests, Windows run, or console test. Linux and specialized hosted jobs were skipped. The ABI audit is lexical and does not prove binary ABI correctness.

To get this to a good state

Please agree on the #13120 order, ensure the current #13130 dependency head is incorporated at the appropriate time, and resolve the current-main conflicts. On the resulting head I will rerun conventions, ABI audit, diff check, and the stack/mergeability check; report the same focused test command on that head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5712181053 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13270#pullrequestreview-5712181053). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T12:24:27Z. **Review:** CHANGES_REQUESTED --- # Re-checked — new head, changes still needed The updated checklist now records `#13130` as a dependency, but the branch conflicts with current `main`, does not include #13130's current head, and the overlapping export order with #13120 is still unconfirmed. ## What I ran Head `d5c85970c505ad7bdcd2760e7eb5ab07a312d981`; PR base `8e68a7d7b9f6aeedb0ca03eee115571640555988`; current `main` `42d009f5f37c8f388b01fbfe38d2e704c792c46f`. Environment: Linux x86_64, Python 3.11.2. No local build or C++ tests were run. ```sh python3 tools/check_conventions.py --base 8e68a7d7b9f6aeedb0ca03eee115571640555988 --head d5c85970c505ad7bdcd2760e7eb5ab07a312d981 --title 'feat(libSceNpCommon): implement sce::np::EventFlag and sceNpWaitEventFlag' python3 tools/pr_abi_audit.py --base 8e68a7d7b9f6aeedb0ca03eee115571640555988 --head d5c85970c505ad7bdcd2760e7eb5ab07a312d981 --json python3 tools/pr_stack_check.py 13270 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | |---|---| | Conventions and diff check | Passed. | | ABI audit | `passed_with_warnings`: 322 symbols, seven lexical warnings for the same private helper definitions; no EventFlag-specific warning. | | Dependency/mergeability | Current `main` preview conflicts in `Runtime.cpp`, `include/Api.hpp`, `GuestNpCommonRuntime.cpp`, and `docs/dev/debt/libSceNpCommon.md`. The current #13130 head `39318d9ed35ecd533e4d2494aa7b9b5f5e556007` is not included in this head. | | Author-reported tests | The author reports `np_common|public_headers` 70/70 and `guest_np_common_runtime` 3/3 on this head. Not independently run here. | | Hosted CI | Eligibility, conventions, portability and report passed on the previous check snapshot; current head's labels were queued and Windows was still in progress. Linux and specialized jobs were skipped. | <details><summary>Unedited audit summary</summary> ```text status: passed_with_warnings symbols: 322 findings: 7 names: ['CalloutThread', 'HeapAllocate', 'HeapReallocate', 'HeapRelease', 'MemoryHeapAllocate', 'MemoryHeapReallocate', 'MemoryHeapRelease'] ``` </details> ## Findings ### Blocking 1. The nine shared `NotImplemented` exports with #13120 still have no agreed landing order. The PR author has proposed that #13270 land first, but the latest comment says the #13120 author has not confirmed. Please get and record that confirmation; if #13120 lands first, remove the duplicates here and list #13120 as a dependency. 2. The branch's merge with `main` is stale: its current-main preview has content conflicts in the four files listed above. The stack check also shows that the current #13130 head is absent from this branch. Once #13130's dependency state is settled, update the stack onto the appropriate current base and resolve the conflicts. ### Non-blocking The EventFlag implementation is unchanged in this merge update. The author reports rerunning the focused tests on the new head; I did not reproduce them locally. ## Sources - [EventFlag implementation at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/d5c85970c505ad7bdcd2760e7eb5ab07a312d981/core/libs/prx/libSceNpCommon/Runtime.cpp) - [Current #13120 landing-order discussion](https://github.com/boykopovar/AnyPS5/pull/13120#issuecomment-6522668428) - [Repository rule for coordinating overlapping exports](https://github.com/boykopovar/AnyPS5/blob/42d009f5f37c8f388b01fbfe38d2e704c792c46f/CONTRIBUTING.md#L64-L70) ## Not verified No local build, C++ tests, Windows run, or console test. Linux and specialized hosted jobs were skipped. The ABI audit is lexical and does not prove binary ABI correctness. ## To get this to a good state Please agree on the #13120 order, ensure the current #13130 dependency head is incorporated at the appropriate time, and resolve the current-main conflicts. On the resulting head I will rerun conventions, ABI audit, diff check, and the stack/mergeability check; report the same focused test command on that head.
MarcZX10 commented 2026-10-30 13:29:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T13:29:14Z.

Review: APPROVED


Re-checked — new head, looks good

The earlier conflict and export-order blockers are addressed by the updated merge preview and the now-confirmed landing order; I found no blocking defect in this head.

What I ran

Reviewed head 1f264fdc6480396108557b4e2e2f0731212fd65e against PR base 42d009f5f37c8f388b01fbfe38d2e704c792c46f. The stack preview against current main da026c70655a132031d45e2008c24f993870d801 was clean. The declared order is #13130 → #13270 → #13277; #13130 remains open and its head is not included yet. Environment: Debian GNU/Linux x86_64, Python 3.11.2. I did not configure, build, compile, or run C++ tests.

python3 AnyPS5/tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13270
python3 AnyPS5/tools/pr_abi_audit.py --repo /marc/AnyPS5 --base 42d009f5f37c8f388b01fbfe38d2e704c792c46f --head 1f264fdc6480396108557b4e2e2f0731212fd65e --json | python3 -c 'import json,sys; d=json.load(sys.stdin); print(json.dumps({"status":d["status"],"findings":d["findings"]},indent=2))'
gh pr checks 13270 --repo boykopovar/AnyPS5
gh run view 41056881552 --repo boykopovar/AnyPS5 --json headSha,status,conclusion | python3 -c 'import json,sys; d=json.load(sys.stdin); print(json.dumps(d,separators=(",",":")))'

Results

Check Result
Patch whitespace and conventions/template Passed in the precheck report.
ABI audit passed_with_warnings; seven lexical warnings for helper definitions in Runtime.cpp. I confirmed the named helpers are unchanged by this PR; none is an EventFlag-specific finding.
Dependency/merge preview #13270 is clean against current main; the current #13130 dependency head is not included while it remains open. #13120 confirms it removed the overlapping stubs and now depends on the implementation PRs.
Author-reported focused tests On head 1f264fdc6480396108557b4e2e2f0731212fd65e, the author reports 70/70 `np_common
Full precheck Incomplete because its isolated checkout lacks the workspace-local ABI-audit and test-quality scripts. I ran the ABI audit separately; the test-quality heuristic did not run.
Hosted CI Windows passed on exact head 1f264fdc6480396108557b4e2e2f0731212fd65e; conventions and labels were pending at final refresh. Linux and specialized jobs were skipped.
Unedited output from checks I ran
All conventions checks passed.
{
  "status": "passed_with_warnings",
  "findings": [
    {
      "symbol": "CalloutThread",
      "kind": "public-declaration-not-found",
      "message": "No APS5_VABI declaration was found in a header; verify whether this is intentionally private or missing from the public interface."
    },
    {
      "symbol": "HeapAllocate",
      "kind": "public-declaration-not-found",
      "message": "No APS5_VABI declaration was found in a header; verify whether this is intentionally private or missing from the public interface."
    },
    {
      "symbol": "HeapReallocate",
      "kind": "public-declaration-not-found",
      "message": "No APS5_VABI declaration was found in a header; verify whether this is intentionally private or missing from the public interface."
    },
    {
      "symbol": "HeapRelease",
      "kind": "public-declaration-not-found",
      "message": "No APS5_VABI declaration was found in a header; verify whether this is intentionally private or missing from the public interface."
    },
    {
      "symbol": "MemoryHeapAllocate",
      "kind": "public-declaration-not-found",
      "message": "No APS5_VABI declaration was found in a header; verify whether this is intentionally private or missing from the public interface."
    },
    {
      "symbol": "MemoryHeapReallocate",
      "kind": "public-declaration-not-found",
      "message": "No APS5_VABI declaration was found in a header; verify whether this is intentionally private or missing from the public interface."
    },
    {
      "symbol": "MemoryHeapRelease",
      "kind": "public-declaration-not-found",
      "message": "No APS5_VABI declaration was found in a header; verify whether this is intentionally private or missing from the public interface."
    }
  ]
}
PR #13130: **clean** against current base; head `686a5ca0be58c50e23a91516dc0a332d45516be0`; changed paths: none reported
PR #13270: **clean** against current base; head `1f264fdc6480396108557b4e2e2f0731212fd65e`; changed paths: none reported
#13130 → #13270: **current_dependency_head_not_included**
windows	pass	12m25s	https://github.com/boykopovar/AnyPS5/actions/runs/41056881552/job/124073191280
conventions	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41060475889/job/124078642398
labels	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41060476331/job/124078644132
linux	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41056881552/job/124073194165
register-context	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41056881552/job/124073193241
relinker	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41056881552/job/124073192980
relinker-asan	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41056881552/job/124073193870
write-watch	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41056881552/job/124073193337
eligibility	pass	5s	https://github.com/boykopovar/AnyPS5/actions/runs/41056881552/job/124066535990
library-portability	pass	1m5s	https://github.com/boykopovar/AnyPS5/actions/runs/41056881465/job/124066536154
report	pass	49s	https://github.com/boykopovar/AnyPS5/actions/runs/41056881605/job/124066536040
{"conclusion":"success","headSha":"1f264fdc6480396108557b4e2e2f0731212fd65e","status":"completed"}

The precheck reported these unavailable helper files in its isolated checkout:

/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13270-1f264fdc6480/head-1f264fdc6480-98308ce0/tools/pr_abi_audit.py': [Errno 2] No such file or directory
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13270-1f264fdc6480/head-1f264fdc6480-98308ce0/tools/pr_test_quality.py': [Errno 2] No such file or directory

Negative control

Assertion Change described by PR author Result
EventFlag behavior is distinguished from the prior implementation Eight one-line mutations to error mapping, timeout handling, state tracking, duplicate initialization, Clear, Poll, and Destroy Author reports the test failed for all eight mutations on the earlier implementation head; I did not independently repeat these mutations on this head.

Findings

Blocking

None found in the reviewed head.

Non-blocking

The declared #13130 dependency remains open and its head is not part of this PR head. The PR now states the intended landing order and plans to merge the dependency after it lands; the preview against current main is clean. The live needs rebase label is not accompanied by a conflict in the current preview, so I am not asking for a rebase solely to clear the label.

Sources

Not verified

I did not independently run the Linux tests or mutation checks, or verify firmware behavior on a console. Hosted Windows passed on the exact head; hosted Linux and specialized jobs were skipped, and the latest conventions/labels runs were pending.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5712940717 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13270#pullrequestreview-5712940717). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T13:29:14Z. **Review:** APPROVED --- # Re-checked — new head, looks good The earlier conflict and export-order blockers are addressed by the updated merge preview and the now-confirmed landing order; I found no blocking defect in this head. ## What I ran Reviewed head `1f264fdc6480396108557b4e2e2f0731212fd65e` against PR base `42d009f5f37c8f388b01fbfe38d2e704c792c46f`. The stack preview against current `main` `da026c70655a132031d45e2008c24f993870d801` was clean. The declared order is #13130 → #13270 → #13277; #13130 remains open and its head is not included yet. Environment: Debian GNU/Linux x86_64, Python 3.11.2. I did not configure, build, compile, or run C++ tests. ```sh python3 AnyPS5/tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13270 python3 AnyPS5/tools/pr_abi_audit.py --repo /marc/AnyPS5 --base 42d009f5f37c8f388b01fbfe38d2e704c792c46f --head 1f264fdc6480396108557b4e2e2f0731212fd65e --json | python3 -c 'import json,sys; d=json.load(sys.stdin); print(json.dumps({"status":d["status"],"findings":d["findings"]},indent=2))' gh pr checks 13270 --repo boykopovar/AnyPS5 gh run view 41056881552 --repo boykopovar/AnyPS5 --json headSha,status,conclusion | python3 -c 'import json,sys; d=json.load(sys.stdin); print(json.dumps(d,separators=(",",":")))' ``` ## Results | Check | Result | |---|---| | Patch whitespace and conventions/template | Passed in the precheck report. | | ABI audit | `passed_with_warnings`; seven lexical warnings for helper definitions in `Runtime.cpp`. I confirmed the named helpers are unchanged by this PR; none is an EventFlag-specific finding. | | Dependency/merge preview | #13270 is clean against current `main`; the current #13130 dependency head is not included while it remains open. #13120 confirms it removed the overlapping stubs and now depends on the implementation PRs. | | Author-reported focused tests | On head `1f264fdc6480396108557b4e2e2f0731212fd65e`, the author reports 70/70 `np_common|public_headers` tests and 3/3 `guest_np_common_runtime` runs. Not independently run here. | | Full precheck | Incomplete because its isolated checkout lacks the workspace-local ABI-audit and test-quality scripts. I ran the ABI audit separately; the test-quality heuristic did not run. | | Hosted CI | Windows passed on exact head `1f264fdc6480396108557b4e2e2f0731212fd65e`; conventions and labels were pending at final refresh. Linux and specialized jobs were skipped. | <details><summary>Unedited output from checks I ran</summary> ```text All conventions checks passed. ``` ```json { "status": "passed_with_warnings", "findings": [ { "symbol": "CalloutThread", "kind": "public-declaration-not-found", "message": "No APS5_VABI declaration was found in a header; verify whether this is intentionally private or missing from the public interface." }, { "symbol": "HeapAllocate", "kind": "public-declaration-not-found", "message": "No APS5_VABI declaration was found in a header; verify whether this is intentionally private or missing from the public interface." }, { "symbol": "HeapReallocate", "kind": "public-declaration-not-found", "message": "No APS5_VABI declaration was found in a header; verify whether this is intentionally private or missing from the public interface." }, { "symbol": "HeapRelease", "kind": "public-declaration-not-found", "message": "No APS5_VABI declaration was found in a header; verify whether this is intentionally private or missing from the public interface." }, { "symbol": "MemoryHeapAllocate", "kind": "public-declaration-not-found", "message": "No APS5_VABI declaration was found in a header; verify whether this is intentionally private or missing from the public interface." }, { "symbol": "MemoryHeapReallocate", "kind": "public-declaration-not-found", "message": "No APS5_VABI declaration was found in a header; verify whether this is intentionally private or missing from the public interface." }, { "symbol": "MemoryHeapRelease", "kind": "public-declaration-not-found", "message": "No APS5_VABI declaration was found in a header; verify whether this is intentionally private or missing from the public interface." } ] } ``` ```text PR #13130: **clean** against current base; head `686a5ca0be58c50e23a91516dc0a332d45516be0`; changed paths: none reported PR #13270: **clean** against current base; head `1f264fdc6480396108557b4e2e2f0731212fd65e`; changed paths: none reported #13130 → #13270: **current_dependency_head_not_included** ``` ```text windows pass 12m25s https://github.com/boykopovar/AnyPS5/actions/runs/41056881552/job/124073191280 conventions pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41060475889/job/124078642398 labels pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41060476331/job/124078644132 linux skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41056881552/job/124073194165 register-context skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41056881552/job/124073193241 relinker skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41056881552/job/124073192980 relinker-asan skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41056881552/job/124073193870 write-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41056881552/job/124073193337 eligibility pass 5s https://github.com/boykopovar/AnyPS5/actions/runs/41056881552/job/124066535990 library-portability pass 1m5s https://github.com/boykopovar/AnyPS5/actions/runs/41056881465/job/124066536154 report pass 49s https://github.com/boykopovar/AnyPS5/actions/runs/41056881605/job/124066536040 ``` ```json {"conclusion":"success","headSha":"1f264fdc6480396108557b4e2e2f0731212fd65e","status":"completed"} ``` The precheck reported these unavailable helper files in its isolated checkout: ```text /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13270-1f264fdc6480/head-1f264fdc6480-98308ce0/tools/pr_abi_audit.py': [Errno 2] No such file or directory /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13270-1f264fdc6480/head-1f264fdc6480-98308ce0/tools/pr_test_quality.py': [Errno 2] No such file or directory ``` </details> ## Negative control | Assertion | Change described by PR author | Result | |---|---|---| | EventFlag behavior is distinguished from the prior implementation | Eight one-line mutations to error mapping, timeout handling, state tracking, duplicate initialization, Clear, Poll, and Destroy | Author reports the test failed for all eight mutations on the earlier implementation head; I did not independently repeat these mutations on this head. | ## Findings ### Blocking None found in the reviewed head. ### Non-blocking The declared #13130 dependency remains open and its head is not part of this PR head. The PR now states the intended landing order and plans to merge the dependency after it lands; the preview against current `main` is clean. The live `needs rebase` label is not accompanied by a conflict in the current preview, so I am not asking for a rebase solely to clear the label. ## Sources - [EventFlag object implementation](https://github.com/boykopovar/AnyPS5/blob/1f264fdc6480396108557b4e2e2f0731212fd65e/core/libs/prx/libSceNpCommon/Runtime.cpp#L888-L965). - [EventFlag runtime tests](https://github.com/boykopovar/AnyPS5/blob/1f264fdc6480396108557b4e2e2f0731212fd65e/core/libs/tests/GuestNpCommonRuntime.cpp#L267-L330). - [Confirmed #13120 overlap order](https://github.com/boykopovar/AnyPS5/pull/13120#issuecomment-6522956813). ## Not verified I did not independently run the Linux tests or mutation checks, or verify firmware behavior on a console. Hosted Windows passed on the exact head; hosted Linux and specialized jobs were skipped, and the latest conventions/labels runs were pending.
CnRJay commented 2026-11-01 19:59:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-11-01T19:59:37Z.

Review: COMMENTED


Correction (2026-11-01): the title-ID/log demand below is not a CONTRIBUTING requirement; Unblocks: none is allowed. The technical points below are unaffected.

No title reaches this code. The checklist says "Unblocks: none" and the description says the behaviour was "read from disassembly, not measured on a console". Please add a title ID and a log line showing a title on main reaching sce::np::EventFlag or sceNpWaitEventFlag (an unresolved-import or NotImplemented line for one of these 16 NIDs is enough).

One code question in Runtime.cpp: D1/D2 and dtor close or delete the kernel flag by state but do not reset state afterwards, whereas Destroy does. Is a second destructor call on the same object possible in the native module (for example D1 after an explicit Close), and does the disassembly show the state being cleared there?

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5729955925 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13270#pullrequestreview-5729955925). Originally posted by [CnRJay](https://github.com/CnRJay) on 2026-11-01T19:59:37Z. **Review:** COMMENTED --- **Correction (2026-11-01):** the title-ID/log demand below is not a CONTRIBUTING requirement; `Unblocks: none` is allowed. The technical points below are unaffected. **No title reaches this code.** The checklist says "Unblocks: none" and the description says the behaviour was "read from disassembly, not measured on a console". Please add a title ID and a log line showing a title on main reaching `sce::np::EventFlag` or `sceNpWaitEventFlag` (an unresolved-import or NotImplemented line for one of these 16 NIDs is enough). One code question in `Runtime.cpp`: `D1`/`D2` and `dtor` close or delete the kernel flag by `state` but do not reset `state` afterwards, whereas `Destroy` does. Is a second destructor call on the same object possible in the native module (for example `D1` after an explicit `Close`), and does the disassembly show the state being cleared there?
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!13270
No description provided.