Skip to content

Commit 83a228c

Browse files
d-e-s-odanielocfb
authored andcommitted
Add Rust bindings for s390x vmlinux.h
Add Rust bindings for s390x and add missing case for riscv64. Signed-off-by: Daniel Müller <[email protected]>
1 parent 9920df3 commit 83a228c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ pub static VMLINUX_arm: &[u8] = include_bytes!("../include/arm/vmlinux.h");
1414
pub static VMLINUX_loongarch64: &[u8] = include_bytes!("../include/loongarch64/vmlinux.h");
1515
/// The contents of `vmlinux.h` for `powerpc`.
1616
pub static VMLINUX_powerpc: &[u8] = include_bytes!("../include/powerpc/vmlinux.h");
17+
/// The contents of `vmlinux.h` for `s390x`.
18+
pub static VMLINUX_s390x: &[u8] = include_bytes!("../include/s390x/vmlinux.h");
1719
/// The contents of `vmlinux.h` for `riscv64`.
1820
pub static VMLINUX_riscv64: &[u8] = include_bytes!("../include/riscv64/vmlinux.h");
1921
/// The contents of `vmlinux.h` for `x86`.
@@ -89,6 +91,10 @@ pub static VMLINUX: &[u8] = {
8991
VMLINUX_aarch64
9092
} else if eq(arch, "loongarch64") {
9193
VMLINUX_loongarch64
94+
} else if eq(arch, "riscv64") {
95+
VMLINUX_riscv64
96+
} else if eq(arch, "s390x") {
97+
VMLINUX_s390x
9298
} else if eq(arch, "powerpc") {
9399
VMLINUX_powerpc
94100
} else {

0 commit comments

Comments
 (0)