fix(libkernel): report level-triggered equeue events once per wait #3489
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3489"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T11:33:52Z.
What
Carry Hussein Kadhim's two commits from #3115, preserving the original authorship. A level-triggered user event now appears at most once in each
sceKernelWaitEqueueresult, while remaining ready for the next wait. The shared collector also preserves distinct queued AMPR completions and honors the caller's event count.Rebasing the source branch onto current
mainrequired resolving itsEqueue.cppoverlap with merged #1091. This change keeps #1091's socket polling and descriptor-wait behavior while sharing the event collection logic between polling and blocking paths.Tested
Linux x86-64, GCC 12.2, Release,
BUILD_TESTING=ON: built the equeue, socket-event, AMPR marker/thread, UDP and TCP tests. The following six CTests passed three consecutive runs each:guest_equeue_events,guest_socket_events,guest_ampr_markers,guest_ampr_threads,guest_udp,guest_tcp.python3 tools/check_conventions.py --base upstream/mainandgit diff --checkpassed. No Windows build or console run was performed here. The source issue reports a Windows 11 test run before the rebase onto currentmain.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T11:44:27Z.
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.
main)core/libs/tests/GuestEqueueEvents.cppL31Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T11:54:41Z.
Checked the single-report-per-wait behaviour against FreeBSD
kqueue_scanand kevent(2), and the newguest_equeue_eventscases (level once per wait in poll and blocking mode, edge, repeated AMPR completions,numlimit): they fail without the change and pass with it, together withguest_socket_events,guest_tcpandguest_udpon Linux; merging.