From 59082f572c01e8356312ed53bdb818cfbea944b5 Mon Sep 17 00:00:00 2001 From: Dave Tucker Date: Wed, 9 Oct 2024 11:28:28 +0100 Subject: [PATCH] Release aya-ebpf-cty v0.2.2, aya-ebpf-bindings v0.1.1, aya-ebpf-macros v0.1.1, aya-ebpf v0.1.1 Signed-off-by: Dave Tucker --- aya-ebpf-macros/CHANGELOG.md | 40 +++++++++++++++++- aya-ebpf-macros/Cargo.toml | 4 +- ebpf/aya-ebpf-bindings/CHANGELOG.md | 38 ++++++++++++++++- ebpf/aya-ebpf-bindings/Cargo.toml | 4 +- ebpf/aya-ebpf-cty/CHANGELOG.md | 34 ++++++++++++++- ebpf/aya-ebpf-cty/Cargo.toml | 2 +- ebpf/aya-ebpf/CHANGELOG.md | 65 ++++++++++++++++++++++++++++- ebpf/aya-ebpf/Cargo.toml | 8 ++-- ebpf/aya-log-ebpf/Cargo.toml | 2 +- 9 files changed, 183 insertions(+), 14 deletions(-) diff --git a/aya-ebpf-macros/CHANGELOG.md b/aya-ebpf-macros/CHANGELOG.md index 09521087..4e1df55f 100644 --- a/aya-ebpf-macros/CHANGELOG.md +++ b/aya-ebpf-macros/CHANGELOG.md @@ -5,6 +5,43 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## v0.1.1 (2024-10-09) + +### Chore + + - aya-ebpf-macros: uncomment aya-ebpf dev-dep + This wasn't meant to be committed, cargo-smart-release. Commenting is + needed to fix the cyclic dep aya-ebpf-macros -> aya-ebpf -> + aya-ebpf-macros. See + https://github.com/rust-lang/cargo/issues/4242#issuecomment-413203081 + +### Other + + - separate probe to probe ctx & retprobe to retprobe ctx + Added logic in expand function in both kprobe.rs and uprobe.rs for valid + macros. Now, kprobe & uprobe proc macros only accept ProbeContext, and + kretprobe & uretprobe only accept RetProbeContext. + +### Commit Statistics + + + + - 2 commits contributed to the release. + - 185 days passed between releases. + - 2 commits were understood as [conventional](https://www.conventionalcommits.org). + - 0 issues like '(#ID)' were seen in commit messages + +### Commit Details + + + +
view details + + * **Uncategorized** + - Separate probe to probe ctx & retprobe to retprobe ctx ([`b84ede1`](https://github.com/aya-rs/aya/commit/b84ede10b9c4813f221fade16b60d5ced4ecdc58)) + - Aya-ebpf-macros: uncomment aya-ebpf dev-dep ([`a6f4739`](https://github.com/aya-rs/aya/commit/a6f4739b5b138e718632758cad266ee3cb7b1b65)) +
+ ## v0.1.0 (2024-04-06) @@ -22,7 +59,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - - 8 commits contributed to the release over the course of 31 calendar days. + - 9 commits contributed to the release. - 2 commits were understood as [conventional](https://www.conventionalcommits.org). - 0 issues like '(#ID)' were seen in commit messages @@ -33,6 +70,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
view details * **Uncategorized** + - Release aya-ebpf-macros v0.1.0 ([`9d24bbe`](https://github.com/aya-rs/aya/commit/9d24bbe316ddf5caca7413198d6f79a0064def88)) - Release aya-ebpf-macros v0.1.0 ([`90f68db`](https://github.com/aya-rs/aya/commit/90f68dbd074e4cd74540d98fb9f17b6c2de3d054)) - Release aya-ebpf-macros v0.1.0, aya-ebpf v0.1.0 ([`eb3947b`](https://github.com/aya-rs/aya/commit/eb3947bf14e8e7ab0f70e12306e38fb8056edf57)) - Release aya-ebpf-bindings v0.1.0, aya-ebpf-macros v0.1.0, aya-ebpf v0.1.0 ([`a34c5e4`](https://github.com/aya-rs/aya/commit/a34c5e43b85dd176b9b18f1cc9c9d80d52f10a1f)) diff --git a/aya-ebpf-macros/Cargo.toml b/aya-ebpf-macros/Cargo.toml index b61ff477..3990ffc5 100644 --- a/aya-ebpf-macros/Cargo.toml +++ b/aya-ebpf-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aya-ebpf-macros" -version = "0.1.0" +version = "0.1.1" description = "Proc macros used by aya-ebpf" authors.workspace = true license.workspace = true @@ -18,4 +18,4 @@ quote = { workspace = true } syn = { workspace = true, default-features = true, features = ["full"] } [dev-dependencies] -aya-ebpf = { path = "../ebpf/aya-ebpf", version = "^0.1.0", default-features = false } +aya-ebpf = { path = "../ebpf/aya-ebpf", version = "^0.1.1", default-features = false } diff --git a/ebpf/aya-ebpf-bindings/CHANGELOG.md b/ebpf/aya-ebpf-bindings/CHANGELOG.md index cf67e3ed..1bf9dac2 100644 --- a/ebpf/aya-ebpf-bindings/CHANGELOG.md +++ b/ebpf/aya-ebpf-bindings/CHANGELOG.md @@ -5,11 +5,46 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## v0.1.1 (2024-10-09) + +### Other + + - add archs powerpc64 and s390x to aya + bpfman, a project using aya, has a requirement to support powerpc64 and + s390x architectures. Adding these two architectures to aya. + +### Commit Statistics + + + + - 8 commits contributed to the release. + - 185 days passed between releases. + - 1 commit was understood as [conventional](https://www.conventionalcommits.org). + - 0 issues like '(#ID)' were seen in commit messages + +### Commit Details + + + +
view details + + * **Uncategorized** + - Merge pull request #974 from Billy99/billy99-arch-ppc64-s390x ([`ab5e688`](https://github.com/aya-rs/aya/commit/ab5e688fd49fcfb402ad47d51cb445437fbd8cb7)) + - Add archs powerpc64 and s390x to aya ([`b513af1`](https://github.com/aya-rs/aya/commit/b513af12e8baa5c5097eaf0afdae61a830c3f877)) + - Merge pull request #1010 from aya-rs/codegen ([`bdbd042`](https://github.com/aya-rs/aya/commit/bdbd0423f8aa00f9e59a0b06d2ac9735c373c27f)) + - [codegen] Update libbpf to b07dfe3b2a6cb0905e883510f22f9f7c0bb66d0dUpdate libbpf to b07dfe3b2a6cb0905e883510f22f9f7c0bb66d0d ([`e217727`](https://github.com/aya-rs/aya/commit/e2177278ae9951a0262349a6741d013032b3cce6)) + - Merge pull request #978 from aya-rs/codegen ([`06aa5c8`](https://github.com/aya-rs/aya/commit/06aa5c8ed344bd0d85096a0fd033ff0bd90a2f88)) + - [codegen] Update libbpf to c1a6c770c46c6e78ad6755bf596c23a4e6f6b216 ([`8b50a6a`](https://github.com/aya-rs/aya/commit/8b50a6a5738b5a57121205490d26805c74cb63de)) + - Allowlist expected cfgs ([`e4f9ed8`](https://github.com/aya-rs/aya/commit/e4f9ed8d79e4cd19ab5124352fca9e6cbdc1030b)) + - Deny warnings ([`b603c66`](https://github.com/aya-rs/aya/commit/b603c665a9a2ec48de2c4b412876bd015e5ead15)) +
+ ## v0.1.0 (2024-04-06) + ### Chore @@ -31,7 +66,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - - 6 commits contributed to the release over the course of 31 calendar days. + - 7 commits contributed to the release. - 4 commits were understood as [conventional](https://www.conventionalcommits.org). - 0 issues like '(#ID)' were seen in commit messages @@ -42,6 +77,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
view details * **Uncategorized** + - Release aya-ebpf-bindings v0.1.0, aya-ebpf-macros v0.1.0, aya-ebpf v0.1.0 ([`a34c5e4`](https://github.com/aya-rs/aya/commit/a34c5e43b85dd176b9b18f1cc9c9d80d52f10a1f)) - Add version keys to Cargo.toml(s) ([`a4ae8ad`](https://github.com/aya-rs/aya/commit/a4ae8adb0db75f2b82b10b0740447a1dbead62c0)) - Release aya-ebpf-bindings v0.1.0, aya-ebpf-macros v0.1.0, aya-ebpf v0.1.0 ([`b8964d3`](https://github.com/aya-rs/aya/commit/b8964d3fd27353beb9054dd18fe8d16251f9164b)) - Add changelogs ([`c7fe60d`](https://github.com/aya-rs/aya/commit/c7fe60d47e0cc32fc7123e37532d104eaa392b50)) diff --git a/ebpf/aya-ebpf-bindings/Cargo.toml b/ebpf/aya-ebpf-bindings/Cargo.toml index 839978a1..d36f9456 100644 --- a/ebpf/aya-ebpf-bindings/Cargo.toml +++ b/ebpf/aya-ebpf-bindings/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aya-ebpf-bindings" -version = "0.1.0" +version = "0.1.1" description = "Bindings for Linux Kernel eBPF types and helpers" authors.workspace = true license.workspace = true @@ -9,4 +9,4 @@ homepage.workspace = true edition.workspace = true [dependencies] -aya-ebpf-cty = { version = "0.2.1", path = "../aya-ebpf-cty" } +aya-ebpf-cty = { version = "^0.2.2", path = "../aya-ebpf-cty" } diff --git a/ebpf/aya-ebpf-cty/CHANGELOG.md b/ebpf/aya-ebpf-cty/CHANGELOG.md index eb19d2ce..23c0b0a1 100644 --- a/ebpf/aya-ebpf-cty/CHANGELOG.md +++ b/ebpf/aya-ebpf-cty/CHANGELOG.md @@ -65,8 +65,39 @@ This project adheres to $[Semantic Versioning](http://semver.org/). [v0.1.2]: https://github.com/japaric/cty/compare/v0.1.1...v0.1.2 [v0.1.1]: https://github.com/japaric/cty/compare/v0.1.0...v0.1.1 +## v0.2.2 (2024-10-09) + +### Other + + - add archs powerpc64 and s390x to aya + bpfman, a project using aya, has a requirement to support powerpc64 and + s390x architectures. Adding these two architectures to aya. + +### Commit Statistics + + + + - 3 commits contributed to the release. + - 185 days passed between releases. + - 1 commit was understood as [conventional](https://www.conventionalcommits.org). + - 0 issues like '(#ID)' were seen in commit messages + +### Commit Details + + + +
view details + + * **Uncategorized** + - Merge pull request #974 from Billy99/billy99-arch-ppc64-s390x ([`ab5e688`](https://github.com/aya-rs/aya/commit/ab5e688fd49fcfb402ad47d51cb445437fbd8cb7)) + - Add archs powerpc64 and s390x to aya ([`b513af1`](https://github.com/aya-rs/aya/commit/b513af12e8baa5c5097eaf0afdae61a830c3f877)) + - Allowlist expected cfgs ([`e4f9ed8`](https://github.com/aya-rs/aya/commit/e4f9ed8d79e4cd19ab5124352fca9e6cbdc1030b)) +
+ ## v0.2.1 (2024-04-06) + + ### Chore - Rename bpf -> ebpf @@ -75,7 +106,7 @@ This project adheres to $[Semantic Versioning](http://semver.org/). - - 2 commits contributed to the release over the course of 29 calendar days. + - 3 commits contributed to the release. - 1 commit was understood as [conventional](https://www.conventionalcommits.org). - 0 issues like '(#ID)' were seen in commit messages @@ -86,6 +117,7 @@ This project adheres to $[Semantic Versioning](http://semver.org/).
view details * **Uncategorized** + - Release aya-ebpf-cty v0.2.1, aya-ebpf-bindings v0.1.0, aya-ebpf-macros v0.1.0, aya-ebpf v0.1.0 ([`e372fcf`](https://github.com/aya-rs/aya/commit/e372fcf653304c6d7c2647cd7812ca11474f41fc)) - Merge pull request #528 from dave-tucker/rename-all-the-things ([`63d8d4d`](https://github.com/aya-rs/aya/commit/63d8d4d34bdbbee149047dc0a5e9c2b191f3b32d)) - Rename bpf -> ebpf ([`21f570a`](https://github.com/aya-rs/aya/commit/21f570a19cd8d6e8eeaa6127d936877a701ceac3))
diff --git a/ebpf/aya-ebpf-cty/Cargo.toml b/ebpf/aya-ebpf-cty/Cargo.toml index 94c4cbf4..2f8bb64e 100644 --- a/ebpf/aya-ebpf-cty/Cargo.toml +++ b/ebpf/aya-ebpf-cty/Cargo.toml @@ -3,7 +3,7 @@ categories = ["embedded", "external-ffi-bindings", "no-std"] description = "Type aliases to C types like c_int for use with bindgen" documentation = "https://docs.rs/aya-bpf-cty" name = "aya-ebpf-cty" -version = "0.2.1" +version = "0.2.2" authors.workspace = true license.workspace = true repository.workspace = true diff --git a/ebpf/aya-ebpf/CHANGELOG.md b/ebpf/aya-ebpf/CHANGELOG.md index d2ea288e..fb00292b 100644 --- a/ebpf/aya-ebpf/CHANGELOG.md +++ b/ebpf/aya-ebpf/CHANGELOG.md @@ -5,6 +5,68 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## v0.1.1 (2024-10-09) + +### New Features + + - Implement memmove + The compiler will emit this function for certain operations, but aya + currently does not provide an implementation. + This leads to ebpf loading failures as the kernel can't find the symbol when + loading the program. + + The implementation is based on https://github.com/rust-lang/compiler-builtins/blob/master/src/mem/mod.rs#L29-L40 + and https://github.com/rust-lang/compiler-builtins/blob/master/src/mem/impls.rs#L128-L135 + Only the simplest case has been implemented, none of the word optimizations, + since memcpy also doesn't seem to have them. + +### Bug Fixes + + - Remove PerfEventArray::with_max_entries + This API doesn't make sense as the max_entries needs to be set to the + number of online CPUs by the loader. + +### Other + + - Add set_reply accessor to SockOpsContext + - add archs powerpc64 and s390x to aya + bpfman, a project using aya, has a requirement to support powerpc64 and + s390x architectures. Adding these two architectures to aya. + - moved ret from ProbeContext into new RetProbeContext + Created retprobe.rs to hold RetProbeContext and moved the ret from + ProbeContext in probe.rs into RetProbeContext. Now, only kprobe (which + uses ProbeContext) can access args, and kretprobe (which uses + RetProbeContext) can access ret. + +### Commit Statistics + + + + - 11 commits contributed to the release. + - 185 days passed between releases. + - 5 commits were understood as [conventional](https://www.conventionalcommits.org). + - 0 issues like '(#ID)' were seen in commit messages + +### Commit Details + + + +
view details + + * **Uncategorized** + - Merge pull request #1020 from l2dy/sockops-ctx ([`635ed3b`](https://github.com/aya-rs/aya/commit/635ed3baed5442c1364a360d7234b72c4ffe3fd8)) + - Add set_reply accessor to SockOpsContext ([`95e1763`](https://github.com/aya-rs/aya/commit/95e1763e30e0dcfe1256ecd9e32ca27dd65342b4)) + - Merge pull request #974 from Billy99/billy99-arch-ppc64-s390x ([`ab5e688`](https://github.com/aya-rs/aya/commit/ab5e688fd49fcfb402ad47d51cb445437fbd8cb7)) + - Add archs powerpc64 and s390x to aya ([`b513af1`](https://github.com/aya-rs/aya/commit/b513af12e8baa5c5097eaf0afdae61a830c3f877)) + - Appease nightly clippy ([`bce3c4f`](https://github.com/aya-rs/aya/commit/bce3c4fb1d0cd6e8f9f64420c59e02a42c96b2c8)) + - Remove PerfEventArray::with_max_entries ([`ef0d125`](https://github.com/aya-rs/aya/commit/ef0d1253efcc5a385afc74668d4f28580d328822)) + - Implement memmove ([`7ad3926`](https://github.com/aya-rs/aya/commit/7ad3926d996f6471da05a8f3cab0283bb38c1498)) + - Allowlist expected cfgs ([`e4f9ed8`](https://github.com/aya-rs/aya/commit/e4f9ed8d79e4cd19ab5124352fca9e6cbdc1030b)) + - Deny warnings ([`b603c66`](https://github.com/aya-rs/aya/commit/b603c665a9a2ec48de2c4b412876bd015e5ead15)) + - Moved ret from ProbeContext into new RetProbeContext ([`2d38b23`](https://github.com/aya-rs/aya/commit/2d38b23b99cd259f7a249f4c63b12da909c67015)) + - Appease clippy ([`57cd351`](https://github.com/aya-rs/aya/commit/57cd35172f1534444a548460de6eae4680488711)) +
+ ## v0.1.0 (2024-04-06) @@ -31,7 +93,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - - 9 commits contributed to the release over the course of 31 calendar days. + - 10 commits contributed to the release. - 5 commits were understood as [conventional](https://www.conventionalcommits.org). - 0 issues like '(#ID)' were seen in commit messages @@ -42,6 +104,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
view details * **Uncategorized** + - Release aya-ebpf v0.1.0 ([`c3ae6f9`](https://github.com/aya-rs/aya/commit/c3ae6f90d8d3be8b31d1de9ccc042133f9ac8f44)) - Release aya-ebpf-macros v0.1.0, aya-ebpf v0.1.0 ([`eb3947b`](https://github.com/aya-rs/aya/commit/eb3947bf14e8e7ab0f70e12306e38fb8056edf57)) - Release aya-ebpf-bindings v0.1.0, aya-ebpf-macros v0.1.0, aya-ebpf v0.1.0 ([`a34c5e4`](https://github.com/aya-rs/aya/commit/a34c5e43b85dd176b9b18f1cc9c9d80d52f10a1f)) - Add version keys to Cargo.toml(s) ([`a4ae8ad`](https://github.com/aya-rs/aya/commit/a4ae8adb0db75f2b82b10b0740447a1dbead62c0)) diff --git a/ebpf/aya-ebpf/Cargo.toml b/ebpf/aya-ebpf/Cargo.toml index 099b1482..cb48f183 100644 --- a/ebpf/aya-ebpf/Cargo.toml +++ b/ebpf/aya-ebpf/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aya-ebpf" -version = "0.1.0" +version = "0.1.1" description = "A library for writing eBPF programs" authors.workspace = true license.workspace = true @@ -9,9 +9,9 @@ homepage.workspace = true edition.workspace = true [dependencies] -aya-ebpf-cty = { version = "0.2.1", path = "../aya-ebpf-cty" } -aya-ebpf-macros = { version = "^0.1.0", path = "../../aya-ebpf-macros" } -aya-ebpf-bindings = { version = "^0.1.0", path = "../aya-ebpf-bindings" } +aya-ebpf-cty = { version = "^0.2.2", path = "../aya-ebpf-cty" } +aya-ebpf-macros = { version = "^0.1.1", path = "../../aya-ebpf-macros" } +aya-ebpf-bindings = { version = "^0.1.1", path = "../aya-ebpf-bindings" } const-assert = { workspace = true, optional = true } [build-dependencies] diff --git a/ebpf/aya-log-ebpf/Cargo.toml b/ebpf/aya-log-ebpf/Cargo.toml index d33f7029..dedd4d24 100644 --- a/ebpf/aya-log-ebpf/Cargo.toml +++ b/ebpf/aya-log-ebpf/Cargo.toml @@ -9,7 +9,7 @@ homepage.workspace = true edition.workspace = true [dependencies] -aya-ebpf = { version = "^0.1.0", path = "../aya-ebpf" } +aya-ebpf = { version = "^0.1.1", path = "../aya-ebpf" } aya-log-common = { version = "0.1.14", path = "../../aya-log-common" } aya-log-ebpf-macros = { version = "^0.1.0", path = "../../aya-log-ebpf-macros" }