From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752112AbbGQSgK (ORCPT ); Fri, 17 Jul 2015 14:36:10 -0400 Received: from smtprelay0094.hostedemail.com ([216.40.44.94]:39677 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750863AbbGQSgJ (ORCPT ); Fri, 17 Jul 2015 14:36:09 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:1981:2194:2198:2199:2200:2393:2553:2559:2562:2731:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3870:3871:3872:3874:4321:4605:5007:6261:7514:7875:10004:10400:10848:10967:11026:11232:11473:11658:11914:12043:12296:12438:12517:12519:12555:12740:13069:13255:13311:13357:14096:14097:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: scene04_1851ccf337415 X-Filterd-Recvd-Size: 2532 Date: Fri, 17 Jul 2015 14:36:06 -0400 From: Steven Rostedt To: Tal Shorer Cc: mingo@redhat.com, linux-kernel@vger.kernel.org, Linus Walleij , Alexandre Courbot , linux-gpio@vger.kernel.org Subject: Re: [PATCH v2 2/2] tracing: gpio: add Kconfig option for enabling/disabling trace events Message-ID: <20150717143606.200d97d7@gandalf.local.home> In-Reply-To: <1437068376-24617-3-git-send-email-tal.shorer@gmail.com> References: <20150713143459.09582cb9@gandalf.local.home> <1437068376-24617-1-git-send-email-tal.shorer@gmail.com> <1437068376-24617-3-git-send-email-tal.shorer@gmail.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.28; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 16 Jul 2015 20:39:36 +0300 Tal Shorer wrote: > Add a new options to gpio Kconfig, CONFIG_GPIO_TRACING, that is used > for enabling/disabling compilation of gpio function trace events. > If I can get acks from the gpio maintainers, I can take this in my tree, as it depends on code that modifies the core tracing facility. -- Steve > Signed-off-by: Tal Shorer > --- > drivers/gpio/Kconfig | 7 +++++++ > include/trace/events/gpio.h | 4 ++++ > 2 files changed, 11 insertions(+) > > diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig > index c1e2ca3..2829e8e 100644 > --- a/drivers/gpio/Kconfig > +++ b/drivers/gpio/Kconfig > @@ -88,6 +88,13 @@ config GPIO_SYSFS > config GPIO_GENERIC > tristate > > +config GPIO_TRACING > + bool "gpio tracing" > + depends on TRACING > + help > + Enable tracing for gpio subsystem > + > + > # put drivers in the right section, in alphabetical order > > config GPIO_DA9052 > diff --git a/include/trace/events/gpio.h b/include/trace/events/gpio.h > index 927a8ad..09af636 100644 > --- a/include/trace/events/gpio.h > +++ b/include/trace/events/gpio.h > @@ -1,6 +1,10 @@ > #undef TRACE_SYSTEM > #define TRACE_SYSTEM gpio > > +#ifndef CONFIG_GPIO_TRACING > +#define NOTRACE > +#endif > + > #if !defined(_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ) > #define _TRACE_GPIO_H >