[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210819095709.392463ed@oasis.local.home>
Date: Thu, 19 Aug 2021 09:57:09 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: linux-kernel@...r.kernel.org, linux-trace-devel@...r.kernel.org
Cc: Ingo Molnar <mingo@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Masami Hiramatsu <mhiramat@...nel.org>,
"Tzvetomir Stoyanov" <tz.stoyanov@...il.com>,
Tom Zanussi <zanussi@...nel.org>
Subject: Re: [PATCH v7 09/10] selftests/ftrace: Add clear_dynamic_events()
to test cases
On Thu, 19 Aug 2021 00:13:30 -0400
Steven Rostedt <rostedt@...dmis.org> wrote:
> +clear_dynamic_events() { # reset all current dynamic events
> + again=1
> + stop=1
> + # loop mulitple times as some events require other to be removed first
> + while [ $again -eq 1 ]; do
> + stop=$((stop+1))
> + # Prevent infinite loops
> + if [ $stop -gt 10 ]; then
> + break;
> + fi
> + again=2
> + grep -v '^#' dynamic_events|
> + while read line; do
> + del=`sed -e 's/^.\([^ ]*\).*/-\1/'`
That should be "del=`echo $line | sed -e 's/^.\([^ ]*\).*/-\1/'`
Will fix in v8.
-- Steve
> + if ! echo "$del" >> dynamic_events; then
> + again=1
> + fi
> + done
> + done
> +}
Powered by blists - more mailing lists