mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: "Steven Rostedt" <rostedt@goodmis.org>,
	"Frédéric Weisbecker" <fweisbec@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
	LKML <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: trace: fix task state printout
Date: Thu, 18 Dec 2008 13:01:40 +0100	[thread overview]
Message-ID: <20081218120140.GC21123@elte.hu> (raw)
In-Reply-To: <alpine.DEB.1.10.0812171727160.4839@gandalf.stny.rr.com>


* Steven Rostedt <rostedt@goodmis.org> wrote:

> 
> On Wed, 17 Dec 2008, Thomas Gleixner wrote:
> 
> > Impact: tracer task state decoding is wrong, size check is buggy
> 
> The Imact line seems more of a subject line. The real Impact line should 
> be something like:
> 
> Impact: fix wrong decoding of task state int tracer
> 
> Keyword is 'fix'
> 
> > 
> > The tracing code has interesting varieties of printing out task state. 
> > Unfortunalely only one of the instances is correct as it copies the 
> > code from sched.c:sched_show_task(). The others are plain wrong as 
> > they treatthe bitfield as an integer offset into the character array. 
> > Also the size check of the character array is wrong as it includes the 
> > trailing \0.
> > 
> > Use a common state decoder inline which does the Right Thing.
> > 
> > Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
> 
> Acked-by: Steven Rostedt <srostedt@redhat.com>
> 
> Ingo, this is a low risk fix that probably should be pushed towards 
> Linus for inclusion into 2.6.28.

ok, we can do that after a few days of testing.

Btw., note that when capturing traces via trace_pipe, i still see frequent 
mistakes of PIDs being matched up to the wrong 'comm' string

 loop-1sec-2895 ...
      Xorg-2895 ...

the Xorg-2895 is bogus. I have been seeing these for a long time and 
thought we fixed it, but i noticed them yesterday once more, while i was 
tracing some code. Any ideas about what's wrong there?

	Ingo

      reply	other threads:[~2008-12-18 12:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-17 21:34 Thomas Gleixner
2008-12-17 22:29 ` Steven Rostedt
2008-12-18 12:01   ` Ingo Molnar [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=20081218120140.GC21123@elte.hu \
    --to=mingo@elte.hu \
    --cc=akpm@linux-foundation.org \
    --cc=fweisbec@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.de \
    /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

all inboxes | Powered by JetHome®