Browse Source

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 <william@williamfindlay.com>
William Findlay 3 years ago
parent
commit
b30fd424ef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bpf/aya-bpf/src/helpers.rs

+ 1 - 1
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};