Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ebpf): optimize filldir64 program
The filldir64 program runs very frequently, and as such incurs great overhead. However, its usecase only requires the submission of events from non 0 process inodes. Since this filter is faster than scope evaluation, move this condition check before program data initialization and scope evaluation. Optimization reduces the average runtime to ~18% of the previous overhead. Note, that even for more run amounts, the overall runtime is now 27% from the previous version. Before: PROGRAM: filldir64 (type: kprobe, runtime: 61047110 ns, amount: 53135 times, average: 1148 ns) After: PROGRAM: filldir64 (type: kprobe, runtime: 16507056 ns, amount: 80350 times, average: 205 ns)
- Loading branch information