Re: [PATCH 7/7] tracing: add hierarchical enabling of events

From: Steven Rostedt
Date: Thu May 07 2009 - 21:24:26 EST



On Thu, 7 May 2009, Steven Rostedt wrote:
>
> >
> > >>> + ret = ftrace_set_clr_event(command, val);
> > >> I think we should pass "sched:" or "sched:*", instead of "sched",
> > >> the comment in ftrace_set_clr_event():
> > >>
> > >> * <name> (no ':') means all events in a subsystem with
> > >> * the name <name> or any event that matches <name>
> > >
> > > Yeah, I thought about it too. But writing the patch in 15 minutes, I
> > > decided that a "kstrdup" was easier than adding a ":" ;-)
> > >
> >
> > I think we can just avoid any kstrdup() or kmalloc(). I'll send a patch.
>
> Hmm, careful. The ftrace_set_clr_event will modify the string passed in.

Also note, I already updated it to use ":*". You should have received a
notice from "tip-bot".

-- Steve

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