]> git.baikalelectronics.ru Git - kernel.git/commit
fprobe, samples: Add use_trace option and show hit/missed counter
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Tue, 7 Jun 2022 16:11:02 +0000 (01:11 +0900)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 17 Jun 2022 19:53:29 +0000 (21:53 +0200)
commite5d909a72c0ba5e40f8b4a43a51c9452970b2ff3
tree16478006cd70126e752c8f7b1fea4dde4da07049
parenta4c66d41f0e39353051d183ff3cba22af5bbe04d
fprobe, samples: Add use_trace option and show hit/missed counter

Add use_trace option to use trace_printk() instead of pr_info()
so that the handler doesn't involve the RCU operations.
And show the hit and missed counter so that the user can check
how many times the probe handler hit and missed.

Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/bpf/165461826247.280167.11939123218334322352.stgit@devnote2
samples/fprobe/fprobe_example.c