public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: Chris Wilson <chris@chris-wilson.co.uk>,
	Thomas Wood <thomas.wood@intel.com>,
	Daniel Vetter <daniel@ffwll.ch>,
	Intel Graphics Development <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH] igt_core: Inject subtest message into dmesg
Date: Thu, 24 Jul 2014 16:02:19 +0200	[thread overview]
Message-ID: <20140724140219.GD4747@phenom.ffwll.local> (raw)
In-Reply-To: <20140724135808.GJ29372@nuc-i3427.alporthouse.com>

On Thu, Jul 24, 2014 at 02:58:08PM +0100, Chris Wilson wrote:
> On Thu, Jul 24, 2014 at 02:03:01PM +0100, Thomas Wood wrote:
> > On 24 July 2014 13:36, Daniel Vetter <daniel@ffwll.ch> wrote:
> > > On Thu, Jul 24, 2014 at 12:48:33PM +0100, Chris Wilson wrote:
> > >> One of the side-effects we test for are kernel oops and knowing the
> > >> guilty subtest can help speed up debugging. We can write to /dev/kmsg to
> > >> inject messages into dmesg, so let's do so before the start of every
> > >> test.
> > >>
> > >> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> > >
> > > Should we change proc->comm too? Would help with the oops printing ... Ack
> > > on the patch itself.
> > 
> > It should also make sure that the log level is appropriate so that the
> > Piglit dmesg capture isn't triggered accidentally.
> 
> I found out how to set the log-level, so choose KERN_INFO which should be
> sufficient.
>  
> > Would it be useful to include this in simple tests (tests without
> > subtests) as well?
> 
> Definitely. Is there a way to do that automatically or do we need to
> adjust the tests themselves? I was thinkg we could add a kmsg() to
> common_init() to capture those.

common_init kmsg'ing the test binary should be good. That should help in
lining up any test setup work that's done before the first test starts,
too. So useful even with subtests.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch

      reply	other threads:[~2014-07-24 14:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-24 11:48 [PATCH] igt_core: Inject subtest message into dmesg Chris Wilson
2014-07-24 12:36 ` Daniel Vetter
2014-07-24 13:03   ` Thomas Wood
2014-07-24 13:58     ` Chris Wilson
2014-07-24 14:02       ` Daniel Vetter [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=20140724140219.GD4747@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --cc=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=thomas.wood@intel.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