[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0b747522-1398-5a68-0fb2-763db6aab5b8@linuxfoundation.org>
Date: Tue, 18 Oct 2022 16:41:20 -0600
From: Shuah Khan <skhan@...uxfoundation.org>
To: "Naveen N. Rao" <naveen.n.rao@...ux.vnet.ibm.com>,
Steven Rostedt <rostedt@...dmis.org>,
Shuah Khan <shuah@...nel.org>
Cc: linux-kernel@...r.kernel.org,
Masami Hiramatsu <mhiramat@...nel.org>,
Akanksha J N <akanksha@...ux.vnet.ibm.com>,
Shuah Khan <skhan@...uxfoundation.org>
Subject: Re: [PATCH] selftests/ftrace: Limit number of lines processed in
'trace'
On 10/17/22 04:55, Naveen N. Rao wrote:
> On very large machines, ftracetest can seem to hang or otherwise take a
> very long time to complete individual tests. This can be attributed to
> statements that try to process the entire contents of 'trace'.
>
> Limit the number of lines processed from 'trace' to resolve this. Apart
> from the change in test.d/functions to add TRACENL, this commit is the
> result of running the below command (and fixing some whitespace errors):
> grep -l -R 'cat trace |' -- ./tools/testing/selftests/ftrace/test.d/ | \
> xargs -n 1 sed --in-place -e "s/cat trace |/head -\$\{TRACENL\} trace |/g"
>
> Reported-by: Akanksha J N <akanksha@...ux.vnet.ibm.com>
> Signed-off-by: Naveen N. Rao <naveen.n.rao@...ux.vnet.ibm.com>
Please cc linux-kselftest list on all selftest patches.
thanks,
-- Shuah
Powered by blists - more mailing lists