|
|
@@ -1,21 +1,6 @@
|
|
|
use core::ffi::c_void;
|
|
|
|
|
|
-#[cfg(any(
|
|
|
- bpf_target_arch = "x86_64",
|
|
|
- bpf_target_arch = "arm",
|
|
|
- bpf_target_arch = "powerpc64",
|
|
|
- bpf_target_arch = "mips"
|
|
|
-))]
|
|
|
-use crate::bindings::pt_regs;
|
|
|
-#[cfg(any(
|
|
|
- bpf_target_arch = "aarch64",
|
|
|
- bpf_target_arch = "loongarch64",
|
|
|
- bpf_target_arch = "s390x",
|
|
|
-))]
|
|
|
-use crate::bindings::user_pt_regs as pt_regs;
|
|
|
-#[cfg(bpf_target_arch = "riscv64")]
|
|
|
-use crate::bindings::user_regs_struct as pt_regs;
|
|
|
-use crate::{Argument, EbpfContext, args::ret};
|
|
|
+use crate::{Argument, EbpfContext, args::ret, bindings::pt_regs};
|
|
|
|
|
|
pub struct RetProbeContext {
|
|
|
pub regs: *mut pt_regs,
|