]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 7 Mar 2022 15:36:40 +0000 (16:36 +0100)
commit3d29241b2425fc13ff022d937c52e7f96514581d
tree56fecc634b54e65d54d8c14e452dd09160ad57b5
parentc04cd1dcaa89c804fd566d3d06a7ee9891de62c2
tracing/kprobes: 'nmissed' not showed correctly for kretprobe

BugLink: https://bugs.launchpad.net/bugs/1960566
commit dfea08a2116fe327f79d8f4d4b2cf6e0c88be11f upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
kernel/trace/trace_kprobe.c