Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751425AbbHAM3A (ORCPT ); Sat, 1 Aug 2015 08:29:00 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:35313 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750978AbbHAM27 (ORCPT ); Sat, 1 Aug 2015 08:28:59 -0400 From: Tal Shorer To: tal.shorer@gmail.com, rostedt@goodmis.org Cc: mingo@redhat.com, linux-kernel@vger.kernel.org Subject: [Patch v3 2/2] tracing: gpio: add Kconfig option for enabling/disabling trace events Date: Sat, 1 Aug 2015 15:27:58 +0300 Message-Id: <1438432079-11704-4-git-send-email-tal.shorer@gmail.com> X-Mailer: git-send-email 2.4.6 In-Reply-To: <1438432079-11704-1-git-send-email-tal.shorer@gmail.com> References: <1438432079-11704-1-git-send-email-tal.shorer@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1405 Lines: 51 Add a new options to trace Kconfig, CONFIG_TRACING_EVENTS_GPIO, that is used for enabling/disabling compilation of gpio function trace events. Signed-off-by: Tal Shorer Acked-by: Linus Walleij --- include/trace/events/gpio.h | 4 ++++ kernel/trace/Kconfig | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/include/trace/events/gpio.h b/include/trace/events/gpio.h index 927a8ad..2da73b9 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_TRACING_EVENTS_GPIO +#define NOTRACE +#endif + #if !defined(_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_GPIO_H diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index 3b9a48a..67a1731 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig @@ -635,6 +635,13 @@ config TRACE_ENUM_MAP_FILE If unsure, say N +config TRACING_EVENTS_GPIO + bool "Trace gpio events" + depends on GPIOLIB + default y + help + Enable tracing events for gpio subsystem + endif # FTRACE endif # TRACING_SUPPORT -- 2.4.6 -- 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/