lkml.org 
[lkml]   [2009]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] tracing/ftrace: add missing wake-up on some callsites

On Mon, 23 Feb 2009, Frederic Weisbecker wrote:

> On Mon, Feb 23, 2009 at 11:51:30AM -0500, Steven Rostedt wrote:
> >
> > On Mon, 23 Feb 2009, Frederic Weisbecker wrote:
> > > >
> > > > Perhaps we could add these callsites back, but we would need to update
> > > > trace_wake_up.
> > > >
> > > > Have trace_wake_up set a flag instead, and add a tracepoint around the
> > > > scheduler (outside the grabbing of runqueue locks), that will have a
> > > > callback to the tracing code. That call back can perform the wakeups.
> > > >
> > > > How does that sound?
> > >
> > >
> > > That sounds good but only for these particular tracers I guess.
> >
> > OK, what about making a trace_delay_wake_up()?
>
>
> 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().


-- Steve



\
 
 \ /
  Last update: 2009-02-23 18:17    [W:0.178 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site