tracing/kprobes: 'nmissed' not showed correctly for kretprobe
authorXiangyang Zhang <xyz.sun.ok@gmail.com>
Fri, 7 Jan 2022 15:02:42 +0000 (23:02 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 13 Jan 2022 22:02:42 +0000 (17:02 -0500)
commitdfea08a2116fe327f79d8f4d4b2cf6e0c88be11f
treeff4ebaced8d0afed249603f665028b4f9b92f141
parent77360f9bbc7e5e2ab7a2c8b4c0244fbbfcfc6f62
tracing/kprobes: 'nmissed' not showed correctly for kretprobe

The 'nmissed' column of the 'kprobe_profile' file for kretprobe is
not showed correctly, kretprobe can be skipped by two reasons,
shortage of kretprobe_instance which is counted by tk->rp.nmissed,
and kprobe itself is missed by some reason, so to show the sum.

Link: https://lkml.kernel.org/r/20220107150242.5019-1-xyz.sun.ok@gmail.com
Cc: stable@vger.kernel.org
Fixes: 4a846b443b4e ("tracing/kprobes: Cleanup kprobe tracer code")
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Xiangyang Zhang <xyz.sun.ok@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_kprobe.c