aya: add missing load() in kprobe example

Fixes #17
pull/18/head
Alessandro Decina 3 years ago
parent d8d311738c
commit bb15e82c1d

@ -28,6 +28,7 @@ use crate::{
/// use std::convert::TryInto;
///
/// let program: &mut KProbe = bpf.program_mut("intercept_wakeups")?.try_into()?;
/// program.load()?;
/// program.attach("try_to_wake_up", 0, None)?;
/// # Ok::<(), aya::BpfError>(())
/// ```

Loading…
Cancel
Save