Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding kfunc return trampoline probe if available instead of kprobe/kretprobe probes. The return trampoline has access to function entry arguments, so we are good with just single eBPF program. The kfunc trampolines are also faster - less intrusive. Below are stats for compiling linux kernel while running opensnoop.py on the background for kprobes and kfuncs. Without opensnoop.py: Performance counter stats for 'system wide': 849,741,782,765 cycles:k 162.235646336 seconds time elapsed With opensnoop.py using kprobes: Performance counter stats for 'system wide': 941,615,199,769 cycles:k 164.355032879 seconds time elapsed With opensnoop.py using trampolines: Performance counter stats for 'system wide': 913,437,005,488 cycles:k 163.742914795 seconds time elapsed Signed-off-by: Jiri Olsa <jolsa@kernel.org>
- Loading branch information