From 83a228cf37fc65f2d14e4896a04922b5ee531a94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Fri, 1 Nov 2024 13:17:22 -0700 Subject: [PATCH] Add Rust bindings for s390x vmlinux.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add Rust bindings for s390x and add missing case for riscv64. Signed-off-by: Daniel Müller --- src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 09bd549..cef9ce6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,6 +14,8 @@ pub static VMLINUX_arm: &[u8] = include_bytes!("../include/arm/vmlinux.h"); pub static VMLINUX_loongarch64: &[u8] = include_bytes!("../include/loongarch64/vmlinux.h"); /// The contents of `vmlinux.h` for `powerpc`. pub static VMLINUX_powerpc: &[u8] = include_bytes!("../include/powerpc/vmlinux.h"); +/// The contents of `vmlinux.h` for `s390x`. +pub static VMLINUX_s390x: &[u8] = include_bytes!("../include/s390x/vmlinux.h"); /// The contents of `vmlinux.h` for `riscv64`. pub static VMLINUX_riscv64: &[u8] = include_bytes!("../include/riscv64/vmlinux.h"); /// The contents of `vmlinux.h` for `x86`. @@ -89,6 +91,10 @@ pub static VMLINUX: &[u8] = { VMLINUX_aarch64 } else if eq(arch, "loongarch64") { VMLINUX_loongarch64 + } else if eq(arch, "riscv64") { + VMLINUX_riscv64 + } else if eq(arch, "s390x") { + VMLINUX_s390x } else if eq(arch, "powerpc") { VMLINUX_powerpc } else {