From: Fengguang Wu <fengguang.wu@intel.com>
To: Steven Rostedt <srostedt@redhat.com>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>,
LKML <linux-kernel@vger.kernel.org>,
Steven Rostedt <rostedt@goodmis.org>, Avi Kivity <avi@redhat.com>,
"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: Testing tracer wakeup_rt: .. no entries found ..FAILED!
Date: Tue, 31 Jul 2012 20:17:59 +0800 [thread overview]
Message-ID: <20120731121759.GA17822@localhost> (raw)
In-Reply-To: <1343663105.3847.7.camel@fedora>
[CC kvm developers]
On Mon, Jul 30, 2012 at 11:45:05AM -0400, Steven Rostedt wrote:
> On Tue, 2012-07-24 at 17:07 +0800, Fengguang Wu wrote:
> > On Tue, Jul 24, 2012 at 05:03:30PM +0800, Fengguang Wu wrote:
>
> > And this warning shows up in one of the dozens of boots, for the same
> > kconfig.
> >
> > [ 2.320434] Testing tracer wakeup: PASSED
> > [ 2.840288] Testing tracer wakeup_rt: .. no entries found ..FAILED!
> > [ 3.280861] ------------[ cut here ]------------
> > [ 3.281967] WARNING: at /c/kernel-tests/src/linux/kernel/trace/trace.c:834 register_tracer+0x1b0/0x270()
> > [ 3.284162] Hardware name: Bochs
> > [ 3.284933] Modules linked in:
> > [ 3.285695] Pid: 1, comm: swapper/0 Not tainted 3.5.0+ #1371
> > [ 3.287032] Call Trace:
> > [ 3.287626] [<41035c32>] warn_slowpath_common+0x72/0xa0
> > [ 3.288938] [<410e7dd0>] ? register_tracer+0x1b0/0x270
> > [ 3.290280] [<410e7dd0>] ? register_tracer+0x1b0/0x270
> > [ 3.291516] [<41035c82>] warn_slowpath_null+0x22/0x30
> > [ 3.292723] [<410e7dd0>] register_tracer+0x1b0/0x270
> > [ 3.293921] [<41434c7a>] ? init_irqsoff_tracer+0x11/0x11
> > [ 3.295269] [<41434c95>] init_wakeup_tracer+0x1b/0x1d
> > [ 3.296464] [<41001112>] do_one_initcall+0x112/0x160
> > [ 3.297639] [<4141fadd>] kernel_init+0xf7/0x18e
> > [ 3.298724] [<4141f455>] ? do_early_param+0x7a/0x7a
> > [ 3.299879] [<4141f9e6>] ? start_kernel+0x375/0x375
> > [ 3.301093] [<412b15c2>] kernel_thread_helper+0x6/0x10
> > [ 3.302352] ---[ end trace 57f7151f6a5def05 ]---
> >
>
> The comment above this test shows:
>
> * Yes this is slightly racy. It is possible that for some
> * strange reason that the RT thread we created, did not
> * call schedule for 100ms after doing the completion,
> * and we do a wakeup on a task that already is awake.
> * But that is extremely unlikely, and the worst thing that
> * happens in such a case, is that we disable tracing.
> * Honestly, if this race does happen something is horrible
> * wrong with the system.
>
> I guess the question now is, why didn't the RT test wake up?
>
> Oh wait! You did this on a virt machine. This test isn't designed for
> virt machines because the thread could have woken on another vcpu, but
> due to scheduling of the host system, it didn't get to run for 100ms,
> thus the test will fail because it never recorded the wakeup of the RT
> task.
>
> In other-words, the test is bogus on virt boxes :-/
It's good to quickly get to the root cause :) Can we possibly detect
whether we are in a virtual machine and hence skip this particular
test case?
Thanks,
Fengguang
next parent reply other threads:[~2012-07-31 12:17 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20120724090330.GA9830@localhost>
[not found] ` <20120724090720.GA10434@localhost>
[not found] ` <1343663105.3847.7.camel@fedora>
2012-07-31 12:17 ` Fengguang Wu [this message]
2012-07-31 12:37 ` Testing tracer wakeup_rt: .. no entries found ..FAILED! Avi Kivity
2012-07-31 12:43 ` Steven Rostedt
2012-07-31 12:50 ` Avi Kivity
2012-07-31 13:13 ` Steven Rostedt
2012-07-31 23:43 ` Fengguang Wu
2012-07-31 23:51 ` Steven Rostedt
2012-07-31 23:57 ` Paul E. McKenney
2012-08-01 0:09 ` Steven Rostedt
2012-08-01 0:18 ` Paul E. McKenney
2012-08-01 0:43 ` pci_get_subsys: GFP_KERNEL allocations with IRQs disabled Fengguang Wu
2012-08-22 2:50 ` Fengguang Wu
2012-08-22 7:49 ` Feng Tang
2012-08-22 13:02 ` Fengguang Wu
2012-08-22 18:02 ` Bjorn Helgaas
2012-08-23 5:45 ` Feng Tang
2012-08-23 7:45 ` [PATCH 1/2] PCI: Use local parameter pci_device_id for pci_get_subsys/class() Feng Tang
2012-09-08 1:00 ` Yinghai Lu
2012-09-08 1:32 ` Yinghai Lu
2012-09-08 1:59 ` Greg Kroah-Hartman
2012-09-08 13:42 ` Fengguang Wu
2012-09-08 15:30 ` Yinghai Lu
2012-09-08 15:34 ` Feng Tang
2012-09-08 18:40 ` Yinghai Lu
2012-09-08 21:06 ` Bjorn Helgaas
2012-08-23 7:45 ` [PATCH 2/2] PCI: Remove the obsolete no_pci_devices() check Feng Tang
2012-07-31 23:57 ` Testing tracer wakeup_rt: .. no entries found ..FAILED! Fengguang Wu
2012-08-07 13:29 ` Steven Rostedt
2012-08-07 13:32 ` Fengguang Wu
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=20120731121759.GA17822@localhost \
--to=fengguang.wu@intel.com \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paulmck@linux.vnet.ibm.com \
--cc=rostedt@goodmis.org \
--cc=srostedt@redhat.com \
/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;
as well as URLs for NNTP newsgroup(s).