[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1269304340-25372-16-git-send-email-jack@suse.cz>
Date: Tue, 23 Mar 2010 01:32:17 +0100
From: Jan Kara <jack@...e.cz>
To: LKML <linux-kernel@...r.kernel.org>
Cc: Jan Kara <jack@...e.cz>, "David S. Miller" <davem@...emloft.net>,
netdev@...r.kernel.org
Subject: [PATCH 15/18] net: Provide config option for enabling NAPI tracing
CC: "David S. Miller" <davem@...emloft.net>
CC: netdev@...r.kernel.org
Signed-off-by: Jan Kara <jack@...e.cz>
---
include/trace/events/napi.h | 2 ++
kernel/trace/Kconfig | 9 +++++++++
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/include/trace/events/napi.h b/include/trace/events/napi.h
index a8989c4..70cb4dd 100644
--- a/include/trace/events/napi.h
+++ b/include/trace/events/napi.h
@@ -2,6 +2,8 @@
#define _TRACE_NAPI_H_
#include <linux/netdevice.h>
+#undef TRACE_CONFIG
+#define TRACE_CONFIG CONFIG_NAPI_TRACER
#include <linux/tracepoint.h>
DECLARE_TRACE(napi_poll,
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig
index a02d577..88b556c 100644
--- a/kernel/trace/Kconfig
+++ b/kernel/trace/Kconfig
@@ -508,6 +508,15 @@ config SKB_TRACER
If unsure, say N.
+config NAPI_TRACER
+ bool "NAPI tracing"
+ depends on NET
+ select GENERIC_TRACER
+ help
+ Provide tracing for NAPI functions.
+
+ If unsure, say N.
+
config KPROBE_EVENT
depends on KPROBES
depends on HAVE_REGS_AND_STACK_ACCESS_API
--
1.6.4.2
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists