lkml.org 
[lkml]   [2015]   [Jul]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 2/2] tracing: gpio: add Kconfig option for enabling/disabling trace events
On Thu, 16 Jul 2015 20:39:36 +0300
Tal Shorer <tal.shorer@gmail.com> 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 <tal.shorer@gmail.com>
> ---
> 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
>



\
 
 \ /
  Last update: 2015-07-17 21:01    [W:0.115 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site