Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756899Ab1DZPEz (ORCPT ); Tue, 26 Apr 2011 11:04:55 -0400 Received: from metis.ext.pengutronix.de ([92.198.50.35]:47298 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756790Ab1DZPEy (ORCPT ); Tue, 26 Apr 2011 11:04:54 -0400 Date: Tue, 26 Apr 2011 17:04:51 +0200 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Grant Likely Cc: Steven Rostedt , linux-kernel@vger.kernel.org, David Brownell Subject: Re: [PATCH] gpio: add trace events for setting direction and value Message-ID: <20110426150451.GX31131@pengutronix.de> References: <1297875784-2302-1-git-send-email-u.kleine-koenig@pengutronix.de> <1297876371.26768.7235.camel@fedora> <20110218095803.GY22310@pengutronix.de> <1298044086.26768.7242.camel@fedora> <20110302220305.GB22854@angua.secretlab.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20110302220305.GB22854@angua.secretlab.ca> User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: 2001:6f8:1178:2:215:17ff:fe12:23b0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1878 Lines: 49 Hi Grant, On Wed, Mar 02, 2011 at 03:03:05PM -0700, Grant Likely wrote: > On Fri, Feb 18, 2011 at 10:48:06AM -0500, Steven Rostedt wrote: > > On Fri, 2011-02-18 at 10:58 +0100, Uwe Kleine-K?nig wrote: > > > Hi Steven, hi Grant, > > > > > > On Wed, Feb 16, 2011 at 12:12:51PM -0500, Steven Rostedt wrote: > > > > Note: to save the memory footprint of these tracepoints, you can use > > > > DEFINE_EVENT_PRINT(). You can see the usage for this in the > > > > include/trace/events/kmem.h. > > > > But to do this, you will need to have a single TP_STRUCT__entry() for > > > > both. Not sure if this is what you want. > > > > > > > > TP_STRUCT__entry( > > > > __field(unsigned, gpiq) > > > > __field(int, get_in) > > > > __field(int, value_err) > > > > > > > > ?? > > > > > > > > Just a suggestion, but may not be worth it. > > > Yeah, I saw that, still I think it's sane to keep them seperated. > > > Or how much would we save? Can you estimate that? > > > > You can do it :) Especially since it can vary by archs. > > > > Just compile the kernel once this way, and then try it with > > DEFINE_EVENT_PRINT(), compile the kernel and run size on the two. > > > > Then you can see the difference it makes. It may end up not being worth > > the difference. But as embedded uses gpio the most, I'll leave that up > > to you. > > Uwe, any update on this? Are you going to spin a new patch, or should > I take this one? I think it's OK to take as is. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ | -- 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/