Skip to content

Commit

Permalink
fixup! Introduce BPF program info cache
Browse files Browse the repository at this point in the history
  • Loading branch information
d-e-s-o committed Oct 18, 2024
1 parent 388f207 commit e59224b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/kernel/bpf/prog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,9 @@ mod tests {
fn bpf_info_cache_lookup() {
let mut obj = test_object("getpid.bpf.o");
let prog = prog_mut(&mut obj, "handle__getpid");
let _link = prog
.attach_tracepoint("syscalls", "sys_enter_getpid")
.expect("failed to attach prog");

// Retrieve the program's BPF tag out-of-band so that we know
// what to look up.
Expand Down

0 comments on commit e59224b

Please sign in to comment.