libkernel: measure clock_gettime clock id 20 on PS5 (Age of Mythology Retold, Party.prx) #15725
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 XatiX on 2026-11-04T09:43:21Z.
What is unknown
clock_gettimewith clock id20has no documented meaning. shadPS4 defines ids 16 to 19 only (PS4 network clocks), and nothing found so far describes 20. AnyPS5 currently throws for ids 16 to 31 inclock_gettimeandclock_getres, which is correct while the PS5's answer is unknown.Who needs it
Age of Mythology Retold (PPSA18653) stops at about 50 s on this call, from
Party.prxat0x29be26. The caller handles a failure: it falls back togettimeofdayand thentime(0). ReturningEINVALlocally lets the game reach its first-run welcome screen, but that is a guess, so it can't go upstream (see #15656, closed for that reason).What needs measuring
A PS5 payload that calls, on real firmware:
clock_gettime(20, &ts): return value,errno, andts(also whethertsis written on failure);clock_getres(20, &ts), the same;If id 20 returns a time, also note which clock it tracks (compare a few calls against
CLOCK_MONOTONICandCLOCK_REALTIME).Once measured, the result can be implemented as the default for that id, with the measurement cited in the debt entry in
docs/dev/debt/libkernel.md.Bring-up thread: #15328.