Skip to content

refactor(ebpf): use AsyncFd in PerfEventReader#601

Merged
dmah42 merged 1 commit into
aurae-runtime:mainfrom
mccormickt:push-rpslkxrysktu
May 12, 2026
Merged

refactor(ebpf): use AsyncFd in PerfEventReader#601
dmah42 merged 1 commit into
aurae-runtime:mainfrom
mccormickt:push-rpslkxrysktu

Conversation

@mccormickt
Copy link
Copy Markdown
Contributor

@mccormickt mccormickt commented May 6, 2026

AsyncPerfEventArray and the accompanying async_tokio is removed in future versions of aya. This change refactors our PerfBufferReader to use an AsyncFd for async support to reduce friction in migrating to a future release.

aya-rs/aya#1292

* Distributed Systems Runtime *
* -------------------------------------------------------------------------- *
* Copyright 2022 - 2024, the aurae contributors *
* SPDX-License-Identifier: Apache-2.0 *
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Maybe we need to adapt this header for the code since it must be GPL-compatible? Cillium (Apache 2.0) has their ebpf code licensed Dual BSD/GPL, for example.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

it looks like your change here is removing the GPL-2.0 and MIT license identifiers that were here for exactly that reason. (it was dual license MIT/GPL2.0 prior to this PR)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Reverted. Limited this change to just the tokio-compat and left the headers and licenses as they were.

@mccormickt mccormickt force-pushed the push-rpslkxrysktu branch from e7527e4 to 001f6bc Compare May 8, 2026 01:35
* Copyright 2022 - 2024, the aurae contributors *
* SPDX-License-Identifier: Apache-2.0 *
\* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- *\
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same here.. don't remove this :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Gotcha - thought this was just a double-header mistake.

* Copyright 2022 - 2024, the aurae contributors *
* SPDX-License-Identifier: Apache-2.0 *
\* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- *\
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ditto

@mccormickt mccormickt force-pushed the push-rpslkxrysktu branch from 001f6bc to 786e0eb Compare May 12, 2026 00:17
@dmah42 dmah42 merged commit a19f388 into aurae-runtime:main May 12, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants