mirror of
https://github.com/torvalds/linux.git
synced 2026-12-04 04:14:24 +00:00
For now, fgraph is used for the fprobe, even if we need trace the entry only. However, the performance of ftrace is better than fgraph, and we can use ftrace_ops for this case. Then performance of kprobe-multi increases from 54M to 69M. Before this commit: $ ./benchs/run_bench_trigger.sh kprobe-multi kprobe-multi : 54.663 ± 0.493M/s After this commit: $ ./benchs/run_bench_trigger.sh kprobe-multi kprobe-multi : 69.447 ± 0.143M/s Mitigation is disable during the bench testing above. Link: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Menglong Dong <[email protected]> Signed-off-by: Masami Hiramatsu (Google) <[email protected]>