From: Peter Zijlstra <peterz@infradead.org>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: linux-kernel@vger.kernel.org, Ingo Molnar <mingo@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [for-next][PATCH 2/2] tracing: Clean up scheduling in trace_wakeup_test_thread()
Date: Thu, 9 Oct 2014 11:39:21 +0200 [thread overview]
Message-ID: <20141009093921.GT10832@worktop.programming.kicks-ass.net> (raw)
In-Reply-To: <20141009011057.316310917@goodmis.org>
On Wed, Oct 08, 2014 at 09:10:12PM -0400, Steven Rostedt wrote:
> From: Steven Rostedt <rostedt@goodmis.org>
>
> Peter's new debugging tool triggers when tasks exit with !TASK_RUNNING.
> The code in trace_wakeup_test_thread() also has a single schedule() call
> that should be encompassed by a loop.
>
> This cleans up the code a little to make it a bit more robust and
> also makes the return exit properly with TASK_RUNNING.
>
> Link: http://lkml.kernel.org/p/20141008135216.76142204@gandalf.local.home
>
> Reported-by: Peter Zijlstra <peterz@infradead.org>
> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Acked-by: Peter Zijlstra <peterz@infreadead.org>
> ---
> kernel/trace/trace_selftest.c | 47 +++++++++++++++++++++++++++----------------
> 1 file changed, 30 insertions(+), 17 deletions(-)
>
> diff --git a/kernel/trace/trace_selftest.c b/kernel/trace/trace_selftest.c
> index 5ef60499dc8e..593f52b73551 100644
> --- a/kernel/trace/trace_selftest.c
> +++ b/kernel/trace/trace_selftest.c
> @@ -1025,6 +1025,12 @@ trace_selftest_startup_nop(struct tracer *trace, struct trace_array *tr)
> #endif
>
> #ifdef CONFIG_SCHED_TRACER
> +
> +struct wakeup_test_data {
> + struct completion is_ready;
> + int go;
> +};
Yeah that works..
prev parent reply other threads:[~2014-10-09 9:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-09 1:10 [for-next][PATCH 0/2] tracing: Minor fixes to the start up tests Steven Rostedt
2014-10-09 1:10 ` [for-next][PATCH 1/2] tracing: Robustify wait loop Steven Rostedt
2014-10-09 1:10 ` [for-next][PATCH 2/2] tracing: Clean up scheduling in trace_wakeup_test_thread() Steven Rostedt
2014-10-09 9:39 ` Peter Zijlstra [this message]
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=20141009093921.GT10832@worktop.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=rostedt@goodmis.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome