(&mut self, libs: &[AllocatorLib])
| 36 | } |
| 37 | |
| 38 | pub fn attach_allocators(&mut self, libs: &[AllocatorLib]) -> Result<()> { |
| 39 | for allocator in libs { |
| 40 | self.bpf |
| 41 | .attach_allocator_probes(allocator.kind, &allocator.path)?; |
| 42 | } |
| 43 | |
| 44 | Ok(()) |
| 45 | } |
| 46 | |
| 47 | pub fn attach_allocator(&mut self, lib: &AllocatorLib) -> Result<()> { |
| 48 | self.bpf.attach_allocator_probes(lib.kind, &lib.path) |