Skip to contentSkip to conversation

LTTng-core 0.5.108 : build

PATCH In review Mathieu Desnoyers 3 participants 4 messages Sep 14, 2006

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/11 LTTng-core 0.5.108 : build

1- LTTng menu options and Makefiles
(do not enable blktrace for now : kernel/relay.o is disabled) patch-2.6.17-lttng-core-0.5.108-build.diff

OpenPGP public key:              http://krystal.dyndns.org:8080/key/compudj.gpg
Key fingerprint:     8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68 
Makefile +3 -2
@@ -1,8 +1,9 @@
 VERSION = 2
 PATCHLEVEL = 6
 SUBLEVEL = 17
-EXTRAVERSION =
+EXTRAVERSION =-lttng-0.5.108-core
 NAME=Crazed Snow-Weasel
+NAME=Sliding Snow Leopard
 
 # *DOCUMENTATION*
 # To see a list of typical targets execute "make help"
@@ -518,7 +519,7 @@ export MODLIB
 
 
 ifeq ($(KBUILD_EXTMOD),)
-core-y		+= kernel/ mm/ fs/ ipc/ security/ crypto/ block/
+core-y		+= kernel/ mm/ fs/ ipc/ security/ crypto/ block/ ltt/
 
 vmlinux-dirs	:= $(patsubst %/,%,$(filter %/, $(init-y) $(init-m) \
 		     $(core-y) $(core-m) $(drivers-y) $(drivers-m) \
kernel/Makefile +6 -1
@@ -25,6 +25,10 @@ obj-$(CONFIG_KALLSYMS) += kallsyms.o
 obj-$(CONFIG_PM) += power/
 obj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o
 obj-$(CONFIG_KEXEC) += kexec.o
+obj-$(CONFIG_LTT) += ltt-base.o
+obj-$(CONFIG_LTT) += ltt-facilities.o
+obj-$(CONFIG_LTT_USERSPACE_GENERIC) += ltt-syscall.o
+obj-$(CONFIG_LTT_HEARTBEAT) += ltt-heartbeat.o
 obj-$(CONFIG_COMPAT) += compat.o
 obj-$(CONFIG_CPUSETS) += cpuset.o
 obj-$(CONFIG_IKCONFIG) += configs.o
@@ -37,7 +41,7 @@ obj-$(CONFIG_DETECT_SOFTLOCKUP) += softl
 obj-$(CONFIG_GENERIC_HARDIRQS) += irq/
 obj-$(CONFIG_SECCOMP) += seccomp.o
 obj-$(CONFIG_RCU_TORTURE_TEST) += rcutorture.o
-obj-$(CONFIG_RELAY) += relay.o
+#obj-$(CONFIG_RELAY) += relay.o
 
 ifneq ($(CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER),y)
 # According to Alan Modra <[email protected]>, the -fno-omit-frame-pointer is
@@ -61,3 +65,4 @@ quiet_cmd_ikconfiggz = IKCFG   $@
 targets += config_data.h
 $(obj)/config_data.h: $(obj)/config_data.gz FORCE
 	$(call if_changed,ikconfiggz)
+
ltt/Kconfig new file +132 -0

132 lines not on this page · raw message

ltt/Makefile new file +8 -0
@@ -0,0 +1,8 @@
+#
+# Makefile for the LTT objects.
+#
+obj-$(CONFIG_LTT_FACILITY_CORE)		+= ltt-facility-loader-core.o
+
+obj-$(CONFIG_LTT_TRACER)		+= ltt-core.o
+obj-$(CONFIG_LTT_RELAY)			+= ltt-relay.o
+obj-$(CONFIG_LTT_NETLINK_CONTROL)	+= ltt-control.o
arch/i386/Kconfig +3 -0
@@ -1081,6 +1081,9 @@ config KPROBES
 	  a probepoint and specifies the callback.  Kprobes is useful
 	  for kernel debugging, non-intrusive instrumentation and testing.
 	  If in doubt, say "N".
+
+source "ltt/Kconfig"
+
 endmenu
 
 source "arch/i386/Kconfig.debug"
arch/ppc/Kconfig +6 -0
@@ -1417,3 +1417,9 @@ source "arch/ppc/Kconfig.debug"
 source "security/Kconfig"
 
 source "crypto/Kconfig"
+
+menu "Instrumentation Support"
+
+source "ltt/Kconfig"
+
+endmenu
arch/powerpc/Kconfig +3 -0
@@ -1011,6 +1011,9 @@ config KPROBES
 	  a probepoint and specifies the callback.  Kprobes is useful
 	  for kernel debugging, non-intrusive instrumentation and testing.
 	  If in doubt, say "N".
+
+source "ltt/Kconfig"
+  
 endmenu
 
 source "arch/powerpc/Kconfig.debug"
arch/arm/Kconfig +6 -0
@@ -871,6 +871,12 @@ source "fs/Kconfig"
 
 source "arch/arm/oprofile/Kconfig"
 
+menu "Instrumentation Support"
+
+source "ltt/Kconfig"
+
+endmenu
+
 source "arch/arm/Kconfig.debug"
 
 source "security/Kconfig"
arch/mips/Kconfig +6 -0
@@ -1857,3 +1857,9 @@ source "security/Kconfig"
 source "crypto/Kconfig"
 
 source "lib/Kconfig"
+
+menu "Instrumentation Support"
+
+source "ltt/Kconfig"
+
+endmenu
arch/x86_64/Kconfig +3 -0
@@ -611,6 +611,9 @@ config KPROBES
 	  a probepoint and specifies the callback.  Kprobes is useful
 	  for kernel debugging, non-intrusive instrumentation and testing.
 	  If in doubt, say "N".
+
+source "ltt/Kconfig"
+
 endmenu
 
 source "arch/x86_64/Kconfig.debug"
#1 lore raw

hoi :)

Quoted 1 line · Mathieu Desnoyers

1- LTTng menu options and Makefiles

adding Makefiles before the needed .c files breaks bisecting.

Quoted 1 line

(do not enable blktrace for now : kernel/relay.o is disabled)

If kernel/relay.c becomes obsolete, then perhaps this should be a separate patch, removing it entirely.

Signature · 1 line
Martin Waitz
#2 lore raw
Quoted 7 lines · * Martin Waitz ([email protected]) wrote:

hoi :)

Quoted 1 line · Mathieu Desnoyers

1- LTTng menu options and Makefiles

adding Makefiles before the needed .c files breaks bisecting.

Ok, next time I will send the patches in a different order. (meanwhile, you can apply this patch at the end)

Quoted 5 lines
Quoted 1 line

(do not enable blktrace for now : kernel/relay.o is disabled)

If kernel/relay.c becomes obsolete, then perhaps this should be a separate patch, removing it entirely.

No, it is not. It's a temporary solution only used because relayfs has been such a moving target lately that I decided to wait for things to settle down before switching. I plan to switch to the new relay.o and use DebugFS for filesystem. I just haven't done the change yet.

Mathieu

Quoted 2 lines
Signature · 1 line
Martin Waitz
OpenPGP public key:              http://krystal.dyndns.org:8080/key/compudj.gpg
Key fingerprint:     8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68 
#3 lore raw
In reply to Mathieu Desnoyers
Quoted 2 lines · Mathieu Desnoyers

1- LTTng menu options and Makefiles
(do not enable blktrace for now : kernel/relay.o is disabled)

And the rationale behind this would be..?

Apparently you've also decided to try and add the file system back in, what exactly is so "special" about LTTng that it can't use CONFIG_RELAY in conjunction with debugfs, in the same way that blktrace does now?