[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180528013258.59715b8111d3e59319006cd2@kernel.org>
Date: Mon, 28 May 2018 01:32:58 +0900
From: Masami Hiramatsu <mhiramat@...nel.org>
To: Steven Rostedt <rostedt@...dmis.org>
Cc: linux-kernel@...r.kernel.org, Ingo Molnar <mingo@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Thomas Gleixner <tglx@...utronix.de>,
Tom Zanussi <tom.zanussi@...ux.intel.com>,
Clark Williams <williams@...hat.com>,
Karim Yaghmour <karim.yaghmour@...rsys.com>,
Brendan Gregg <bgregg@...flix.com>,
Joel Fernandes <joel@...lfernandes.org>,
Namhyung Kim <namhyung@...nel.org>,
Yann Ylavic <ylavic.dev@...il.com>,
linux-rt-users@...r.kernel.org, Shuah Khan <shuahkhan@...il.com>
Subject: Re: [PATCH v3 13/14] tracing/selftest: Add selftests to test
trace_marker histogram triggers
Hi Steve,
On Fri, 25 May 2018 17:13:53 -0400
Steven Rostedt <rostedt@...dmis.org> wrote:
> On Fri, 25 May 2018 17:12:29 -0400
> Steven Rostedt <rostedt@...dmis.org> wrote:
>
>
> > #!/bin/sh
>
> Hmm, I think I need to make this #!/bin/bash
>
> > test_trace() {
> > file=$1
> > x=$2
> >
> > cat $file | while read line; do
> > if [ "$line" != "${line/\#/}" ]; then
> > continue
> > fi
> > echo "testing $line for >$x<"
> > if [ "$line" == "${line/>$x</}" ]; then
>
> The ${line/>$x</} is unique to bash I believe.
Hmm, could you try to use only posix-shell based test ?
Since I would like to keep this can run on small
environment, like busybox, etc.
Thank you,
>
> -- Steve
>
> > fail "$line does not have >$x< in it"
> > fi
> > let x=$x+2
> > done
> > }
> >
--
Masami Hiramatsu <mhiramat@...nel.org>
Powered by blists - more mailing lists