Repository navigation
feat(libkernel): implement scePthreadTimedjoin - #10874
pushkarreddyy wants to merge 1 commit into
Conversation
Progress report (8b42692 → b514991)📈 System libraries: 49.3% (+0.01%, +1 implemented, -1 removed functions) ✅ 1 implemented
🗑️ 1 removed
Changed libraries (implemented exports)
|
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
The local behavior tests cover the implementation once called with the declared prototype, but I could not find evidence for the |
|
@MarcZX10 That is a completely fair and accurate observation regarding the ABI evidence. Looking closely at Sony's In accordance with AnyPS5's strict evidence invariants (no unbacked stubs / zero invented ABI contracts), the discovery export should remain throwing ( Proposal: Accelerating Subsystem Mapping & Graphics Relinking via Comparative Runtime Tracing (As Shared on GTA V #1203)To systematically solve the problem of missing ABI signatures and accelerate the relinking and implementation of system libraries and graphics pipelines from the top down, here is the approach we've been outlining on the GTA V and Ghost of Yōtei tracks: 1. Why Top-Down Tracing is NeededRight now, developers hit roadblocks on undocumented SCE system calls, opaque PRX parameters, and AGC graphics command submissions. Without hardware or verified traces, PRs risk stalling on ABI ambiguity. Instead of guessing parameters or waiting for crashes, we need empirical runtime telemetry captured from instrumented environments. 2. Comparative Instrumentation via Open-Source Environments (Kyty / RenderDoc / DBI)For contributors without jailbroken hardware, open-source execution environments like Kyty (and tools like RenderDoc / Frida / LunarG API dump) can be used to capture ground-truth execution:
3. High-Value Telemetry for Upstream Pull RequestsCapturing these exact traces:
This provides the exact empirical evidence required to implement exports and graphics relinking with zero invented state. |
What
This implements
scePthreadTimedjoininlibkernel, completing the SCE sibling forpthread_timedjoin_np(merged in #8890):scePthreadTimedjoin: Validates the deadline parameter (SCE_KERNEL_ERROR_EINVAL/0x80020016on null, negative seconds, or invalid nanoseconds) and delegates toJoinThread_nid_no_patch(thread, retval, abstime), returning native SCE error codes (0x8002000bforEDEADLK,0x8002003cforETIMEDOUT,0x80020003forESRCH,0on success).core/libs/prx/libkernel_sys/Export.Discovery.cpp.GuestTimedJoin.cppcovering null/invalid deadlines, self-join detection, timeout expiration on a running worker, and successful timed joins with return value extraction.Tested
GuestTimedJoin.cpp:scePthreadTimedjoinreturns0x80020016on null deadline or null thread.scePthreadTimedjoinreturns0x8002000b(EDEADLK) on self-join.scePthreadTimedjoinreturns0x8002003c(ETIMEDOUT) when a past deadline expires on an active worker thread.scePthreadTimedjoinsuccessfully joins a completed thread and retrieves its return value.python tools/check_conventions.py --base origin/mainpassed cleanly with 0 findings and 0 errors.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)