diff --git a/.github/workflows/gen.yml b/.github/workflows/gen.yml index 8de74f23..43225f3a 100644 --- a/.github/workflows/gen.yml +++ b/.github/workflows/gen.yml @@ -18,6 +18,11 @@ jobs: working-directory: libbpf run: echo "LIBBPF_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV + - uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + - uses: Swatinem/rust-cache@v1 - name: Install headers diff --git a/aya/src/generated/linux_bindings_riscv64.rs b/aya/src/generated/linux_bindings_riscv64.rs new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/aya/src/generated/linux_bindings_riscv64.rs @@ -0,0 +1 @@ + diff --git a/aya/src/generated/mod.rs b/aya/src/generated/mod.rs index 68d119af..54a99ffc 100644 --- a/aya/src/generated/mod.rs +++ b/aya/src/generated/mod.rs @@ -11,6 +11,8 @@ mod btf_internal_bindings; mod linux_bindings_aarch64; #[cfg(target_arch = "arm")] mod linux_bindings_armv7; +#[cfg(target_arch = "riscv64")] +mod linux_bindings_riscv64; #[cfg(target_arch = "x86_64")] mod linux_bindings_x86_64; @@ -24,3 +26,6 @@ pub use linux_bindings_armv7::*; #[cfg(target_arch = "aarch64")] pub use linux_bindings_aarch64::*; + +#[cfg(target_arch = "riscv64")] +pub use linux_bindings_riscv64::*; diff --git a/bpf/aya-bpf-bindings/src/riscv64/bindings.rs b/bpf/aya-bpf-bindings/src/riscv64/bindings.rs new file mode 100644 index 00000000..e69de29b diff --git a/bpf/aya-bpf-bindings/src/riscv64/getters.rs b/bpf/aya-bpf-bindings/src/riscv64/getters.rs new file mode 100644 index 00000000..e69de29b diff --git a/bpf/aya-bpf-bindings/src/riscv64/helpers.rs b/bpf/aya-bpf-bindings/src/riscv64/helpers.rs new file mode 100644 index 00000000..e69de29b diff --git a/bpf/aya-bpf-bindings/src/riscv64/mod.rs b/bpf/aya-bpf-bindings/src/riscv64/mod.rs new file mode 100644 index 00000000..52febe70 --- /dev/null +++ b/bpf/aya-bpf-bindings/src/riscv64/mod.rs @@ -0,0 +1,4 @@ +#![allow(clippy::all, dead_code)] +pub mod bindings; +pub mod getters; +pub mod helpers;