[lttng-dev] How to compile lttng-modules using full kernel source tree.

Rui Han iurnah at gmail.com
Fri Mar 20 09:34:02 EDT 2015


Hi,

I have encountered following output when I try to run make from the
lttng-modules source cloned from git repo. I have tried in a clean install
of both 12.04 and 14.04.

make -C /lib/modules/3.13.0-45-generic/build
M=/home/troguard32/lttng/lttng-modules modules
make[1]: Entering directory `/usr/src/linux-headers-3.13.0-45-generic'
/home/troguard32/lttng/lttng-modules/probes/Makefile:30: File
/usr/src/linux-headers-3.13.0-45-generic/virt/kvm/iodev.h not found.
Probe "kvm" x86-specific is disabled. Use full kernel source tree to
enable it.
/home/troguard32/lttng/lttng-modules/probes/Makefile:142: Files
/usr/src/linux-headers-3.13.0-45-generic/fs/btrfs/*.h not found. Probe
"btrfs" is disabled. Use full kernel source tree to enable it.
/home/troguard32/lttng/lttng-modules/probes/Makefile:158: Files
/usr/src/linux-headers-3.13.0-45-generic/fs/ext4/*.h not found. Probe
"ext4" is disabled. Use full kernel source tree to enable it.
  Building modules, stage 2.
  MODPOST 43 modules
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-45-generic'

when run make modules_install, it seem the installation is successful, but
the output is abnormal, giving repeated “Can’t read private key” messages.

If I ignore this message and install all other lttng components, it seems
lttng kernel tracer is working fine.

My question is,

   1. How to completely remove this abnormal message? where to specify the
   full kernel source path in make file? (I am a makefile beginner)
   2. How to check whether the lttng-modules installed is fully functional
   or not?
   3. Does the above message is just telling me that I will be able to use
   the full function of lttng-modules except those file system probe mentioned
   in the make output?

Thank you very much.

Best regards,
Rui
​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20150320/2c3b29f9/attachment-0001.html>


More information about the lttng-dev mailing list