]> Gentwo Git Trees - linux/.git/commit
tracing: fprobe: optimization for entry only case
authorMenglong Dong <menglong8.dong@gmail.com>
Wed, 15 Oct 2025 08:32:37 +0000 (16:32 +0800)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Tue, 11 Nov 2025 13:32:09 +0000 (22:32 +0900)
commit2c67dc457bc67367dc8fcd8f471ce2d5bb5f7b2b
treeb59ca28fc928398f08b8f1dc84a14e2a976bc3b2
parente667152e0064acf1a308a1816719008e29bec76f
tracing: fprobe: optimization for entry only case

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/20251015083238.2374294-2-dongml2@chinatelecom.cn/
Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
kernel/trace/fprobe.c