[][src]Attribute Macro redbpf_macros::kprobe

#[kprobe]

Attribute macro that must be used to define kprobes.

Example

use redbpf_probes::kprobe::prelude::*;

#[kprobe("__x64_sys_clone")]
fn clone_enter(regs: Registers) {
    // this is executed when clone() is invoked
}