From b30fd424ef0ba428bcbbc0d74a5674ede2d2fbb4 Mon Sep 17 00:00:00 2001 From: William Findlay Date: Sun, 31 Oct 2021 09:54:46 -0400 Subject: [PATCH] aya-bpf/helpers: expose raw bindings through helpers::gen Until we add another set of bpf_probe_read_* wrappers for reading into a map pointer, users need access to the underlying bpf_probe_read helper, which is clobbered by this module. This patch enables direct access to the underlying helpers::gen module to support such use cases. In my view, it would also probably make sense to just not export helpers::gen::* and force the user to opt into helpers::gen, but this can be decided on later. Signed-off-by: William Findlay --- bpf/aya-bpf/src/helpers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bpf/aya-bpf/src/helpers.rs b/bpf/aya-bpf/src/helpers.rs index 7a03a28c..9424881e 100644 --- a/bpf/aya-bpf/src/helpers.rs +++ b/bpf/aya-bpf/src/helpers.rs @@ -1,6 +1,6 @@ use core::mem::{self, MaybeUninit}; -use aya_bpf_bindings::helpers as gen; +pub use aya_bpf_bindings::helpers as gen; pub use gen::*; use crate::cty::{c_char, c_long, c_void};