[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.0905072123360.28378@gandalf.stny.rr.com>
Date: Thu, 7 May 2009 21:24:11 -0400 (EDT)
From: Steven Rostedt <rostedt@...dmis.org>
To: Li Zefan <lizf@...fujitsu.com>
cc: linux-kernel@...r.kernel.org, Ingo Molnar <mingo@...e.hu>,
Andrew Morton <akpm@...ux-foundation.org>,
Frederic Weisbecker <fweisbec@...il.com>,
Christoph Hellwig <hch@....de>
Subject: Re: [PATCH 7/7] tracing: add hierarchical enabling of events
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists