lkml.org 
[lkml]   [2019]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [BUGFIX PATCH v3 4/4] selftests/ftrace: Fix multiple kprobe testcase
On Mon, 25 Nov 2019 15:57:27 +0900
Masami Hiramatsu <mhiramat@kernel.org> wrote:

> Fix multiple kprobe event testcase to work it correctly.
> There are 2 bugfixes.
> - Since `wc -l FILE` returns not only line number but also
> FILE filename, following "if" statement always failed.
> Fix this bug by replacing it with 'cat FILE | wc -l'
> - Since "while do-done loop" block with pipeline becomes a
> subshell, $N local variable is not update outside of
> the loop.
> Fix this bug by using actual target number (256) instead
> of $N.
>
> Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>

Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>

-- Steve

\
 
 \ /
  Last update: 2019-11-25 15:49    [W:0.104 / U:1.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site