Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754183AbZDNTX5 (ORCPT ); Tue, 14 Apr 2009 15:23:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751880AbZDNTXu (ORCPT ); Tue, 14 Apr 2009 15:23:50 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:41479 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751790AbZDNTXu (ORCPT ); Tue, 14 Apr 2009 15:23:50 -0400 Subject: Re: [PATCH 5/8] tracing/events: move the ftrace event tracing code to core From: Peter Zijlstra To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Andrew Morton , Thomas Gleixner , Frederic Weisbecker , Theodore Tso , Arjan van de Ven , Christoph Hellwig , Mathieu Desnoyers , Jeremy Fitzhardinge , Lai Jiangshan , Zhaolei , Li Zefan , KOSAKI Motohiro , Masami Hiramatsu , "Frank Ch. Eigler" , Tom Zanussi , Jiaying Zhang , Michael Rubin , Martin Bligh In-Reply-To: <20090414172641.457760734@goodmis.org> References: <20090414172337.280621613@goodmis.org> <20090414172641.457760734@goodmis.org> Content-Type: text/plain Date: Tue, 14 Apr 2009 21:23:06 +0200 Message-Id: <1239736986.22720.266.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.26.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1262 Lines: 29 On Tue, 2009-04-14 at 13:23 -0400, Steven Rostedt wrote: > + * static struct trace_event ftrace_event_type_ = { > + * .trace = ftrace_raw_output_, <-- stage 2 > + * }; > + * static struct ftrace_event_call __used > + * __attribute__((__aligned__(4))) > + * __attribute__((section("_ftrace_events"))) event_ = { > + * .name = "", > + * .system = "", > + * .raw_init = ftrace_raw_init_event_, > + * .regfunc = ftrace_reg_event_, > + * .unregfunc = ftrace_unreg_event_, > + * .show_format = ftrace_format_, > + * } Is there a good reason these are two different structs? I've always wondered about that, it seems natural to unify them and to generalize the reverse lookup hash that is now private to trace_output. The trace_event_profile code could use that reverse lookup, that linear search it currently does it really lame. -- 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/