Skip to content

Commit

Permalink
Add special values to process LPM tree
Browse files Browse the repository at this point in the history
To aid debugging

Test Plan
=========
CI
  • Loading branch information
javierhonduco committed Feb 16, 2025
1 parent cbc0139 commit db5ab6e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/profiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,17 @@ impl Profiler {
let key = exec_mappings_key::new(
pid as u32, 0x0, 32, // pid bits
);
Self::add_bpf_mapping(bpf, &key, &mapping_t::default())?;
Self::add_bpf_mapping(
bpf,
&key,
&mapping_t {
// Special values to know if it's a process entry in case of failures
// while finding a mapping.
begin: 0xb40c,
end: 0xb40c,
..mapping_t::default()
},
)?;
Ok(())
}

Expand Down

0 comments on commit db5ab6e

Please sign in to comment.