public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* Re: [PATCH] tracing/ftrace: add missing wake-up on some callsites
       [not found]               ` <alpine.DEB.2.00.0902231303000.18221@gandalf.stny.rr.com>
@ 2009-02-27 22:04                 ` Masami Hiramatsu
  0 siblings, 0 replies; only message in thread
From: Masami Hiramatsu @ 2009-02-27 22:04 UTC (permalink / raw)
  To: Steven Rostedt
  Cc: Ingo Molnar, Peter Zijlstra, Frederic Weisbecker, LKML,
	Arnaldo Carvalho de Melo, systemtap-ml

Steven Rostedt wrote:
> On Mon, 23 Feb 2009, Ingo Molnar wrote:
> 
>> * Steven Rostedt <rostedt@goodmis.org> wrote:
>>
>>>> Which would send a delayed work to wake up?
>>> No, I was thinking that trace_delay_wake_up() would be called 
>>> by these dangerous call sites. Then a per_cpu flag could be 
>>> set. We could have a trace point in the scheduler code that is 
>>> outside holding a runqueue lock, and this trace point would 
>>> call a trace function that will clear the per cpu flag, and 
>>> then call trace_wake_up().
>> No, that's very roundabout and ugly. If we putting a tracepoint 
>> there we might as well put real scheduler code there that looks 
>> for such a flag. But i'm not convinced we need a flag ...
> 
> Just a suggestion. I was trying to keep the tracer from being an overhead. 
> But what else would you suggest? Just having the scheduler call 
> trace_wakeup?

Actually, Systemtap(LTTng too?) also has same problem. Currently,
we're using a periodical timer to wake the reader process up.
I assume if we can put a tracepoint at the beginning of schedule(),
we can share it.

Thank you,


> 
> -- Steve
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

-- 
Masami Hiramatsu

Software Engineer
Hitachi Computer Products (America) Inc.
Software Solutions Division

e-mail: mhiramat@redhat.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-27 17:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <49a1cc8f.2283420a.54d2.ffff8461@mx.google.com>
     [not found] ` <alpine.DEB.2.00.0902231034570.18221@gandalf.stny.rr.com>
     [not found]   ` <alpine.DEB.2.00.0902231039290.18221@gandalf.stny.rr.com>
     [not found]     ` <20090223162630.GG5961@nowhere>
     [not found]       ` <alpine.DEB.2.00.0902231151020.18221@gandalf.stny.rr.com>
     [not found]         ` <20090223170528.GH5961@nowhere>
     [not found]           ` <alpine.DEB.2.00.0902231211230.18221@gandalf.stny.rr.com>
     [not found]             ` <20090223173714.GA601@elte.hu>
     [not found]               ` <alpine.DEB.2.00.0902231303000.18221@gandalf.stny.rr.com>
2009-02-27 22:04                 ` [PATCH] tracing/ftrace: add missing wake-up on some callsites Masami Hiramatsu

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 read-only IMAP folder(s) and NNTP newsgroup(s).