pub struct BpfSkeletonBuilder<'a> { /* private fields */ }
Expand description
Builder of BpfSkeleton
Implementations§
Source§impl<'a> BpfSkeletonBuilder<'a>
impl<'a> BpfSkeletonBuilder<'a>
Sourcepub fn from_object_meta_and_object_buffer(
meta: &'a EunomiaObjectMeta,
bpf_object: &'a [u8],
btf_archive_path: Option<&'a str>,
) -> Self
pub fn from_object_meta_and_object_buffer( meta: &'a EunomiaObjectMeta, bpf_object: &'a [u8], btf_archive_path: Option<&'a str>, ) -> Self
Create a builder using provided meta and bpj_object
btf_archive_path - Path to the root of kernel btf archives, if not provided, will try to use env var BTF_FILEP_PATH
and /sys/kernel/btf/vmlinux
Sourcepub fn from_json_package(
package: &'a ComposedObject,
btf_archive_path: Option<&'a str>,
) -> Self
pub fn from_json_package( package: &'a ComposedObject, btf_archive_path: Option<&'a str>, ) -> Self
Create a builder from the json package
btf_archive_path - Path to the root of kernel btf archives, if not provided, will try to use env var BTF_FILEP_PATH
and /sys/kernel/btf/vmlinux
Sourcepub fn set_runner_config(self, cfg: RunnerConfig) -> Self
pub fn set_runner_config(self, cfg: RunnerConfig) -> Self
Set the runner_config of this bpf program
Sourcepub fn build(self) -> Result<PreLoadBpfSkeleton>
pub fn build(self) -> Result<PreLoadBpfSkeleton>
Build (open) the skeleton
Auto Trait Implementations§
impl<'a> Freeze for BpfSkeletonBuilder<'a>
impl<'a> RefUnwindSafe for BpfSkeletonBuilder<'a>
impl<'a> Send for BpfSkeletonBuilder<'a>
impl<'a> Sync for BpfSkeletonBuilder<'a>
impl<'a> Unpin for BpfSkeletonBuilder<'a>
impl<'a> UnwindSafe for BpfSkeletonBuilder<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more