public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Tom Zanussi <tzanussi@gmail.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
	"Ingo Molnar" <mingo@elte.hu>,
	"Frédéric Weisbecker" <fweisbec@gmail.com>
Subject: Re: [RFC][PATCH 2/4] tracing: add rb_event_discard() hack
Date: Wed, 18 Mar 2009 01:12:05 -0500	[thread overview]
Message-ID: <1237356725.7922.16.camel@charm-linux> (raw)
In-Reply-To: <alpine.DEB.2.00.0903172108160.10610@gandalf.stny.rr.com>


On Tue, 2009-03-17 at 21:21 -0400, Steven Rostedt wrote:
> On Tue, 17 Mar 2009, Tom Zanussi wrote:

> >  
> >  	rb_update_read_stamp(cpu_buffer, event);
> > @@ -2026,8 +2051,8 @@ rb_buffer_peek(struct ring_buffer *buffer, int cpu, u64 *ts)
> >  	 * can have.  Nesting 10 deep of interrupts is clearly
> >  	 * an anomaly.
> >  	 */
> > -	if (RB_WARN_ON(cpu_buffer, ++nr_loops > 10))
> > -		return NULL;
> > +//	if (RB_WARN_ON(cpu_buffer, ++nr_loops > 10))
> > +//		return NULL;
> 
> Were you hitting this? If so, we need to investigate.
> 

I was hitting this, but only because my code would always loop around to
'again' for a discarded event.  So, 10 discarded events in a row would
trigger it.

I noticed that your fix returns instead, so it's no longer a problem.

Thanks,

Tom




      parent reply	other threads:[~2009-03-18  6:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-17  6:23 [RFC][PATCH 2/4] tracing: add rb_event_discard() hack Tom Zanussi
2009-03-18  1:21 ` Steven Rostedt
2009-03-18  2:21   ` Steven Rostedt
2009-03-18  6:01     ` Tom Zanussi
2009-03-18  6:12   ` Tom Zanussi [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=1237356725.7922.16.camel@charm-linux \
    --to=tzanussi@gmail.com \
    --cc=fweisbec@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --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