Skip to content

fix: handle trace event budget exhaustion - #265

Merged
swananan merged 1 commit into
mainfrom
fix/event-budget-handling
Jul 30, 2026
Merged

fix: handle trace event budget exhaustion#265
swananan merged 1 commit into
mainfrom
fix/event-budget-handling

Conversation

@swananan

Copy link
Copy Markdown
Owner

Summary

  • reject trace-event sizes below the fixed protocol envelope before BPF map
    creation
  • fail compilation when a trace path's static reservations exceed the event
    budget instead of silently dropping the event at runtime
  • treat nested value payloads atomically so constrained events render as
    <truncated> rather than exposing invalid nested-child markers
  • document the minimum event size and add regression coverage for all three
    failure modes

Testing

  • cargo fmt --all -- --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test -p ghostscope-compiler (168 passed)
  • cargo test -p ghostscope (77 passed)
  • full standard host-to-host e2e via the project runner, including all three
    new regression tests (runner c845590953cc)

Container-topology e2e was not run because this change does not affect container
or PID-namespace behavior.

Reject undersized and statically over-budget trace events before attach.
Treat nested payloads atomically so truncated events remain structurally valid,
and cover the failure modes with end-to-end tests.
@swananan
swananan merged commit f059681 into main Jul 30, 2026
9 checks passed
@swananan
swananan deleted the fix/event-budget-handling branch July 30, 2026 15:39
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