lkml.org 
[lkml]   [2022]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] tracing/kprobes: 'nmissed' not showed correctly for kretprobe
On Thu, 6 Jan 2022 07:32:03 +0900
Masami Hiramatsu <mhiramat@kernel.org> wrote:

> OK, this is a good catch :), but there are 2 issues.
>
> 1. kretprobe can be skipped by 2 reasons, shortage of kretprobe_instance which
> is counted by rp.nmissed, and kprobe itself is missed by some reason (this
> can be happen if KPROBE_EVENTS_ON_NOTRACE=n. Thus, better solution is to show
> 'tk->rp.nmissed + tk->rp.kp.nmissed'.
>
> 2. the commit c31ffb3ff633 is not actual commit which introduce this issue.
> this was introduced by 4a846b443b4e ("tracing/kprobes: Cleanup kprobe tracer code.")
>
> 'git blame' tells you the commit which changes that line, but that can be just
> a refactoring (renaming). I recommend you to search the correct one by 'git log -p'.

Masami, thanks for the review.

Xiangyang, can you please send a v2 with Masami's suggestions?

-- Steve

\
 
 \ /
  Last update: 2022-01-06 00:11    [W:1.348 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site