fix(libkernel): handle kevent timer re-adds and the AIO, LIO, SENDFILE and PROCDESC filters as measured on a PS5 #7653

Merged
ionut27001 merged 1 commit from upstream-pr/7653 into main 2026-10-24 11:02:21 +00:00
ionut27001 commented 2026-10-18 20:28:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ionut27001 on 2026-10-18T20:28:16Z.


What

Two kevent paths that threw now answer the way payload processes on a PS5 (firmware 12.70) got them.

Re-adding an existing timer. In the payload process, EV_ADD on an existing periodic EVFILT_TIMER, with fflags 0 and a positive period (milliseconds), kept the armed expiry and the expirations already counted, and applied the new period after that expiry. The debt entry already named the two FreeBSD candidates (11.0 keeps the expiry, 11.4's filt_timertouch restarts the timer); the re-added timers behaved like 11.0's.

Case Payload process, firmware 12.70 main before this PR
50 ms timer re-added with 10 ms first event 46 ms after the re-add, then every 10 ms (36 in 400 ms) throws
10 ms timer re-added with 100 ms first event 5 ms after the re-add, within the old 10 ms period, then every 100 ms (4 in 400 ms) throws
10 ms timer, 120 ms later re-added with 1000 ms the next poll reports the 12 expirations counted before the re-add throws
periodic timer re-added with EV_ADD | EV_ONESHOT stays periodic (13 events in 400 ms with a 30 ms period) throws

To keep the counted expirations, EditEvent now counts the expired periods of a timer before it edits it, as AddEvent already did. Re-adding a one-shot or disabled timer (an EV_DISPATCH timer that has reported is disabled), a re-add with nonzero fflags (NOTE_MSECONDS included), a period of 0 or less, a period too large to add to the armed expiry or flags other than EV_ONESHOT were not measured and still throw, and every other change to an existing timer except EV_DELETE still throws.

Filters with no attach here. These filters threw NotImplemented:

Change Payload process, firmware 12.70 here now
EV_ADD of EVFILT_AIO, EVFILT_LIO or EVFILT_SENDFILE at idents 0, 5, 999, 2^40 and an open pipe, and at ident 5 also with EV_CLEAR, EV_ONESHOT or EV_DISABLE -1 with EPERM the same, at every ident
EV_ADD of EVFILT_PROCDESC on a descriptor that is not open (999 and a closed one) or an ident above INT_MAX -1 with EBADF the same
EV_ADD of EVFILT_PROCDESC on Unix-domain stream and datagram sockets, descriptor 0 (a socket), an AF_INET UDP socket, both ends of a pipe, a regular file, a directory, another kqueue and the kqueue itself -1 with EINVAL EINVAL on these kinds of descriptor (sockets, pipes, regular files, directories, kqueues), since there are no process descriptors here, and on shared memory and JIT shared memory, which are host files here (not measured; FreeBSD 11.0 answers EINVAL for shm_open objects); any other kind, such as /dev/random and /dev/urandom, throws, and so do descriptors 0 to 2 that are not sockets or kqueues
EV_DELETE and EV_ENABLE of the first three at ident 5, EV_DELETE of EVFILT_PROCDESC on a socket -1 with ENOENT ENOENT for every other change without EV_ADD, after the descriptor check for EVFILT_PROCDESC, as for any other filter without a knote; EV_ENABLE together with EV_DISABLE is EINVAL before that, as for every filter

When EV_ADD of one of these filters fails with EPERM, or with EINVAL on a descriptor other than the kqueue itself, its error event has fflags 0 and the errno in data, as FreeBSD 11.0's kqueue_register clears fflags and data before the attach and kqueue_kevent then stores the error in data; a descriptor that is not open, the kqueue itself and EV_ENABLE with EV_DISABLE fail before that and keep their fflags. That was not measured.

EVFILT_PROC on the probe's own process with NOTE_EXIT, EVFILT_SIGNAL for SIGUSR1 and EVFILT_FS at ident 0 were accepted in the payload process and are not changed here; they still throw.

Debt: in docs/dev/debt/libkernel.md, a new kevent measurements entry records the measurements above, and the kqueue and kevent entry points to it: it now says that nothing here is taken from a console except what that entry lists, and it no longer lists these filters and the timer re-adds that entry describes among the cases that throw. The new entry also records what the payload process got in cases that still throw here, all on Unix-domain socketpairs except the last: a NOTE_LOWAT mark of 0 on an empty stream socket (a read event at once, data 0, and the same after re-adding that knote with -1), a write mark of 2 on the other end of that socketpair (data 8192) and a re-add of that knote with 2^30 (no event), a mark of 5 on a datagram socket (no event after a 1-byte datagram, an event with data 11 after a second, 10-byte one), and EVFILT_READ on another kqueue (data is the number of events pending in it: 1, then 2). The kqueue and kevent entry also listed a NOTE_NSECONDS period above one second with a fraction among the cases that throw; d71a1c577 made it work, so that clause now says how such a period is used.

Overlaps: none of the open PRs changes the timer re-add or these filters, but several touch the same lines:

  • #6343 has landed. The rebase onto main fd423f9b2 conflicted with it in the include block of Kqueue.cpp and in the kqueue and kevent debt line; the resolution keeps its HostStreams.hpp include and its sentence about a read event on the host stream on descriptor 0, next to this PR's changes.
  • #6542 has landed too. The rebase onto main eaae7e069 conflicted with it in the debt file, where it changed the JIT shared memory line right before the kqueue and kevent line this PR changes; the resolution keeps its JIT shared memory line and this PR's kqueue and kevent line, so this PR's change to the debt file is the same as before the rebase.
  • #7332 also changes the JIT shared memory debt line. Merged with main eaae7e069 it conflicts in the debt file and three other files, and merged with this PR instead it conflicts in the same files and no others.
  • #7049 changes the timer check in ModifyKnote so that a timer change without EV_ADD and with data 0 no longer throws. This PR handles the EV_ADD re-add in Register, before ModifyKnote. Its check that another change to an existing timer throws passes data 5, which throws with or without that change. Whichever lands second rewords "every change to an existing timer except EV_DELETE and the EV_ADD re-adds that the kevent measurements entry describes" in the kqueue and kevent entry and "other changes to an existing timer" in the kevent measurements entry.
  • #7049, #7075, #7088, #7121, #7129 and #7509 already conflict with main: #7075, #7121 and #7509 in the debt file, #7049 in GuestKqueue.cpp and the debt file, #7129 in Kqueue.cpp and the debt file, and #7088 in Kqueue.cpp, GuestKqueue.cpp and the debt file. Merged with this PR instead of main, each conflicts in the same files and no others.

How the console was measured

  • Setup:
    • The console runs firmware 12.70 and is jailbroken.
    • The probes are ELF payloads built with ps5-payload-dev/sdk v0.44 and clang 18.1.8, started through a payload manager, so each ran in its own payload process, not in a title. A title process was not measured.
  • Provenance: the resolve lines show that the kevent all three probes call, and the kqueue p72 and p75 call, are the ones libkernel_sys.sprx exports; p73 did not check kqueue.
  • Method:
    • p72 uses the probe process's own pipes, socketpairs, kqueues, user events, timers and one temporary file. It also registers EVFILT_PROCDESC on descriptor 0, which the payload manager opened, and EVFILT_FS, EVFILT_AIO, EVFILT_LIO and EVFILT_SENDFILE at ident 0. The cases of one group share a kqueue, and some re-add a knote that an earlier case registered. p72 logs the return value and errno of every kevent call and every returned event.
    • p73 counts the events a re-added timer delivers in a 400 ms window and the next 200 ms. first_at_ms is when the first event came, counted from the start of that window: the 400 ms window starts right after the re-add and the 200 ms window right after the 400 ms one.
    • p75 first logs the fstat type of descriptor 0 and of one descriptor of each kind it creates (sock for descriptor 0 and the sockets, fifo for the pipe and for a kqueue, reg for the file, dir for the directory). It then adds EVFILT_PROCDESC on descriptor 0, one end of a Unix-domain stream and of a datagram socketpair, an AF_INET UDP socket, both pipe ends, a regular file, a directory, a second kqueue, the kqueue itself, a closed descriptor and ident 2^40, and deletes it on the stream socket. It adds the other three filters at idents 0, 5, 999, 2^40 and an open pipe, at ident 5 also with EV_CLEAR, EV_ONESHOT and EV_DISABLE, and deletes and enables them at ident 5. It removes its temporary file at the end, and its UDP socket is never bound or used.
    • EVFILT_PROC was registered on the probe's own process for NOTE_EXIT and EVFILT_SIGNAL on SIGUSR1; no signal was sent. No filter below -12 other than -1000 was tried.
  • Files: sources and the full logs are in the attached kevent-probes.zip.
Console output (excerpt, lines copied unchanged)
p72: meta fw=0x12700001 pid=190 sdk=v0.44 compiler=Clang 18.1.8 built=Oct 18 2026 18:14:59
p73: meta fw=0x12700001 pid=191 sdk=v0.44 compiler=Clang 18.1.8 built=Oct 18 2026 18:16:50
p72: resolve sym=kqueue module=libkernel_sys.sprx same_as_called=yes
p72: resolve sym=kevent module=libkernel_sys.sprx same_as_called=yes
p73: resolve sym=kevent module=libkernel_sys.sprx same_as_called=yes

p73: case readd_50_to_10_count window_ms=400 events=36 expirations=36 first_at_ms=46
p73: case readd_50_to_10_count_more window_ms=200 events=20 expirations=20 first_at_ms=4
p73: case readd_10_to_100_count window_ms=400 events=4 expirations=4 first_at_ms=5
p73: case readd_10_to_100_count_more window_ms=200 events=2 expirations=2 first_at_ms=4
p73: case readd_30_oneshot_count window_ms=400 events=13 expirations=13 first_at_ms=25
p73: case readd_30_oneshot_count_more window_ms=200 events=7 expirations=7 first_at_ms=13
p72: case timer_readd_1000 reg ret=0 errno=0
p72: case timer_readd_1000_pending poll n=1 errno=0
p72: case timer_readd_1000_pending ev i=0 ident=8 filter=-7 flags=0x20 fflags=0 data=12

p72: case filter_aio reg ret=-1 errno=1
p73: case aio_ident_5 reg ret=-1 errno=1
p72: case filter_lio reg ret=-1 errno=1
p72: case filter_sendfile reg ret=-1 errno=1
p72: case filter_procdesc reg ret=-1 errno=22
p73: case procdesc_bad_fd reg ret=-1 errno=9
p73: case procdesc_kq_fd reg ret=-1 errno=22
p72: case filter_proc_self_exit reg ret=0 errno=0
p72: case filter_signal_usr1 reg ret=0 errno=0
p72: case filter_fs reg ret=0 errno=0

p72: case lowat_read_0_empty ev i=0 ident=8 filter=-1 flags=0 fflags=0 data=0
p72: case lowat_read_neg_empty ev i=0 ident=8 filter=-1 flags=0 fflags=0 data=0
p72: case lowat_dgram_after_1 poll n=0 errno=0
p72: case lowat_dgram_after_11 ev i=0 ident=8 filter=-1 flags=0 fflags=0 data=11
p72: case lowat_write_2 ev i=0 ident=9 filter=-2 flags=0 fflags=0 data=8192
p72: case lowat_write_huge poll n=0 errno=0
p72: case kq_read_one_pending ev i=0 ident=9 filter=-1 flags=0 fflags=0 data=1
p72: case kq_read_two_pending ev i=0 ident=9 filter=-1 flags=0 fflags=0 data=2
p72: case kq_write_add reg ret=-1 errno=22
p72: case kq_self_read_add reg ret=-1 errno=22

p75: meta fw=0x12700001 pid=193 sdk=v0.44 compiler=Clang 18.1.8 built=Oct 18 2026 21:39:40
p75: resolve sym=kevent module=libkernel_sys.sprx same_as_called=yes
p75: resolve sym=kqueue module=libkernel_sys.sprx same_as_called=yes
p75: case procdesc_kinds fd0=sock stream=sock dgram=sock pipe_read=fifo udp=sock file=reg dir=dir other_kq=fifo
p75: case procdesc_fd0 reg ret=-1 errno=22
p75: case procdesc_unix_stream reg ret=-1 errno=22
p75: case procdesc_unix_dgram reg ret=-1 errno=22
p75: case procdesc_inet_udp reg ret=-1 errno=22
p75: case procdesc_pipe_read reg ret=-1 errno=22
p75: case procdesc_pipe_write reg ret=-1 errno=22
p75: case procdesc_regular_file reg ret=-1 errno=22
p75: case procdesc_directory reg ret=-1 errno=22
p75: case procdesc_other_kqueue reg ret=-1 errno=22
p75: case procdesc_kqueue_itself reg ret=-1 errno=22
p75: case procdesc_closed reg ret=-1 errno=9
p75: case procdesc_ident_above_int_max reg ret=-1 errno=9
p75: case procdesc_unix_stream_delete reg ret=-1 errno=2
p75: case procdesc_unix_stream_add_clear reg ret=-1 errno=22
p75: case aio_add_ident_0 reg ret=-1 errno=1
p75: case aio_add_ident_5 reg ret=-1 errno=1
p75: case aio_add_ident_999 reg ret=-1 errno=1
p75: case aio_add_ident_2pow40 reg ret=-1 errno=1
p75: case aio_add_ident_open_pipe reg ret=-1 errno=1
p75: case aio_add_clear reg ret=-1 errno=1
p75: case aio_add_oneshot reg ret=-1 errno=1
p75: case aio_add_disable reg ret=-1 errno=1
p75: case aio_delete reg ret=-1 errno=2
p75: case aio_enable reg ret=-1 errno=2
p75: case lio_add_ident_0 reg ret=-1 errno=1
p75: case lio_add_ident_5 reg ret=-1 errno=1
p75: case lio_add_ident_999 reg ret=-1 errno=1
p75: case lio_add_ident_2pow40 reg ret=-1 errno=1
p75: case lio_add_ident_open_pipe reg ret=-1 errno=1
p75: case lio_add_clear reg ret=-1 errno=1
p75: case lio_add_oneshot reg ret=-1 errno=1
p75: case lio_add_disable reg ret=-1 errno=1
p75: case lio_delete reg ret=-1 errno=2
p75: case lio_enable reg ret=-1 errno=2
p75: case sendfile_add_ident_0 reg ret=-1 errno=1
p75: case sendfile_add_ident_5 reg ret=-1 errno=1
p75: case sendfile_add_ident_999 reg ret=-1 errno=1
p75: case sendfile_add_ident_2pow40 reg ret=-1 errno=1
p75: case sendfile_add_ident_open_pipe reg ret=-1 errno=1
p75: case sendfile_add_clear reg ret=-1 errno=1
p75: case sendfile_add_oneshot reg ret=-1 errno=1
p75: case sendfile_add_disable reg ret=-1 errno=1
p75: case sendfile_delete reg ret=-1 errno=2
p75: case sendfile_enable reg ret=-1 errno=2

The pNN: prefix names the probe; the rest of each line is copied unchanged.

Tested

Build: Windows 11 x86-64, full build with WinLibs MinGW-w64 GCC 15.2.0 (posix-seh, ucrt, r7) and -DBUILD_TESTING=ON.

Tests: after #6542 landed, the branch was rebased onto main eaae7e069 (the conflict is described under Overlaps). With this branch on that main, the guest_* tests pass: 498 of 499, and guest_video_out_wqhd_detection_no_vulkan is skipped on this machine. That is the second of two full runs. The first, right after the build, took 898 s instead of the second run's 69 s; in it seven tests timed out, none of them a kqueue or kevent test, and guest_itimer failed; guest_itimer passed in the second run and then 5 runs in a row. guest_kqueue passed in both full runs and in 3 more runs in a row.

Temporary file names: TemporaryName in GuestKqueue.cpp now puts the process id in each name. A reviewer saw one Linux copy of ProcdescOnFiles fail to remove its temporary file while 8 copies ran at once; with the process id in the name, copies that run at the same time no longer share a file. Since its timer checks depend on timing, guest_kqueue also ran as 8 copies at once, three times: the timer and filter checks passed in all 24 copies. Five copies stopped later, in the existing check that watches a deleted file, where Windows refused the watch on $Deleted (FindFirstChangeNotification error 5) while the 8 copies ran, with a different file name in each copy.

Old code, new test: with Kqueue.cpp and Equeue.cpp reverted to that main and the new tests kept, guest_kqueue aborts with kevent: changing an existing EVFILT_TIMER not implemented.

Console: behaviour measured on a PS5 (firmware 12.70), as described above.

Not tested here: Linux (a reviewer reported a Linux run in the comments), and no title.

Rebased onto main 6696def6e (the debt entry merged with main's pipe write-end and write low-water mark sentences; no code conflict). Re-tested on Windows 11, WinLibs GCC 15.2.0 r7: ctest -R "guest_kqueue|guest_kevent|guest_equeue" twice, 2 of 2 pass both times (guest_kqueue, guest_equeue_events); revert check with Equeue.cpp and Kqueue.cpp restored from the previous commit: guest_kqueue aborts.

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
    Rebase: rebased onto main 1e774a3b22 after the conflicts reported in the comments. The only conflict was the kqueue and kevent debt line, where main (#6343) added the sentence about a read event on the host stream on descriptor 0 and this PR rewrites the same line; the resolution keeps both, next to the HostStreams.hpp include, which now merges without a conflict. The code and test changes are otherwise the same as before the rebase. Re-tested on the new base: full build with WinLibs GCC 15.2.0 (Windows 11), exit 0; guest_kqueue passed twice (3.56 s, 3.55 s) and guest_equeue_events twice (1.67 s, 0.48 s); with Equeue.cpp and Kqueue.cpp restored from main the test aborts with kevent: changing an existing EVFILT_TIMER not implemented.

  • Depends on: none

  • Fixes: none

  • Unblocks: none

  • GPUs tested: n/a

  • AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4912545534 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7653). Originally posted by [ionut27001](https://github.com/ionut27001) on 2026-10-18T20:28:16Z. --- ### What Two `kevent` paths that threw now answer the way payload processes on a PS5 (firmware 12.70) got them. **Re-adding an existing timer.** In the payload process, `EV_ADD` on an existing periodic `EVFILT_TIMER`, with `fflags` 0 and a positive period (milliseconds), kept the armed expiry and the expirations already counted, and applied the new period after that expiry. The debt entry already named the two FreeBSD candidates (11.0 keeps the expiry, 11.4's `filt_timertouch` restarts the timer); the re-added timers behaved like 11.0's. | Case | Payload process, firmware 12.70 | `main` before this PR | |---|---|---| | 50 ms timer re-added with 10 ms | first event 46 ms after the re-add, then every 10 ms (36 in 400 ms) | throws | | 10 ms timer re-added with 100 ms | first event 5 ms after the re-add, within the old 10 ms period, then every 100 ms (4 in 400 ms) | throws | | 10 ms timer, 120 ms later re-added with 1000 ms | the next poll reports the 12 expirations counted before the re-add | throws | | periodic timer re-added with `EV_ADD \| EV_ONESHOT` | stays periodic (13 events in 400 ms with a 30 ms period) | throws | To keep the counted expirations, `EditEvent` now counts the expired periods of a timer before it edits it, as `AddEvent` already did. Re-adding a one-shot or disabled timer (an `EV_DISPATCH` timer that has reported is disabled), a re-add with nonzero `fflags` (`NOTE_MSECONDS` included), a period of 0 or less, a period too large to add to the armed expiry or flags other than `EV_ONESHOT` were not measured and still throw, and every other change to an existing timer except `EV_DELETE` still throws. **Filters with no attach here.** These filters threw `NotImplemented`: | Change | Payload process, firmware 12.70 | here now | |---|---|---| | `EV_ADD` of `EVFILT_AIO`, `EVFILT_LIO` or `EVFILT_SENDFILE` at idents 0, 5, 999, 2^40 and an open pipe, and at ident 5 also with `EV_CLEAR`, `EV_ONESHOT` or `EV_DISABLE` | -1 with `EPERM` | the same, at every ident | | `EV_ADD` of `EVFILT_PROCDESC` on a descriptor that is not open (999 and a closed one) or an ident above `INT_MAX` | -1 with `EBADF` | the same | | `EV_ADD` of `EVFILT_PROCDESC` on Unix-domain stream and datagram sockets, descriptor 0 (a socket), an `AF_INET` UDP socket, both ends of a pipe, a regular file, a directory, another kqueue and the kqueue itself | -1 with `EINVAL` | `EINVAL` on these kinds of descriptor (sockets, pipes, regular files, directories, kqueues), since there are no process descriptors here, and on shared memory and JIT shared memory, which are host files here (not measured; FreeBSD 11.0 answers `EINVAL` for `shm_open` objects); any other kind, such as `/dev/random` and `/dev/urandom`, throws, and so do descriptors 0 to 2 that are not sockets or kqueues | | `EV_DELETE` and `EV_ENABLE` of the first three at ident 5, `EV_DELETE` of `EVFILT_PROCDESC` on a socket | -1 with `ENOENT` | `ENOENT` for every other change without `EV_ADD`, after the descriptor check for `EVFILT_PROCDESC`, as for any other filter without a knote; `EV_ENABLE` together with `EV_DISABLE` is `EINVAL` before that, as for every filter | When `EV_ADD` of one of these filters fails with `EPERM`, or with `EINVAL` on a descriptor other than the kqueue itself, its error event has `fflags` 0 and the errno in `data`, as FreeBSD 11.0's [`kqueue_register`](https://github.com/freebsd/freebsd-src/blob/release/11.0.0/sys/kern/kern_event.c#L1302-L1316) clears `fflags` and `data` before the attach and [`kqueue_kevent`](https://github.com/freebsd/freebsd-src/blob/release/11.0.0/sys/kern/kern_event.c#L1005-L1006) then stores the error in `data`; a descriptor that is not open, the kqueue itself and `EV_ENABLE` with `EV_DISABLE` fail before that and keep their `fflags`. That was not measured. `EVFILT_PROC` on the probe's own process with `NOTE_EXIT`, `EVFILT_SIGNAL` for `SIGUSR1` and `EVFILT_FS` at ident 0 were accepted in the payload process and are not changed here; they still throw. **Debt:** in `docs/dev/debt/libkernel.md`, a new `kevent measurements` entry records the measurements above, and the `kqueue and kevent` entry points to it: it now says that nothing here is taken from a console except what that entry lists, and it no longer lists these filters and the timer re-adds that entry describes among the cases that throw. The new entry also records what the payload process got in cases that still throw here, all on Unix-domain socketpairs except the last: a `NOTE_LOWAT` mark of 0 on an empty stream socket (a read event at once, `data` 0, and the same after re-adding that knote with -1), a write mark of 2 on the other end of that socketpair (`data` 8192) and a re-add of that knote with 2^30 (no event), a mark of 5 on a datagram socket (no event after a 1-byte datagram, an event with `data` 11 after a second, 10-byte one), and `EVFILT_READ` on another kqueue (`data` is the number of events pending in it: 1, then 2). The `kqueue and kevent` entry also listed a `NOTE_NSECONDS` period above one second with a fraction among the cases that throw; d71a1c577 made it work, so that clause now says how such a period is used. **Overlaps:** none of the open PRs changes the timer re-add or these filters, but several touch the same lines: - #6343 has landed. The rebase onto `main` fd423f9b2 conflicted with it in the include block of `Kqueue.cpp` and in the `kqueue and kevent` debt line; the resolution keeps its `HostStreams.hpp` include and its sentence about a read event on the host stream on descriptor 0, next to this PR's changes. - #6542 has landed too. The rebase onto `main` eaae7e069 conflicted with it in the debt file, where it changed the `JIT shared memory` line right before the `kqueue and kevent` line this PR changes; the resolution keeps its `JIT shared memory` line and this PR's `kqueue and kevent` line, so this PR's change to the debt file is the same as before the rebase. - #7332 also changes the `JIT shared memory` debt line. Merged with `main` eaae7e069 it conflicts in the debt file and three other files, and merged with this PR instead it conflicts in the same files and no others. - #7049 changes the timer check in `ModifyKnote` so that a timer change without `EV_ADD` and with `data` 0 no longer throws. This PR handles the `EV_ADD` re-add in `Register`, before `ModifyKnote`. Its check that another change to an existing timer throws passes `data` 5, which throws with or without that change. Whichever lands second rewords "every change to an existing timer except `EV_DELETE` and the `EV_ADD` re-adds that the kevent measurements entry describes" in the `kqueue and kevent` entry and "other changes to an existing timer" in the `kevent measurements` entry. - #7049, #7075, #7088, #7121, #7129 and #7509 already conflict with `main`: #7075, #7121 and #7509 in the debt file, #7049 in `GuestKqueue.cpp` and the debt file, #7129 in `Kqueue.cpp` and the debt file, and #7088 in `Kqueue.cpp`, `GuestKqueue.cpp` and the debt file. Merged with this PR instead of `main`, each conflicts in the same files and no others. #### How the console was measured - **Setup:** - The console runs firmware 12.70 and is jailbroken. - The probes are ELF payloads built with [ps5-payload-dev/sdk](https://github.com/ps5-payload-dev/sdk) v0.44 and clang 18.1.8, started through a payload manager, so each ran in its own payload process, not in a title. A title process was not measured. - **Provenance:** the `resolve` lines show that the `kevent` all three probes call, and the `kqueue` p72 and p75 call, are the ones `libkernel_sys.sprx` exports; p73 did not check `kqueue`. - **Method:** - p72 uses the probe process's own pipes, socketpairs, kqueues, user events, timers and one temporary file. It also registers `EVFILT_PROCDESC` on descriptor 0, which the payload manager opened, and `EVFILT_FS`, `EVFILT_AIO`, `EVFILT_LIO` and `EVFILT_SENDFILE` at ident 0. The cases of one group share a kqueue, and some re-add a knote that an earlier case registered. p72 logs the return value and `errno` of every `kevent` call and every returned event. - p73 counts the events a re-added timer delivers in a 400 ms window and the next 200 ms. `first_at_ms` is when the first event came, counted from the start of that window: the 400 ms window starts right after the re-add and the 200 ms window right after the 400 ms one. - p75 first logs the `fstat` type of descriptor 0 and of one descriptor of each kind it creates (`sock` for descriptor 0 and the sockets, `fifo` for the pipe and for a kqueue, `reg` for the file, `dir` for the directory). It then adds `EVFILT_PROCDESC` on descriptor 0, one end of a Unix-domain stream and of a datagram socketpair, an `AF_INET` UDP socket, both pipe ends, a regular file, a directory, a second kqueue, the kqueue itself, a closed descriptor and ident 2^40, and deletes it on the stream socket. It adds the other three filters at idents 0, 5, 999, 2^40 and an open pipe, at ident 5 also with `EV_CLEAR`, `EV_ONESHOT` and `EV_DISABLE`, and deletes and enables them at ident 5. It removes its temporary file at the end, and its UDP socket is never bound or used. - `EVFILT_PROC` was registered on the probe's own process for `NOTE_EXIT` and `EVFILT_SIGNAL` on `SIGUSR1`; no signal was sent. No filter below -12 other than -1000 was tried. - **Files:** sources and the full logs are in the attached [kevent-probes.zip](https://github.com/user-attachments/files/33636156/kevent-probes.zip). <details><summary>Console output (excerpt, lines copied unchanged)</summary> ``` p72: meta fw=0x12700001 pid=190 sdk=v0.44 compiler=Clang 18.1.8 built=Oct 18 2026 18:14:59 p73: meta fw=0x12700001 pid=191 sdk=v0.44 compiler=Clang 18.1.8 built=Oct 18 2026 18:16:50 p72: resolve sym=kqueue module=libkernel_sys.sprx same_as_called=yes p72: resolve sym=kevent module=libkernel_sys.sprx same_as_called=yes p73: resolve sym=kevent module=libkernel_sys.sprx same_as_called=yes p73: case readd_50_to_10_count window_ms=400 events=36 expirations=36 first_at_ms=46 p73: case readd_50_to_10_count_more window_ms=200 events=20 expirations=20 first_at_ms=4 p73: case readd_10_to_100_count window_ms=400 events=4 expirations=4 first_at_ms=5 p73: case readd_10_to_100_count_more window_ms=200 events=2 expirations=2 first_at_ms=4 p73: case readd_30_oneshot_count window_ms=400 events=13 expirations=13 first_at_ms=25 p73: case readd_30_oneshot_count_more window_ms=200 events=7 expirations=7 first_at_ms=13 p72: case timer_readd_1000 reg ret=0 errno=0 p72: case timer_readd_1000_pending poll n=1 errno=0 p72: case timer_readd_1000_pending ev i=0 ident=8 filter=-7 flags=0x20 fflags=0 data=12 p72: case filter_aio reg ret=-1 errno=1 p73: case aio_ident_5 reg ret=-1 errno=1 p72: case filter_lio reg ret=-1 errno=1 p72: case filter_sendfile reg ret=-1 errno=1 p72: case filter_procdesc reg ret=-1 errno=22 p73: case procdesc_bad_fd reg ret=-1 errno=9 p73: case procdesc_kq_fd reg ret=-1 errno=22 p72: case filter_proc_self_exit reg ret=0 errno=0 p72: case filter_signal_usr1 reg ret=0 errno=0 p72: case filter_fs reg ret=0 errno=0 p72: case lowat_read_0_empty ev i=0 ident=8 filter=-1 flags=0 fflags=0 data=0 p72: case lowat_read_neg_empty ev i=0 ident=8 filter=-1 flags=0 fflags=0 data=0 p72: case lowat_dgram_after_1 poll n=0 errno=0 p72: case lowat_dgram_after_11 ev i=0 ident=8 filter=-1 flags=0 fflags=0 data=11 p72: case lowat_write_2 ev i=0 ident=9 filter=-2 flags=0 fflags=0 data=8192 p72: case lowat_write_huge poll n=0 errno=0 p72: case kq_read_one_pending ev i=0 ident=9 filter=-1 flags=0 fflags=0 data=1 p72: case kq_read_two_pending ev i=0 ident=9 filter=-1 flags=0 fflags=0 data=2 p72: case kq_write_add reg ret=-1 errno=22 p72: case kq_self_read_add reg ret=-1 errno=22 p75: meta fw=0x12700001 pid=193 sdk=v0.44 compiler=Clang 18.1.8 built=Oct 18 2026 21:39:40 p75: resolve sym=kevent module=libkernel_sys.sprx same_as_called=yes p75: resolve sym=kqueue module=libkernel_sys.sprx same_as_called=yes p75: case procdesc_kinds fd0=sock stream=sock dgram=sock pipe_read=fifo udp=sock file=reg dir=dir other_kq=fifo p75: case procdesc_fd0 reg ret=-1 errno=22 p75: case procdesc_unix_stream reg ret=-1 errno=22 p75: case procdesc_unix_dgram reg ret=-1 errno=22 p75: case procdesc_inet_udp reg ret=-1 errno=22 p75: case procdesc_pipe_read reg ret=-1 errno=22 p75: case procdesc_pipe_write reg ret=-1 errno=22 p75: case procdesc_regular_file reg ret=-1 errno=22 p75: case procdesc_directory reg ret=-1 errno=22 p75: case procdesc_other_kqueue reg ret=-1 errno=22 p75: case procdesc_kqueue_itself reg ret=-1 errno=22 p75: case procdesc_closed reg ret=-1 errno=9 p75: case procdesc_ident_above_int_max reg ret=-1 errno=9 p75: case procdesc_unix_stream_delete reg ret=-1 errno=2 p75: case procdesc_unix_stream_add_clear reg ret=-1 errno=22 p75: case aio_add_ident_0 reg ret=-1 errno=1 p75: case aio_add_ident_5 reg ret=-1 errno=1 p75: case aio_add_ident_999 reg ret=-1 errno=1 p75: case aio_add_ident_2pow40 reg ret=-1 errno=1 p75: case aio_add_ident_open_pipe reg ret=-1 errno=1 p75: case aio_add_clear reg ret=-1 errno=1 p75: case aio_add_oneshot reg ret=-1 errno=1 p75: case aio_add_disable reg ret=-1 errno=1 p75: case aio_delete reg ret=-1 errno=2 p75: case aio_enable reg ret=-1 errno=2 p75: case lio_add_ident_0 reg ret=-1 errno=1 p75: case lio_add_ident_5 reg ret=-1 errno=1 p75: case lio_add_ident_999 reg ret=-1 errno=1 p75: case lio_add_ident_2pow40 reg ret=-1 errno=1 p75: case lio_add_ident_open_pipe reg ret=-1 errno=1 p75: case lio_add_clear reg ret=-1 errno=1 p75: case lio_add_oneshot reg ret=-1 errno=1 p75: case lio_add_disable reg ret=-1 errno=1 p75: case lio_delete reg ret=-1 errno=2 p75: case lio_enable reg ret=-1 errno=2 p75: case sendfile_add_ident_0 reg ret=-1 errno=1 p75: case sendfile_add_ident_5 reg ret=-1 errno=1 p75: case sendfile_add_ident_999 reg ret=-1 errno=1 p75: case sendfile_add_ident_2pow40 reg ret=-1 errno=1 p75: case sendfile_add_ident_open_pipe reg ret=-1 errno=1 p75: case sendfile_add_clear reg ret=-1 errno=1 p75: case sendfile_add_oneshot reg ret=-1 errno=1 p75: case sendfile_add_disable reg ret=-1 errno=1 p75: case sendfile_delete reg ret=-1 errno=2 p75: case sendfile_enable reg ret=-1 errno=2 ``` The `pNN:` prefix names the probe; the rest of each line is copied unchanged. </details> ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> **Build:** Windows 11 x86-64, full build with WinLibs MinGW-w64 GCC 15.2.0 (posix-seh, ucrt, r7) and `-DBUILD_TESTING=ON`. **Tests:** after #6542 landed, the branch was rebased onto `main` eaae7e069 (the conflict is described under Overlaps). With this branch on that `main`, the `guest_*` tests pass: 498 of 499, and `guest_video_out_wqhd_detection_no_vulkan` is skipped on this machine. That is the second of two full runs. The first, right after the build, took 898 s instead of the second run's 69 s; in it seven tests timed out, none of them a kqueue or kevent test, and `guest_itimer` failed; `guest_itimer` passed in the second run and then 5 runs in a row. `guest_kqueue` passed in both full runs and in 3 more runs in a row. **Temporary file names:** `TemporaryName` in `GuestKqueue.cpp` now puts the process id in each name. A reviewer saw one Linux copy of `ProcdescOnFiles` fail to remove its temporary file while 8 copies ran at once; with the process id in the name, copies that run at the same time no longer share a file. Since its timer checks depend on timing, `guest_kqueue` also ran as 8 copies at once, three times: the timer and filter checks passed in all 24 copies. Five copies stopped later, in the existing check that watches a deleted file, where Windows refused the watch on `$Deleted` (`FindFirstChangeNotification` error 5) while the 8 copies ran, with a different file name in each copy. **Old code, new test:** with `Kqueue.cpp` and `Equeue.cpp` reverted to that `main` and the new tests kept, `guest_kqueue` aborts with `kevent: changing an existing EVFILT_TIMER not implemented`. **Console:** behaviour measured on a PS5 (firmware 12.70), as described above. **Not tested here:** Linux (a reviewer reported a Linux run in the comments), and no title. Rebased onto main 6696def6e (the debt entry merged with main's pipe write-end and write low-water mark sentences; no code conflict). Re-tested on Windows 11, WinLibs GCC 15.2.0 r7: `ctest -R "guest_kqueue|guest_kevent|guest_equeue"` twice, 2 of 2 pass both times (`guest_kqueue`, `guest_equeue_events`); revert check with `Equeue.cpp` and `Kqueue.cpp` restored from the previous commit: `guest_kqueue` aborts. ### 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 **Rebase:** rebased onto `main` 1e774a3b22 after the conflicts reported in the comments. The only conflict was the `kqueue and kevent` debt line, where `main` (#6343) added the sentence about a read event on the host stream on descriptor 0 and this PR rewrites the same line; the resolution keeps both, next to the `HostStreams.hpp` include, which now merges without a conflict. The code and test changes are otherwise the same as before the rebase. **Re-tested on the new base:** full build with WinLibs GCC 15.2.0 (Windows 11), exit 0; `guest_kqueue` passed twice (3.56 s, 3.55 s) and `guest_equeue_events` twice (1.67 s, 0.48 s); with `Equeue.cpp` and `Kqueue.cpp` restored from `main` the test aborts with `kevent: changing an existing EVFILT_TIMER not implemented`. - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
wachi35676 commented 2026-10-19 01:09:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-19T01:09:56Z.


  • Merge: this now conflicts with main after #6343 merged. The conflicts are in the include block of Kqueue.cpp (HostStreams.hpp against this PR's added includes; keeping both works) and in the kqueue and kevent debt line, which #6343 extended for descriptor 0.
  • Windows (Windows 11, GCC 15.2.0), merged onto a373e85e5: guest_kqueue passes, and all guest_* tests pass (474/474). With Kqueue.cpp and Equeue.cpp reverted it aborts with kevent: changing an existing EVFILT_TIMER not implemented.
  • Linux (WSL Ubuntu 24.04, GCC 13.3), which the description lists as untested: the same result, and 10/10 serial runs pass.
  • Linux stress: 8 copies at once for 12 rounds (96 runs). The new timer and filter checks never failed.
    • Two failures came from the existing FileWatch Poll(...) == 0 after ftruncate, which also fails on main under the same load (3 of 128).
    • One failure was in the new ProcdescOnFiles, at Require(std::filesystem::remove(path)) for its temporary file. I haven't found the cause, and it never failed in serial runs.
  • FreeBSD: your reading checks out.
  • Not measured: a re-add with EV_ADD | EV_ENABLE, a common idiom, throws here, since only EV_ONESHOT is allowed.

AI-assisted: yes (Claude Code); results above were run on this machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6257515382 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7653#issuecomment-6257515382). Originally posted by [wachi35676](https://github.com/wachi35676) on 2026-10-19T01:09:56Z. --- - **Merge:** this now conflicts with `main` after #6343 merged. The conflicts are in the include block of `Kqueue.cpp` (`HostStreams.hpp` against this PR's added includes; keeping both works) and in the `kqueue and kevent` debt line, which #6343 extended for descriptor 0. - **Windows** (Windows 11, GCC 15.2.0), merged onto `a373e85e5`: `guest_kqueue` passes, and all `guest_*` tests pass (474/474). With `Kqueue.cpp` and `Equeue.cpp` reverted it aborts with `kevent: changing an existing EVFILT_TIMER not implemented`. - **Linux** (WSL Ubuntu 24.04, GCC 13.3), which the description lists as untested: the same result, and 10/10 serial runs pass. - **Linux stress:** 8 copies at once for 12 rounds (96 runs). The new timer and filter checks never failed. - Two failures came from the existing `FileWatch` `Poll(...) == 0` after `ftruncate`, which also fails on `main` under the same load (3 of 128). - One failure was in the new `ProcdescOnFiles`, at `Require(std::filesystem::remove(path))` for its temporary file. I haven't found the cause, and it never failed in serial runs. - **FreeBSD:** your reading checks out. - 11.0 keeps the knote on re-add: [`kern_event.c#L1345-L1357`](https://github.com/freebsd/freebsd-src/blob/release/11.0.0/sys/kern/kern_event.c#L1345-L1357) only copies `fflags` and `data`, and doesn't apply `EV_ONESHOT`. - 11.0's [`filt_timerexpire` (#L635-L651)](https://github.com/freebsd/freebsd-src/blob/release/11.0.0/sys/kern/kern_event.c#L635-L651) adds the new period to the armed `p_nexttime`, which gives the console's 46 ms / 5 ms first event and the kept count. - 11.4's [`filt_timertouch` (#L744-L794)](https://github.com/freebsd/freebsd-src/blob/release/11.4.0/sys/kern/kern_event.c#L744-L794) drains the callout, sets `kn_data = 0` and restarts. - **Not measured:** a re-add with `EV_ADD | EV_ENABLE`, a common idiom, throws here, since only `EV_ONESHOT` is allowed. AI-assisted: yes (Claude Code); results above were run on this machine.
blawesom commented 2026-10-19 08:57:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-19T08:57:50Z.


Rebase handoff — rebased onto current main cleanly (authorship unchanged).

Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, BUILD_TESTING=ON, AMD RX 9070 XT / RADV): builds; conventions pass; full suite green apart from the four known main regressions (#5444 Mesa, #7584 BDA, #7766, #7784), none from this PR.

To pick it up:

git fetch https://github.com/blawesom/AnyPS5 rebase/7653
git checkout <your branch>
git merge --ff-only FETCH_HEAD

Head is 5c31f9772.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6263510379 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7653#issuecomment-6263510379). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-19T08:57:50Z. --- **Rebase handoff** — rebased onto current `main` cleanly (authorship unchanged). Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, `BUILD_TESTING=ON`, AMD RX 9070 XT / RADV): builds; conventions pass; **full suite green apart from the four known `main` regressions** (#5444 Mesa, #7584 BDA, #7766, #7784), none from this PR. **To pick it up:** ``` git fetch https://github.com/blawesom/AnyPS5 rebase/7653 git checkout <your branch> git merge --ff-only FETCH_HEAD ``` Head is `5c31f9772`.
blawesom commented 2026-10-19 19:19:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-19T19:19:33Z.


Rebase handoff — rebased onto current main (585075cb7, authorship unchanged). One debt-entry conflict: your rewrite of the kqueue entry vs main's cb9a4c741 (EV_CLEAR on sockets and pipes on Linux), which postdates your branch — I kept your rewrite (the AIO/LIO/SENDFILE/PROCDESC filters, the timer re-add rules, the nanosecond period) and restored main's "off Linux (see the kevent EV_CLEAR entry)" clause, which your base predates.

Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, BUILD_TESTING=ON, AMD RX 9070 XT / RADV): builds; guest_kqueue (3.9 s, including your 121 new test lines) and guest_aio pass; full suite green apart from the four known main regressions (#5444 Mesa, #7584 BDA, #7766, #7784), none from this PR; conventions pass (two [debt-length] findings on the rewritten entries, warnings only).

One observation for reviewers: your NotImplemented for "kevent: re-adding a disabled EVFILT_TIMER" is the same corner I flagged on #7049's review (a timer's EV_ENABLE needs to re-arm the expiry); whatever fills that gap can supersede both throw sites.

To pick it up:

git fetch https://github.com/blawesom/AnyPS5 rebase/7653
git checkout <your branch>
git merge --ff-only FETCH_HEAD

Head is 4e12b0d86.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6275314701 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7653#issuecomment-6275314701). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-19T19:19:33Z. --- **Rebase handoff** — rebased onto current `main` (`585075cb7`, authorship unchanged). One debt-entry conflict: your rewrite of the kqueue entry vs `main`'s `cb9a4c741` (EV_CLEAR on sockets and pipes on Linux), which postdates your branch — I kept your rewrite (the AIO/LIO/SENDFILE/PROCDESC filters, the timer re-add rules, the nanosecond period) and restored `main`'s "off Linux (see the kevent EV_CLEAR entry)" clause, which your base predates. Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, `BUILD_TESTING=ON`, AMD RX 9070 XT / RADV): builds; `guest_kqueue` (3.9 s, including your 121 new test lines) and `guest_aio` pass; **full suite green apart from the four known `main` regressions** (#5444 Mesa, #7584 BDA, #7766, #7784), none from this PR; conventions pass (two `[debt-length]` findings on the rewritten entries, warnings only). One observation for reviewers: your `NotImplemented` for "kevent: re-adding a disabled EVFILT_TIMER" is the same corner I flagged on #7049's review (a timer's `EV_ENABLE` needs to re-arm the expiry); whatever fills that gap can supersede both throw sites. **To pick it up:** ``` git fetch https://github.com/blawesom/AnyPS5 rebase/7653 git checkout <your branch> git merge --ff-only FETCH_HEAD ``` Head is `4e12b0d86`.
blawesom commented 2026-10-22 06:34:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-22T06:34:36Z.


Rebase handoff — rebased onto current main (d6eafa54d0, authorship unchanged). No code conflict this time; the one conflict is the kqueue and kevent debt entry, resolved as follows:

  • Your edits applied onto main's current text: the "nothing here is taken from a console except what the kevent measurements entry lists" opener, the EVFILT_AIO/EVFILT_LIO/EVFILT_SENDFILE/EVFILT_PROCDESC exceptions with the measurements cross-reference, and the timer re-add sentence with the nanosecond-period note.
  • Your base (6696def6e) predates main's 6ead14f9 (kevent on a kqueue), so your throw list still named "EVFILT_READ on another kqueue"; that clause is dropped, since the rebased tree keeps main's AddKqueueKnote support and its own kevent on a kqueue entry. Everything else from main's evolved entry (pipe write end, write low-water marks) is kept.

Verified on Linux (CachyOS, kernel 7.2.10, GCC 16.2.1, Ninja, Release, BUILD_TESTING=ON, Ryzen 7 9800X3D): builds; conventions pass (two pre-existing [debt-length] warnings on the kqueue entries); guest_kqueue (4.3 s, including your 121 test lines), guest_equeue_events and guest_aio pass.

The earlier observation stands: your NotImplemented for the disabled-timer re-arm is the same corner flagged on #7049 (whose timer modify relaxation kept a throw for it), so whatever fills that gap can supersede both throw sites.

To pick it up:

git fetch https://github.com/blawesom/AnyPS5 rebase/7653
git checkout <your branch>
git merge --ff-only FETCH_HEAD

Head is c67f21d56a.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6334414905 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7653#issuecomment-6334414905). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-22T06:34:36Z. --- **Rebase handoff** — rebased onto current `main` (`d6eafa54d0`, authorship unchanged). No code conflict this time; the one conflict is the *kqueue and kevent* debt entry, resolved as follows: - Your edits applied onto `main`'s current text: the "nothing here is taken from a console except what the kevent measurements entry lists" opener, the `EVFILT_AIO`/`EVFILT_LIO`/`EVFILT_SENDFILE`/`EVFILT_PROCDESC` exceptions with the measurements cross-reference, and the timer re-add sentence with the nanosecond-period note. - Your base (`6696def6e`) predates `main`'s `6ead14f9` (kevent on a kqueue), so your throw list still named "`EVFILT_READ` on another kqueue"; that clause is **dropped**, since the rebased tree keeps `main`'s `AddKqueueKnote` support and its own *kevent on a kqueue* entry. Everything else from `main`'s evolved entry (pipe write end, write low-water marks) is kept. Verified on Linux (CachyOS, kernel 7.2.10, GCC 16.2.1, Ninja, Release, `BUILD_TESTING=ON`, Ryzen 7 9800X3D): builds; conventions pass (two pre-existing `[debt-length]` warnings on the kqueue entries); `guest_kqueue` (4.3 s, including your 121 test lines), `guest_equeue_events` and `guest_aio` pass. The earlier observation stands: your `NotImplemented` for the disabled-timer re-arm is the same corner flagged on #7049 (whose timer modify relaxation kept a throw for it), so whatever fills that gap can supersede both throw sites. **To pick it up:** ``` git fetch https://github.com/blawesom/AnyPS5 rebase/7653 git checkout <your branch> git merge --ff-only FETCH_HEAD ``` Head is `c67f21d56a`.
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!7653
No description provided.