Skip to content

aya-ebpf-macros: emit uprobe.multi sections#1548

Merged
tamird merged 1 commit into
aya-rs:mainfrom
swananan:feat/uprobe-ebpf-multi
Apr 25, 2026
Merged

aya-ebpf-macros: emit uprobe.multi sections#1548
tamird merged 1 commit into
aya-rs:mainfrom
swananan:feat/uprobe-ebpf-multi

Conversation

@swananan
Copy link
Copy Markdown
Contributor

@swananan swananan commented Apr 24, 2026

Allow #[uprobe] and #[uretprobe] to take a multi argument and emit the uprobe.multi and uretprobe.multi ELF section names in object files.

Split out from #1417 for easier review.

Added/updated tests?

We strongly encourage you to add a test for your changes.

  • Yes

Checklist

  • Rust code has been formatted with cargo +nightly fmt.
  • All clippy lints have been fixed.
    You can find failing lints with cargo xtask clippy.
  • Unit tests are passing locally with cargo test.
  • The Integration tests are passing locally.
  • I have blessed any API changes with cargo xtask public-api --bless.

(Optional) What GIF best describes this PR or how it makes you feel?


This change is Reviewable

@swananan swananan requested a review from a team as a code owner April 24, 2026 13:30
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 24, 2026

Deploy Preview for aya-rs-docs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 8dd77ed
🔍 Latest deploy log https://app.netlify.com/projects/aya-rs-docs/deploys/69eb723278fe9f00087c686d
😎 Deploy Preview https://deploy-preview-1548--aya-rs-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Allow #[uprobe] and #[uretprobe] to take a multi argument and emit
the uprobe.multi and uretprobe.multi ELF section names in object files.
@swananan swananan force-pushed the feat/uprobe-ebpf-multi branch from 51ced8e to 8dd77ed Compare April 24, 2026 13:37
Copy link
Copy Markdown
Member

@tamird tamird left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tamird reviewed 2 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on swananan).

@tamird tamird requested a review from Copilot April 25, 2026 18:48
@tamird
Copy link
Copy Markdown
Member

tamird commented Apr 25, 2026

@codex review

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends aya-ebpf-macros uprobe/uretprobe proc-macros to support a multi attribute and emit libbpf-compatible .multi section names (including correct ordering with .s for sleepable probes).

Changes:

  • Add multi parsing to #[uprobe] / #[uretprobe] and emit uprobe.multi* / uretprobe.multi* ELF section name prefixes.
  • Ensure .multi is emitted before .s (sleepable) in the section name prefix.
  • Refactor existing unit tests into parameterized test-case coverage for multiple section-name combinations.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
aya-ebpf-macros/src/uprobe.rs Adds multi flag and updates section-name construction + expands unit tests via test-case.
aya-ebpf-macros/Cargo.toml Adds test-case as a dev-dependency for the new parameterized tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread aya-ebpf-macros/src/uprobe.rs
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8dd77ed8bc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread aya-ebpf-macros/src/uprobe.rs
@tamird tamird merged commit a375a2d into aya-rs:main Apr 25, 2026
25 of 26 checks passed
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.

3 participants