[ltt-dev] FATAL: Module XXX not found on powerpc cross development environment
Mathieu Desnoyers
compudj at krystal.dyndns.org
Thu Jan 27 14:21:59 EST 2011
* Robert Berger (gmane at reliableembeddedsystems.com) wrote:
> Hi,
>
> I'm trying to show lttng in a Linux Device drivers training and, crazy
> as I am, I want to use the latest and greatest.
> (used to work with 2.6.36-lttng-0.239)
>
> Here is what I do:
>
> git clone
> git://git.kernel.org/pub/scm/linux/kernel/git/compudj/linux-2.6-lttng.git linux-2.6-lttng
> (remotes/origin/HEAD -> origin/2.6.37-lttng-0.242)
>
> Are there any special extra configurations I need to make?
>
> git clone git://lttng.org/ltt-control.git
>
> that's on:
> commit 07bb3e168aa9b2f527d9ecaa27c28a478c81e0db
>
> ./autogen.sh --host=powerpc-linux
> --prefix=$ELDK_PREFIX/eldk-4.2-ppc_4xx/ppc_4xx
> make
> make install
>
> git clone git://git.lttng.org/lttng-modules.git lttng-modules
You are, by default, on the "master" branch of lttng-modules, which is
undergoing a rather large development effort.
The LTTng kernel tree on kernel.org matches these "stable" releases.
So you should checkout the v0.19-stable branch of the lttng-modules git
tree. It should all work fine.
Thanks,
Mathieu
> (does not cross compile, do we need this now? before I believe that the
> modules were part of the kernel git tree)
>
> echo ${KERNELDIR}
> /work/rber/eldk-4.2-ppc_4xx/usr/src/linux-2.6-lttng/
> make ARCH=powerpc CROSS_COMPILE=ppc_4xx-
>
> make -C /work/rber/eldk-4.2-ppc_4xx/usr/src/linux-2.6-lttng/
> M=/home/rber/projects/ldd/ldd_for_trainer/src/70.0_LTTng/lttng-modules
> modules
> make[1]: Entering directory
> `/work/rber/eldk-4.2-ppc_4xx/usr/src/linux-2.6-lttng'
> CC [M]
> /home/rber/projects/ldd/ldd_for_trainer/src/70.0_LTTng/lttng-modules/ltt-core.o
> In file included from
> /home/rber/projects/ldd/ldd_for_trainer/src/70.0_LTTng/lttng-modules/ltt-core.c:15:
> /home/rber/projects/ldd/ldd_for_trainer/src/70.0_LTTng/lttng-modules/ltt-tracer-core.h:20:37:
> error: linux/ringbuffer/config.h: No such file or directory
> make[2]: ***
> [/home/rber/projects/ldd/ldd_for_trainer/src/70.0_LTTng/lttng-modules/ltt-core.o]
> Error 1
> make[1]: ***
> [_module_/home/rber/projects/ldd/ldd_for_trainer/src/70.0_LTTng/lttng-modules]
> Error 2
> make[1]: Leaving directory
> `/work/rber/eldk-4.2-ppc_4xx/usr/src/linux-2.6-lttng'
> make: *** [default] Error 2
>
> Where should the file linux/ringbuffer/config.h be?
>
> A find on the kernel tree shows this:
> find -name config.h
> ./net/tipc/config.h
> ./drivers/staging/line6/config.h
> ./fs/dlm/config.h
>
> So without building and copying the kernel modules on my powerpc target
> I do the following:
>
> -bash-3.2# export LTT_DAEMON=/bin/lttd
> -bash-3.2# ltt-armall
> FATAL: Module ltt_trace_control not found.
> FATAL: Module ltt_marker_control not found.
> FATAL: Module ltt_tracer not found.
> FATAL: Module ltt_relay not found.
> FATAL: Module ltt_kprobes not found.
> FATAL: Module ltt_userspace_event not found.
> FATAL: Module ltt_statedump not found.
> FATAL: Module ipc_trace not found.
> FATAL: Module kernel_trace not found.
> FATAL: Module mm_trace not found.
> FATAL: Module net_trace not found.
> FATAL: Module fs_trace not found.
> FATAL: Module jbd2_trace not found.
> FATAL: Module syscall_trace not found.
> FATAL: Module trap_trace not found.
> FATAL: Module block_trace not found.
> FATAL: Module rcu_trace not found.
>
> Am I missing something?
>
> Please advise.
>
> Regards,
>
> Robert..."Life is too short to be taken seriously." - Oscar Wilde
>
> My public pgp key is available at:
> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1
>
>
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
More information about the lttng-dev
mailing list