Skip to content

refactor(fspy): extract Unix client crate - #629

Merged
wan9chi merged 3 commits into
mainfrom
agent/extract-fspy-client-unix
Aug 10, 2026
Merged

refactor(fspy): extract Unix client crate#629
wan9chi merged 3 commits into
mainfrom
agent/extract-fspy-client-unix

Conversation

@wan9chi

@wan9chi wan9chi commented Aug 10, 2026

Copy link
Copy Markdown
Member

Motivation

The Unix fspy client currently lives inside the LD_PRELOAD artifact, coupling path resolution, shared-memory reporting, and exec transformation to preload-owned initialization and re-entry state.

Move the reusable client into fspy_client_unix, while leaving the constructor, global storage, and thread-local interception guard in fspy_preload_unix. This gives the injected runtime a focused client crate to adapt without inheriting preload lifecycle assumptions.

Co-authored-by: GPT-5 Codex <codex@openai.com>
@wan9chi wan9chi changed the title agent/extract fspy client unix refactor(fspy): extract Unix client crate Aug 10, 2026
@github-actions

github-actions Bot commented Aug 10, 2026

Copy link
Copy Markdown

fspy benchmark

linux

dynamic/launch             change  +1.04%  [ -6.91% ..  +6.62%]  overhead   +50.45%
dynamic/access             change  +0.10%  [ -6.77% .. +26.21%]  overhead    +7.35%
dynamic/access-relative    change  +0.77%  [-15.61% .. +22.89%]  overhead   +49.83%
static/launch              change  +1.03%  [ -8.38% ..  +9.62%]  overhead  +150.02%
static/access              change  +0.52%  [-11.47% ..  +5.61%]  overhead  +745.53%
static/access-relative     change  +1.04%  [ -8.02% ..  +8.95%]  overhead +1008.74%

macos

dynamic/launch             change  -0.02%  [ -5.01% ..  +5.05%]  overhead  +236.53%
dynamic/access             change  -2.88%  [-58.74% ..  +5.71%]  overhead    +4.04%
dynamic/access-relative    change  +1.32%  [ -8.87% .. +14.44%]  overhead  +257.66%

windows

dynamic/launch             change  +1.17%  [ -6.53% ..  +8.30%]  overhead   +26.19%
dynamic/access             change  -0.17%  [ -9.72% ..  +6.02%]  overhead    +1.21%
dynamic/access-relative    change  +1.01%  [ -9.16% .. +14.67%]  overhead    +3.94%

wan9chi and others added 2 commits August 10, 2026 17:40
Co-authored-by: GPT-5 Codex <codex@openai.com>
Co-authored-by: GPT-5 Codex <codex@openai.com>
@wan9chi
wan9chi marked this pull request as ready for review August 10, 2026 10:22
@wan9chi
wan9chi merged commit 4453fcf into main Aug 10, 2026
19 checks passed
@wan9chi
wan9chi deleted the agent/extract-fspy-client-unix branch August 10, 2026 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant