Re: LTTng usage issue

"Srinivasa Reddy" <[email protected]> Wed, 25 Jul 2007 16:55:42 +0530
Newsgroups gmane.linux.kernel.tracing
Message-ID <[email protected]>
[Mathieu]It looks fine. Did you have any rejects when applying lttng
patches on you 2.6.18 kernel ? 

[Srinivas]No, I didn't get any rejects while patching. See the messages
while patching the LTTng given below. My kernel is 2.6.19 version.

patching file fs/debugfs/inode.c
patching file include/linux/relay.h
patching file kernel/relay.c
patching file block/blktrace.c
patching file include/asm-generic/vmlinux.lds.h
patching file kernel/Kconfig.marker
patching file include/linux/module.h
patching file include/linux/marker.h
patching file include/asm-arm/marker.h
patching file include/asm-cris/marker.h
patching file include/asm-frv/marker.h
patching file include/asm-generic/marker.h
patching file include/asm-h8300/marker.h
patching file include/asm-i386/marker.h
patching file include/asm-ia64/marker.h
patching file include/asm-m32r/marker.h
patching file include/asm-m68k/marker.h
patching file include/asm-m68knommu/marker.h
patching file include/asm-mips/marker.h
patching file include/asm-parisc/marker.h
patching file include/asm-powerpc/marker.h
patching file include/asm-ppc64/marker.h
patching file include/asm-ppc/marker.h
patching file include/asm-s390/marker.h
patching file include/asm-sh64/marker.h
patching file include/asm-sh/marker.h
patching file include/asm-sparc64/marker.h
patching file include/asm-sparc/marker.h
patching file include/asm-um/marker.h
patching file include/asm-v850/marker.h
patching file include/asm-x86_64/marker.h
patching file include/asm-xtensa/marker.h
patching file include/asm-alpha/atomic.h
patching file include/asm-alpha/system.h
patching file include/asm-arm/atomic.h
patching file include/asm-generic/atomic.h
patching file include/asm-i386/atomic.h
patching file include/asm-i386/system.h
patching file include/asm-ia64/atomic.h
patching file include/asm-mips/atomic.h
patching file include/asm-parisc/atomic.h
patching file include/asm-powerpc/atomic.h
patching file include/asm-powerpc/system.h
patching file include/asm-sparc64/atomic.h
patching file include/asm-x86_64/atomic.h
patching file include/asm-x86_64/system.h
patching file include/asm-alpha/local.h
patching file include/asm-generic/local.h
patching file include/asm-i386/local.h
patching file include/asm-ia64/local.h
patching file include/asm-mips/local.h
patching file include/asm-parisc/local.h
patching file include/asm-powerpc/local.h
patching file include/asm-s390/local.h
patching file include/asm-sparc64/local.h
patching file include/asm-x86_64/local.h
patching file include/linux/ltt-facilities.h
patching file ltt/ltt-facilities.c
patching file include/ltt/ltt-facility-core.h
patching file include/ltt/ltt-facility-id-core.h
patching file include/ltt/ltt-facility-select-core.h
patching file ltt/facilities/ltt-facility-loader-core.c
patching file ltt/facilities/ltt-facility-loader-core.h
patching file ltt/facilities/Makefile
patching file include/asm-alpha/ltt.h
patching file include/asm-arm26/ltt.h
patching file include/asm-arm/ltt.h
patching file include/asm-cris/ltt.h
patching file include/asm-frv/ltt.h
patching file include/asm-generic/ltt.h
patching file include/asm-h8300/ltt.h
patching file include/asm-i386/ltt.h
patching file include/asm-ia64/ltt.h
patching file include/asm-m32r/ltt.h
patching file include/asm-m68k/ltt.h
patching file include/asm-m68knommu/ltt.h
patching file include/asm-mips/ltt.h
patching file include/asm-mips/timex.h
patching file arch/mips/kernel/time.c
patching file include/asm-parisc/ltt.h
patching file include/asm-powerpc/ltt.h
patching file include/asm-ppc/ltt.h
patching file include/asm-s390/ltt.h
patching file include/asm-sh64/ltt.h
patching file include/asm-sh/ltt.h
patching file include/asm-sparc64/ltt.h
patching file include/asm-sparc/ltt.h
patching file include/asm-um/ltt.h
patching file include/asm-v850/ltt.h
patching file include/asm-x86_64/ltt.h
patching file include/asm-xtensa/ltt.h
patching file include/linux/ltt-core.h
patching file MAINTAINERS
patching file ltt/ltt-core.c
patching file ltt/ltt-heartbeat.c
patching file include/ltt/ltt-tracer.h
patching file ltt/ltt-tracer.c
patching file ltt/ltt-relay.c
patching file Documentation/ioctl-number.txt
patching file ltt/ltt-control.c
patching file ltt/ltt-control.h
patching file include/linux/netlink.h
patching file include/linux/sched.h
patching file kernel/sys_ni.c
patching file ltt/ltt-syscall.c
patching file kernel/exit.c
patching file kernel/fork.c
patching file include/asm-arm/unistd.h
patching file include/asm-i386/unistd.h
patching file include/asm-mips/unistd.h
patching file include/asm-powerpc/unistd.h
patching file include/asm-powerpc/systbl.h
patching file include/asm-x86_64/unistd.h
patching file arch/arm/kernel/calls.S
patching file arch/arm/kernel/entry-common.S
patching file arch/arm/kernel/process.c
patching file arch/arm/kernel/ptrace.c
patching file arch/arm/kernel/sys_arm.c
patching file arch/arm/kernel/time.c
patching file arch/arm/kernel/traps.c
patching file include/asm-arm/thread_info.h
patching file arch/i386/kernel/process.c
patching file arch/i386/kernel/ptrace.c
patching file arch/i386/kernel/syscall_table.S
patching file arch/i386/kernel/sys_i386.c
patching file arch/i386/kernel/time.c
patching file arch/i386/kernel/traps.c
patching file arch/i386/mm/fault.c
patching file arch/mips/kernel/process.c
patching file arch/mips/kernel/ptrace.c
patching file arch/mips/kernel/syscall.c
patching file arch/mips/kernel/traps.c
patching file arch/mips/kernel/unaligned.c
patching file include/asm-mips/mipsregs.h
patching file arch/mips/kernel/scall32-o32.S
patching file arch/mips/kernel/scall64-64.S
patching file arch/mips/kernel/scall64-n32.S
patching file arch/mips/kernel/scall64-o32.S
patching file arch/mips/mm/fault.c
patching file arch/powerpc/kernel/irq.c
patching file arch/powerpc/kernel/misc_32.S
patching file arch/powerpc/kernel/misc_64.S
patching file arch/powerpc/kernel/ppc_ksyms.c
patching file arch/powerpc/kernel/process.c
patching file arch/powerpc/kernel/prom.c
patching file arch/powerpc/kernel/ptrace.c
patching file arch/powerpc/kernel/syscalls.c
patching file arch/powerpc/kernel/time.c
patching file arch/powerpc/kernel/traps.c
patching file arch/powerpc/mm/fault.c
patching file arch/ppc/kernel/misc.S
patching file arch/ppc/kernel/time.c
patching file arch/ppc/kernel/traps.c
patching file arch/ppc/mm/fault.c
patching file arch/x86_64/ia32/ia32entry.S
patching file arch/x86_64/ia32/ipc32.c
patching file arch/x86_64/kernel/entry.S
patching file arch/x86_64/kernel/process.c
patching file arch/x86_64/kernel/ptrace.c
patching file arch/x86_64/kernel/time.c
patching file arch/x86_64/kernel/traps.c
patching file arch/x86_64/mm/fault.c
patching file fs/buffer.c
patching file fs/compat.c
patching file fs/exec.c
patching file fs/ioctl.c
patching file fs/open.c
patching file fs/read_write.c
patching file fs/select.c
patching file ipc/msg.c
patching file ipc/sem.c
patching file ipc/shm.c
patching file kernel/irq/handle.c
patching file kernel/itimer.c
patching file kernel/kthread.c
patching file kernel/lockdep.c
patching file kernel/module.c
patching file kernel/printk.c
patching file kernel/sched.c
patching file kernel/signal.c
patching file kernel/softirq.c
patching file kernel/timer.c
patching file mm/filemap.c
patching file mm/memory.c
patching file mm/page_alloc.c
patching file mm/page_io.c
patching file net/core/dev.c
patching file net/ipv4/devinet.c
patching file net/socket.c
patching file include/ltt/ltt-facility-custom-fs_data.h
patching file include/ltt/ltt-facility-custom-stack_arch_i386.h
patching file include/ltt/ltt-facility-custom-stack_arch_x86_64.h
patching file include/ltt/ltt-facility-custom-stack.h
patching file include/ltt/ltt-facility-fs_data.h
patching file include/ltt/ltt-facility-fs.h
patching file include/ltt/ltt-facility-id-fs_data.h
patching file include/ltt/ltt-facility-id-fs.h
patching file include/ltt/ltt-facility-id-ipc.h
patching file include/ltt/ltt-facility-id-kernel_arch_arm.h
patching file include/ltt/ltt-facility-id-kernel_arch_i386.h
patching file include/ltt/ltt-facility-id-kernel_arch_mips.h
patching file include/ltt/ltt-facility-id-kernel_arch_powerpc.h
patching file include/ltt/ltt-facility-id-kernel_arch_ppc.h
patching file include/ltt/ltt-facility-id-kernel_arch_x86_64.h
patching file include/ltt/ltt-facility-id-kernel.h
patching file include/ltt/ltt-facility-id-locking.h
patching file include/ltt/ltt-facility-id-memory.h
patching file include/ltt/ltt-facility-id-network.h
patching file include/ltt/ltt-facility-id-network_ip_interface.h
patching file include/ltt/ltt-facility-id-process.h
patching file include/ltt/ltt-facility-id-socket.h
patching file include/ltt/ltt-facility-id-stack_arch_i386.h
patching file include/ltt/ltt-facility-id-stack.h
patching file include/ltt/ltt-facility-id-statedump.h
patching file include/ltt/ltt-facility-id-timer.h
patching file include/ltt/ltt-facility-ipc.h
patching file include/ltt/ltt-facility-kernel_arch_arm.h
patching file include/ltt/ltt-facility-kernel_arch_i386.h
patching file include/ltt/ltt-facility-kernel_arch_mips.h
patching file include/ltt/ltt-facility-kernel_arch_powerpc.h
patching file include/ltt/ltt-facility-kernel_arch_ppc.h
patching file include/ltt/ltt-facility-kernel_arch_x86_64.h
patching file include/ltt/ltt-facility-kernel.h
patching file include/ltt/ltt-facility-locking.h
patching file include/ltt/ltt-facility-memory.h
patching file include/ltt/ltt-facility-network.h
patching file include/ltt/ltt-facility-network_ip_interface.h
patching file include/ltt/ltt-facility-process.h
patching file include/ltt/ltt-facility-select-default.h
patching file include/ltt/ltt-facility-select-kernel.h
patching file include/ltt/ltt-facility-select-network_ip_interface.h
patching file include/ltt/ltt-facility-select-process.h
patching file include/ltt/ltt-facility-select-statedump.h
patching file include/ltt/ltt-facility-socket.h
patching file include/ltt/ltt-facility-stack.h
patching file include/ltt/ltt-facility-statedump.h
patching file include/ltt/ltt-facility-timer.h
patching file include/ltt/ltt-stack.h
patching file ltt/facilities/ltt-facility-loader-fs.c
patching file ltt/facilities/ltt-facility-loader-fs_data.c
patching file ltt/facilities/ltt-facility-loader-fs_data.h
patching file ltt/facilities/ltt-facility-loader-fs.h
patching file ltt/facilities/ltt-facility-loader-ipc.c
patching file ltt/facilities/ltt-facility-loader-ipc.h
patching file ltt/facilities/ltt-facility-loader-kernel_arch_arm.c
patching file ltt/facilities/ltt-facility-loader-kernel_arch_arm.h
patching file ltt/facilities/ltt-facility-loader-kernel_arch_i386.c
patching file ltt/facilities/ltt-facility-loader-kernel_arch_i386.h
patching file ltt/facilities/ltt-facility-loader-kernel_arch_mips.c
patching file ltt/facilities/ltt-facility-loader-kernel_arch_mips.h
patching file ltt/facilities/ltt-facility-loader-kernel_arch_powerpc.c
patching file ltt/facilities/ltt-facility-loader-kernel_arch_powerpc.h
patching file ltt/facilities/ltt-facility-loader-kernel_arch_ppc.c
patching file ltt/facilities/ltt-facility-loader-kernel_arch_ppc.h
patching file ltt/facilities/ltt-facility-loader-kernel_arch_x86_64.c
patching file ltt/facilities/ltt-facility-loader-kernel_arch_x86_64.h
patching file ltt/facilities/ltt-facility-loader-kernel.c
patching file ltt/facilities/ltt-facility-loader-kernel.h
patching file ltt/facilities/ltt-facility-loader-locking.c
patching file ltt/facilities/ltt-facility-loader-locking.h
patching file ltt/facilities/ltt-facility-loader-memory.c
patching file ltt/facilities/ltt-facility-loader-memory.h
patching file ltt/facilities/ltt-facility-loader-network.c
patching file ltt/facilities/ltt-facility-loader-network.h
patching file ltt/facilities/ltt-facility-loader-network_ip_interface.c
patching file ltt/facilities/ltt-facility-loader-network_ip_interface.h
patching file ltt/facilities/ltt-facility-loader-process.c
patching file ltt/facilities/ltt-facility-loader-process.h
patching file ltt/facilities/ltt-facility-loader-socket.c
patching file ltt/facilities/ltt-facility-loader-socket.h
patching file ltt/facilities/ltt-facility-loader-stack.c
patching file ltt/facilities/ltt-facility-loader-stack.h
patching file ltt/facilities/ltt-facility-loader-statedump.c
patching file ltt/facilities/ltt-facility-loader-statedump.h
patching file ltt/facilities/ltt-facility-loader-timer.c
patching file ltt/facilities/ltt-facility-loader-timer.h
patching file ltt/ltt-stack.c
missing header for unified diff at line 31268 of patch
patching file ltt/probes/ltt-probe-arm.c
patching file ltt/probes/ltt-probe-fs.c
patching file ltt/probes/ltt-probe-i386.c
patching file ltt/probes/ltt-probe-ipc.c
patching file ltt/probes/ltt-probe-kernel.c
patching file ltt/probes/ltt-probe-list.c
patching file ltt/probes/ltt-probe-locking.c
patching file ltt/probes/ltt-probe-mips.c
patching file ltt/probes/ltt-probe-mm.c
patching file ltt/probes/ltt-probe-net.c
patching file ltt/probes/ltt-probe-powerpc.c
patching file ltt/probes/ltt-probe-ppc.c
patching file ltt/probes/ltt-probe-x86_64.c
patching file ltt/probes/Makefile
patching file ltt/ltt-statedump.c
patching file Makefile
patching file ltt/Kconfig
patching file ltt/Makefile
patching file arch/alpha/Kconfig
patching file arch/cris/Kconfig
patching file arch/frv/Kconfig
patching file arch/h8300/Kconfig
patching file arch/i386/Kconfig
patching file arch/ia64/Kconfig
patching file arch/m32r/Kconfig
patching file arch/m68k/Kconfig
patching file arch/m68knommu/Kconfig
patching file arch/ppc/Kconfig
patching file arch/powerpc/Kconfig
patching file arch/parisc/Kconfig
patching file arch/arm/Kconfig
patching file arch/arm26/Kconfig
patching file arch/mips/Kconfig
patching file arch/s390/Kconfig
patching file arch/sh64/Kconfig
patching file arch/sh/Kconfig
patching file arch/sparc64/Kconfig
patching file arch/sparc/Kconfig
patching file arch/um/Kconfig
patching file arch/v850/Kconfig
patching file arch/xtensa/Kconfig
patching file arch/x86_64/Kconfig

*****************************************************************

[Mathieu] Is it a kernel.org vanilla kernel ? 

[Srinivas] Don't know.. The version of the kernel is 2.6.19. How to know
whether it is vanilla or something else?


[Mathieu] Could you recompile ltt-control with:
make -DDEBUG and give me the output when running it?

[Srinivas]Yes. But it's not taking that command (-DDEBUG). Please see
the below message:

[sreddy@l-blr-sddeg03 ltt-control-0.32-05122006]$ make -DDEBUG
make: invalid option -- D
make: invalid option -- D
make: invalid option -- E
make: invalid option -- U
make: invalid option -- G
Usage: make [options] [target] ...
Options:
  -b, -m                      Ignored for compatibility.
  -B, --always-make           Unconditionally make all targets.
  -C DIRECTORY, --directory=DIRECTORY
                              Change to DIRECTORY before doing anything.
  -d                          Print lots of debugging information.
  --debug[=FLAGS]             Print various types of debugging
information.
  -e, --environment-overrides
                              Environment variables override makefiles.
  -f FILE, --file=FILE, --makefile=FILE
                              Read FILE as a makefile.
  -h, --help                  Print this message and exit.
  -i, --ignore-errors         Ignore errors from commands.
  -I DIRECTORY, --include-dir=DIRECTORY
                              Search DIRECTORY for included makefiles.
  -j [N], --jobs[=N]          Allow N jobs at once; infinite jobs with
no arg.
  -k, --keep-going            Keep going when some targets can't be
made.
  -l [N], --load-average[=N], --max-load[=N]
                              Don't start multiple jobs unless load is
below N.
  -n, --just-print, --dry-run, --recon
                              Don't actually run any commands; just
print them.
  -o FILE, --old-file=FILE, --assume-old=FILE
                              Consider FILE to be very old and don't
remake it.
  -p, --print-data-base       Print make's internal database.
  -q, --question              Run no commands; exit status says if up to
date.
  -r, --no-builtin-rules      Disable the built-in implicit rules.
  -R, --no-builtin-variables  Disable the built-in variable settings.
  -s, --silent, --quiet       Don't echo commands.
  -S, --no-keep-going, --stop
                              Turns off -k.
  -t, --touch                 Touch targets instead of remaking them.
  -v, --version               Print the version number of make and exit.
  -w, --print-directory       Print the current directory.
  --no-print-directory        Turn off -w, even if it was turned on
implicitly.
  -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
                              Consider FILE to be infinitely new.
  --warn-undefined-variables  Warn when an undefined variable is
referenced.

This program built for x86_64-redhat-linux-gnu
Report bugs to <[email protected]>
[sreddy@l-blr-sddeg03 ltt-control-0.32-05122006]$

************************************************************************

[Mathieu] And also I think trying to use a different kernel version
could help finding the problem more quickly,

[Srinivas]Ok, then I can try with 2.6.21. But I am facing some problems
with this version while patching LTTng. That is posted as different
message.


[Mathieu] since it seems to be related to kernel/relay.c, and its
version depends on the kernel you are compiling. Trying 2.6.20 kernels
with LTTng 0.9.0 would tell us much more. And then you could even try a
backport from the 0.9.0 patches to you 2.6.19 kernel. You would have to
update the userspace tools too.

[Srinivas] Back-porting from 0.9.0 will be more difficult I feel. And I
don't know how to do that also. :-( 
Since there is no problem while patching and building the kernel, why
that relay is not able to create the channel files?
Please send me that LTTng patch from git repository for 2.6.19 kernel.
That would help me to fix this problem.

Regards,
Srinivas.