tracing/kprobes: 'nmissed' not showed correctly for kretprobe
stable inclusion from stable-v5.10.94 commit c524f4cfb3e59d412dc6b532481bbe4190f9e5a6 bugzilla: https://gitee.com/openeuler/kernel/issues/I531X9 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c524f4cfb3e59d412dc6b532481bbe4190f9e5a6 -------------------------------- commit dfea08a2 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: 4a846b44 ("tracing/kprobes: Cleanup kprobe tracer code") Acked-by: NMasami Hiramatsu <mhiramat@kernel.org> Signed-off-by: NXiangyang Zhang <xyz.sun.ok@gmail.com> Signed-off-by: NSteven Rostedt <rostedt@goodmis.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
Showing
想要评论请 注册 或 登录