Skip to contentSkip to conversation

LTT for 2.5.38 2/9: Trace driver

PATCH New Karim Yaghmour 1 participant 1 message Sep 22, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 LTT for 2.5.38 2/9: Trace driver

This is the LTT trace driver itself.

Here are the file modifications:

 drivers/Makefile          |    1
 drivers/trace/Config.help |   48
 drivers/trace/Config.in   |    8
 drivers/trace/Makefile    |   17
 drivers/trace/tracer.c    | 2398 ++++++++++++++++++++++++++++++++++++++++++++++
 drivers/trace/tracer.h    |  233 ++++
 6 files changed, 2705 insertions       
drivers/Makefile +1 -0
diff -urpN linux-2.5.38/drivers/Makefile linux-2.5.38-ltt/drivers/Makefile
@@ -41,5 +41,6 @@ obj-$(CONFIG_MD)		+= md/
 obj-$(CONFIG_BLUEZ)		+= bluetooth/
 obj-$(CONFIG_HOTPLUG_PCI)	+= hotplug/
 obj-$(CONFIG_ISDN_BOOL)		+= isdn/
+obj-$(CONFIG_TRACE)		+= trace/
 
 include $(TOPDIR)/Rules.make
drivers/trace/Config.help +48 -0

48 lines not on this page · raw message

drivers/trace/Config.in +8 -0
diff -urpN linux-2.5.38/drivers/trace/Config.in linux-2.5.38-ltt/drivers/trace/Config.in
@@ -0,0 +1,8 @@
+mainmenu_option next_comment
+comment 'Kernel tracing'
+tristate 'Kernel events tracing support' CONFIG_TRACE
+if [ "$CONFIG_TRACE" != "n" ]; then
+   dep_mbool '  Lock-free tracing support' CONFIG_LOCKLESS_TRACE $CONFIG_TRACE
+fi
+
+endmenu
drivers/trace/Makefile +17 -0
diff -urpN linux-2.5.38/drivers/trace/Makefile linux-2.5.38-ltt/drivers/trace/Makefile
@@ -0,0 +1,17 @@
+#
+# Makefile for the kernel tracing drivers.
+#
+# Note! Dependencies are done automagically by 'make dep', which also
+# removes any old dependencies. DON'T put your own dependencies here
+# unless it's something special (ie not a .c file).
+#
+# Note 2! The CFLAGS definitions are now inherited from the
+# parent makes..
+#
+
+O_TARGET := built-in.o
+
+# Is it loaded as a module or as part of the kernel
+obj-$(CONFIG_TRACE) = tracer.o
+
+include $(TOPDIR)/Rules.make
drivers/trace/tracer.c +2398 -0

2,398 lines not on this page · raw message

drivers/trace/tracer.h +233 -0

233 lines not on this page · raw message