Re: [PATCH 00/10] ftrace: Add register_ftrace_direct()

From: Miroslav Benes
Date: Thu Nov 14 2019 - 10:42:30 EST


On Thu, 14 Nov 2019, Steven Rostedt wrote:

> On Thu, 14 Nov 2019 10:05:42 +0100 (CET)
> Miroslav Benes <mbenes@xxxxxxx> wrote:
>
> > On Wed, 13 Nov 2019, Steven Rostedt wrote:
> >
> > > On Wed, 13 Nov 2019 16:10:36 +0100 (CET)
> > > Miroslav Benes <mbenes@xxxxxxx> wrote:
> > >
> > > > So I tried to run the selftests and ran into the same timeout issue we had
> > > > with live patching :/
> > > >
> > > > See http://lkml.kernel.org/r/20191025115041.23186-1-mbenes@xxxxxxx for a possible solution.
> > >
> > > Is this when you run the all the selftests?
> >
> > Yes, when I run all ftrace selftests (make run_tests in
> > tools/testing/selftests/ftrace/).
>
> Thanks, I added this:
>
> From 6105e34804bc3a9a35e8c10fcd9e10b8b5a22f8e Mon Sep 17 00:00:00 2001
> From: "Steven Rostedt (VMware)" <rostedt@xxxxxxxxxxx>
> Date: Wed, 13 Nov 2019 11:48:39 -0500
> Subject: [PATCH] tracing/selftests: Turn off timeout setting
>
> As the ftrace selftests can run for a long period of time, disable the
> timeout that the general selftests have. If a selftest hangs, then it
> probably means the machine will hang too.
>
> Link: https://lore.kernel.org/r/alpine.LSU.2.21.1911131604170.18679@xxxxxxxxxxxxx
>
> Suggested-by: Miroslav Benes <mbenes@xxxxxxx>
> Signed-off-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>

Tested-by: Miroslav Benes <mbenes@xxxxxxx>
Reviewed-by: Miroslav Benes <mbenes@xxxxxxx>

...whichever you prefer

M

> ---
> tools/testing/selftests/ftrace/settings | 1 +
> 1 file changed, 1 insertion(+)
> create mode 100644 tools/testing/selftests/ftrace/settings
>
> diff --git a/tools/testing/selftests/ftrace/settings b/tools/testing/selftests/ftrace/settings
> new file mode 100644
> index 000000000000..e7b9417537fb
> --- /dev/null
> +++ b/tools/testing/selftests/ftrace/settings
> @@ -0,0 +1 @@
> +timeout=0
> --
> 2.20.1
>
>
> -- Steve
>