From: Masami Hiramatsu <mhiramat@kernel.org>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Li Zhijian <lizhijian@cn.fujitsu.com>, <mingo@redhat.com>,
<shuah@kernel.org>, <linux-kselftest@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, Philip Li <philip.li@intel.com>,
kernel test robot <lkp@intel.com>,
Masami Hiramatsu <mhiramat@kernel.org>
Subject: Re: [PATCH] kselftests: ftrace: limit the executing time by reading from cached trace
Date: Wed, 20 Oct 2021 11:20:27 +0900 [thread overview]
Message-ID: <20211020112027.b01762f2adcfac99e71dcf99@kernel.org> (raw)
In-Reply-To: <20211018221636.47157e52@gandalf.local.home>
On Mon, 18 Oct 2021 22:16:36 -0400
Steven Rostedt <rostedt@goodmis.org> wrote:
> On Mon, 18 Oct 2021 21:26:16 +0800
> Li Zhijian <lizhijian@cn.fujitsu.com> wrote:
>
> > LKP/0day observed that kselftests/ftrace cannot finish within 1 hour on
> > a 96 cpus platform where it hangs in the line like:
> > 'cat trace | grep -v ^# | awk '{ print $5 }' | sort -u | wc -l'
> > subsystem-enable.tc
> >
> > It seems that trace will keep growing during it's read by 'cat' command.
> > Consequently, trace becomes too large to finish reading.
> >
> > replace 'cat trace' by:
> > $ sed -i 's/cat trace |/read_cached_trace |/g' $(find test.d -name "*.tc")
> >
>
> Instead, what happens if you add this command to each test?
>
> if [ -t options/pause-on-trace ]; then
> echo 1 > options/pause-on-trace
> fi
>
> We also need to add to the "initialize_ftrace" function in test.d/functions.
>
> if [ -t options/pause-on-trace ]; then
> echo 0 > options/pause-on-trace
> fi
Hmm, by the way, shouldn't we set this feature by default?
There are many "cat trace | grep ..." style test code in ftracetest just for
checking whether the event is recorded. At least for the ftracetest, it should
be set unless the testcase is explicitly disable it.
Thank you.
>
> -- Steve
>
> > CC: Philip Li <philip.li@intel.com>
> > Reported-by: kernel test robot <lkp@intel.com>
> > Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
> > ---
--
Masami Hiramatsu <mhiramat@kernel.org>
next prev parent reply other threads:[~2021-10-20 2:20 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-18 13:26 [PATCH] kselftests: ftrace: limit the executing time by reading from cached trace Li Zhijian
2021-10-19 2:16 ` Steven Rostedt
2021-10-20 2:20 ` Masami Hiramatsu [this message]
2021-10-20 2:34 ` Steven Rostedt
2021-10-20 2:55 ` Masami Hiramatsu
2021-10-20 4:10 ` lizhijian
2021-10-20 14:16 ` Steven Rostedt
2021-10-21 0:31 ` Masami Hiramatsu
2021-10-26 2:17 ` Steven Rostedt
2021-10-26 12:13 ` Masami Hiramatsu
2021-10-26 13:15 ` Steven Rostedt
2021-10-26 14:13 ` Masami Hiramatsu
2021-10-26 15:16 ` Steven Rostedt
2021-10-26 23:19 ` Masami Hiramatsu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211020112027.b01762f2adcfac99e71dcf99@kernel.org \
--to=mhiramat@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=lizhijian@cn.fujitsu.com \
--cc=lkp@intel.com \
--cc=mingo@redhat.com \
--cc=philip.li@intel.com \
--cc=rostedt@goodmis.org \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.