<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi,</div><div><br></div><div>I have tried to reinstall lttng-tools, lttng-modules-dkms and babeltrace. <br></div><div><br></div><div>the reinstallation of lttng-tools and babeltrace has been successful. But reinstallation of lttng-modules-dkms has been failing. the log is provided below</div><div><br></div><div>-------------------------start of log--------------</div><div><br></div><div># apt-get install --reinstall lttng-modules-dkms<br>Reading package lists... Done<br>Building dependency tree <br>Reading state information... Done<br>0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.<br>Need to get 0 B/198 kB of archives.<br>After this operation, 0 B of additional disk space will be used.<br>(Reading database ... 199394 files and directories
currently installed.)<br>Preparing to replace lttng-modules-dkms 2.0.0-0ubuntu2~oneiric1 (using .../lttng-modules-dkms_2.0.0-0ubuntu2~oneiric1_all.deb) ...<br><br>------------------------------<br>Deleting module version: 2.0.0<br>completely from the DKMS tree.<br>------------------------------<br>Done.<br>Unpacking replacement lttng-modules-dkms ...<br>Setting up lttng-modules-dkms (2.0.0-0ubuntu2~oneiric1) ...<br>Loading new lttng-modules-2.0.0 DKMS files...<br>Building only for 3.0.0-21-generic<br>Building initial module for 3.0.0-21-generic<br>Error! Bad return status for module build on kernel: 3.0.0-21-generic (i686)<br>Consult /var/lib/dkms/lttng-modules/2.0.0/build/make.log for more information.</div><div><br></div><div>------------------------------ END OF LOG -------------------------</div><div><br></div><div>The content of make.log is provided below : <br></div><div><br></div><div>DKMS make.log for lttng-modules-2.0.0 for kernel
3.0.0-21-generic (i686)<br>Mon Jun 18 12:05:51 IST 2012<br>make: Entering directory `/usr/src/linux-headers-3.0.0-21-generic'<br> CC [M] /var/lib/dkms/lttng-modules/2.0.0/build/lttng-ring-buffer-client-discard.o<br> CC [M] /var/lib/dkms/lttng-modules/2.0.0/build/lttng-ring-buffer-client-overwrite.o<br> CC [M] /var/lib/dkms/lttng-modules/2.0.0/build/lttng-ring-buffer-metadata-client.o<br> CC [M] /var/lib/dkms/lttng-modules/2.0.0/build/lttng-ring-buffer-client-mmap-discard.o<br> CC [M] /var/lib/dkms/lttng-modules/2.0.0/build/lttng-ring-buffer-client-mmap-overwrite.o<br> CC [M] /var/lib/dkms/lttng-modules/2.0.0/build/lttng-ring-buffer-metadata-mmap-client.o<br> CC [M] /var/lib/dkms/lttng-modules/2.0.0/build/lttng-statedump-impl.o<br> CC [M] /var/lib/dkms/lttng-modules/2.0.0/build/wrapper/irqdesc.o<br> CC [M]
/var/lib/dkms/lttng-modules/2.0.0/build/lttng-events.o<br> CC [M] /var/lib/dkms/lttng-modules/2.0.0/build/lttng-abi.o<br> CC [M] /var/lib/dkms/lttng-modules/2.0.0/build/lttng-probes.o<br> CC [M] /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context.o<br> CC [M] /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-pid.o<br> CC [M] /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-procname.o<br> CC [M] /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-prio.o<br> CC [M] /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-nice.o<br> CC [M] /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-vpid.o<br> CC [M] /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-tid.o<br> CC [M] /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-vtid.o<br> CC [M]
/var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-ppid.o<br> CC [M] /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-vppid.o<br> CC [M] /var/lib/dkms/lttng-modules/2.0.0/build/lttng-calibrate.o<br> CC [M] /var/lib/dkms/lttng-modules/2.0.0/build/wrapper/random.o<br> CC [M] /var/lib/dkms/lttng-modules/2.0.0/build/lttng-syscalls.o<br>/var/lib/dkms/lttng-modules/2.0.0/build/lttng-syscalls.c:32:38: error: macro "is_compat_task" passed 1 arguments, but takes just 0<br>/var/lib/dkms/lttng-modules/2.0.0/build/lttng-syscalls.c:33:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br>make[1]: *** [/var/lib/dkms/lttng-modules/2.0.0/build/lttng-syscalls.o] Error 1<br>make: *** [_module_/var/lib/dkms/lttng-modules/2.0.0/build] Error 2<br>make: Leaving directory `/usr/src/linux-headers-3.0.0-21-generic'</div><div><br></div><div>------------------------- End of
make.log -----------------</div><div><br></div><div>As per the compilation errors in the file lttng-syscalls.c, i dont think these errors are valids. It may be due to somethings else.<br></div><div><br></div><div>Kindly guide how to come over this reinstallation problem of "lttng-modules-dkms" and please let me know if i need to do any other alternatives.<br></div><div><br></div><div><br></div><div><br></div><div>Thanks & Regards,<br>Somanath<br></div><div><br></div><div>------------------------------<br><br>Message: 3<br>Date: Fri, 15 Jun 2012 09:12:40 -0400<br>From: David Goulet <<a href="mailto:david.goulet@polymtl.ca">david.goulet@polymtl.ca</a>><br>To: Francis Giraldeau <<a href="mailto:francis.giraldeau@gmail.com">francis.giraldeau@gmail.com</a>><br>Cc: "<a href="mailto:lttng-dev@lists.lttng.org">lttng-dev@lists.lttng.org</a>" <<a href="mailto:lttng-dev@lists.lttng.org">lttng-dev@lists.lttng.org</a>><br>Subject: Re:
[lttng-dev] lttng - ubuntu 11.10 - problem<br>Message-ID: <<a href="mailto:4FDB34C8.7000505@polymtl.ca">4FDB34C8.7000505@polymtl.ca</a>><br>Content-Type: text/plain; charset=ISO-8859-1<br><br>-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>Hi,<br><br>In order to trace the kernel, you need the LTTng kernel modules available in<br>the package "lttng-modules-dkms". So make sure you have these three packages<br>installed:<br><br># sudo apt-get install lttng-tools lttng-modules-dkms babeltrace<br><br>The error message you got indicates that there is simply no LTTng modules<br>loaded. Please make sure they are loaded and if the problem persist, let us know!<br><br>Thanks!<br>David<br><br>On 15/06/12 04:16 AM, Francis Giraldeau wrote:<br>> Le 2012-06-15 09:41, somanath sahoo a ?crit :<br>>> Hi,<br>>> <br>>> As i am new to lttng usage, I have followed the instructions from <br>>> <<a
href="https://launchpad.net/%7Elttng/+archive/ppa" target="_blank">https://launchpad.net/~lttng/+archive/ppa</a>> in order to install the lttng<br>>> tool set in my ubuntu 11.10. After successful installation, i followed<br>>> the getting started link on lttng.org <<a href="http://lttng.org/quickstart" target="_blank">http://lttng.org/quickstart</a>> in<br>>> "root mode".<br>> <br>> You may verify if kernel modules are loaded correctly. If not, then there<br>> may be a problem while the installation.<br>> <br>> lsmod | grep lttng<br>> <br>> If not, you may try to load them and see if any error message occurs:<br>> <br>> sudo modprobe lttng_tracer<br>> <br>> Francis<br>> <br>> </div></div></body></html>