Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [lttng-dev] lttng - ubuntu 11.10 - problem
@ 2012-06-15  7:41 somanath sahoo
  2012-06-15  8:16 ` Francis Giraldeau
  0 siblings, 1 reply; 11+ messages in thread
From: somanath sahoo @ 2012-06-15  7:41 UTC (permalink / raw)


Hi,

As i am new to lttng usage, I have followed the instructions from <https://launchpad.net/~lttng/+archive/ppa> in order to install the lttng tool set in my ubuntu 11.10.
After successful installation, i followed the getting started link on lttng.org <http://lttng.org/quickstart> in "root mode".

1. when i am executing the first command - 

??? # lttng list -k

??? i am getting the following error
??? " Error: Unable to list kernel events"

2. # lttng create mysession
??? Session mysession created.

3. # lttng enable-event sched_switch,sched_process_fork -k
??? Error: Event sched_switch: Kernel tracer not available (channel channel0, session mysession)
??? Error: Event sched_process_fork: Kernel tracer not available (channel channel0, session mysession)
??? Warning: Some command(s) went wrong?


4. # lttng start
??? Tracing started for session mysession

5. # lttng stop
??? Tracing stopped for session mysession

6.? # lttng destroy
??? Session mysession destroyed at /root

------------

I have checked that lttng-sessiond is running by below command 


# ps -ef|grep lttn
root?????? 535???? 1? 0 Jun14 ???????? 00:00:00 lttng-sessiond
somanath? 5359???? 1? 0 Jun14 pts/1??? 00:00:00 lttng-sessiond --sig-parent --quiet
root???? 19514 19495? 0 12:44 pts/2??? 00:00:00 grep --color=auto lttn

--------------

Could anyone please help me to understand or clarify why kernel tracer is not available when above point (3) / (1) is executed or whether i need to do anything more , please let me know so that i can start using lttng in ubuntu 11.10 successfully.


I have googled about this problem, I got to know about this similar problem from one link - http://www.mail-archive.com/lttng-dev at lists.lttng.org/msg00763.html
However i executed all this commands under root and explicit lttng-seesiond start, But still the problem is persistant.



Any help will be appreciated.


Thanks & Regards,
Somanath
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20120615/87cd04df/attachment-0001.html>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [lttng-dev] lttng - ubuntu 11.10 - problem
  2012-06-15  7:41 [lttng-dev] lttng - ubuntu 11.10 - problem somanath sahoo
@ 2012-06-15  8:16 ` Francis Giraldeau
  2012-06-15  8:23   ` [lttng-dev] Prerequsites for adding perf context Oestman, Fredrik
  2012-06-15 13:12   ` [lttng-dev] lttng - ubuntu 11.10 - problem David Goulet
  0 siblings, 2 replies; 11+ messages in thread
From: Francis Giraldeau @ 2012-06-15  8:16 UTC (permalink / raw)


Le 2012-06-15 09:41, somanath sahoo a ?crit :
> Hi,
>
> As i am new to lttng usage, I have followed the instructions from
> <https://launchpad.net/~lttng/+archive/ppa> in order to install the
> lttng tool set in my ubuntu 11.10.
> After successful installation, i followed the getting started link on
> lttng.org <http://lttng.org/quickstart> in "root mode".

You may verify if kernel modules are loaded correctly. If not, then
there may be a problem while the installation.

lsmod | grep lttng

If not, you may try to load them and see if any error message occurs:

sudo modprobe lttng_tracer

Francis

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20120615/21eab633/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4476 bytes
Desc: Signature cryptographique S/MIME
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20120615/21eab633/attachment.bin>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [lttng-dev] Prerequsites for adding perf context
  2012-06-15  8:16 ` Francis Giraldeau
@ 2012-06-15  8:23   ` Oestman, Fredrik
  2012-06-15 15:13     ` Mathieu Desnoyers
  2012-06-15 13:12   ` [lttng-dev] lttng - ubuntu 11.10 - problem David Goulet
  1 sibling, 1 reply; 11+ messages in thread
From: Oestman, Fredrik @ 2012-06-15  8:23 UTC (permalink / raw)


Hi,


What exactly is needed on a system for

# lttng add-context -k -t perf:<something>

to work? Does perf have to be installed?

I have hw perfevents, but not perf, and get

hw perfevents: unable to reserve pmu


cheers,

Fredrik ?stman




^ permalink raw reply	[flat|nested] 11+ messages in thread

* [lttng-dev] lttng - ubuntu 11.10 - problem
  2012-06-15  8:16 ` Francis Giraldeau
  2012-06-15  8:23   ` [lttng-dev] Prerequsites for adding perf context Oestman, Fredrik
@ 2012-06-15 13:12   ` David Goulet
  2012-06-15 13:51     ` Matthew Khouzam
  2012-06-15 15:12     ` Mathieu Desnoyers
  1 sibling, 2 replies; 11+ messages in thread
From: David Goulet @ 2012-06-15 13:12 UTC (permalink / raw)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

In order to trace the kernel, you need the LTTng kernel modules available in
the package "lttng-modules-dkms". So make sure you have these three packages
installed:

# sudo apt-get install lttng-tools lttng-modules-dkms babeltrace

The error message you got indicates that there is simply no LTTng modules
loaded. Please make sure they are loaded and if the problem persist, let us know!

Thanks!
David

On 15/06/12 04:16 AM, Francis Giraldeau wrote:
> Le 2012-06-15 09:41, somanath sahoo a ?crit :
>> Hi,
>> 
>> As i am new to lttng usage, I have followed the instructions from 
>> <https://launchpad.net/~lttng/+archive/ppa> in order to install the lttng
>> tool set in my ubuntu 11.10. After successful installation, i followed
>> the getting started link on lttng.org <http://lttng.org/quickstart> in
>> "root mode".
> 
> You may verify if kernel modules are loaded correctly. If not, then there
> may be a problem while the installation.
> 
> lsmod | grep lttng
> 
> If not, you may try to load them and see if any error message occurs:
> 
> sudo modprobe lttng_tracer
> 
> Francis
> 
> 
> 
> _______________________________________________ lttng-dev mailing list 
> lttng-dev at lists.lttng.org 
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQEcBAEBAgAGBQJP2zTIAAoJEELoaioR9I02CVEH/1ripsIVxDQ2JRPNXs0TVWLD
5B/qf3oKTohuKCoKE7Q7ZLyo1A9WN0z9JFouVecEPD7MisdJqYufEXkUNbxHg2+y
9nVT8xF7gToLRBi/qC/hH0JN6AADJmqTVxYAvygv8qWNkLR3PSqguDhE5nM9vrtF
LJSEYlYQh0dktkBM9ESm0lrnbZO/AtXxQB4IbCQSwP1tsNmftEdZ24H8DN0/QWl9
niRT6XpBzogNJfQQOPFtJTFxpwKHiMQXdE78UtzzMBPZ9P57Go9jMgP+2FELFZl4
wcu+XMIF2Gx81AajfTkGAjPOczagqKzrgnMCduQaNgCI1hRoWOn7Yu1jTmA6Yxc=
=oy1n
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 11+ messages in thread

* [lttng-dev] lttng - ubuntu 11.10 - problem
  2012-06-15 13:12   ` [lttng-dev] lttng - ubuntu 11.10 - problem David Goulet
@ 2012-06-15 13:51     ` Matthew Khouzam
  2012-06-15 15:12     ` Mathieu Desnoyers
  1 sibling, 0 replies; 11+ messages in thread
From: Matthew Khouzam @ 2012-06-15 13:51 UTC (permalink / raw)


After, check that your session daemon is loaded too.
the following commands should return +- the following:
lsmod |grep lttng

lttng_probe_timer      15523  0
lttng_probe_statedump    15004  0
lttng_probe_signal     13567  0
lttng_probe_sched      16688  0
lttng_probe_kvm        16020  0
lttng_probe_irq        13728  0
lttng_probe_block      16630  0
lttng_types            12508  0
lttng_probe_lttng      12828  0
lttng_ring_buffer_metadata_mmap_client    13369  0
lttng_ring_buffer_client_mmap_overwrite    17622  0
lttng_ring_buffer_client_mmap_discard    17622  0
lttng_ring_buffer_metadata_client    13369  0
lttng_ring_buffer_client_overwrite    17622  0
lttng_ring_buffer_client_discard    17622  0
lttng_tracer          240715  14
lttng_probe_timer,lttng_probe_statedump,lttng_probe_signal,lttng_probe_sched,lttng_probe_kvm,lttng_probe_irq,lttng_probe_block,lttng_probe_lttng,lttng_ring_buffer_metadata_mmap_client,lttng_ring_buffer_client_mmap_overwrite,lttng_ring_buffer_client_mmap_discard,lttng_ring_buffer_metadata_client,lttng_ring_buffer_client_overwrite,lttng_ring_buffer_client_discard
lttng_kretprobes       13278  1 lttng_tracer
lttng_kprobes          12971  1 lttng_tracer
lttng_ftrace           13162  1 lttng_tracer
lttng_statedump        13903  1 lttng_tracer
lttng_lib_ring_buffer    46389  7
lttng_ring_buffer_metadata_mmap_client,lttng_ring_buffer_client_mmap_overwrite,lttng_ring_buffer_client_mmap_discard,lttng_ring_buffer_metadata_client,lttng_ring_buffer_client_overwrite,lttng_ring_buffer_client_discard,lttng_tracer

ps -aux |grep "ltt"

root      1123  0.0  0.0  47008   728 ?        Ssl  Jun14   0:00
lttng-sessiond

Hope this helps.
Matthew


On 12-06-15 09:12 AM, David Goulet wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> In order to trace the kernel, you need the LTTng kernel modules available in
> the package "lttng-modules-dkms". So make sure you have these three packages
> installed:
>
> # sudo apt-get install lttng-tools lttng-modules-dkms babeltrace
>
> The error message you got indicates that there is simply no LTTng modules
> loaded. Please make sure they are loaded and if the problem persist, let us know!
>
> Thanks!
> David
>
> On 15/06/12 04:16 AM, Francis Giraldeau wrote:
>> Le 2012-06-15 09:41, somanath sahoo a ?crit :
>>> Hi,
>>>
>>> As i am new to lttng usage, I have followed the instructions from 
>>> <https://launchpad.net/~lttng/+archive/ppa> in order to install the lttng
>>> tool set in my ubuntu 11.10. After successful installation, i followed
>>> the getting started link on lttng.org <http://lttng.org/quickstart> in
>>> "root mode".
>> You may verify if kernel modules are loaded correctly. If not, then there
>> may be a problem while the installation.
>>
>> lsmod | grep lttng
>>
>> If not, you may try to load them and see if any error message occurs:
>>
>> sudo modprobe lttng_tracer
>>
>> Francis
>>
>>
>>
>> _______________________________________________ lttng-dev mailing list 
>> lttng-dev at lists.lttng.org 
>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
>
> iQEcBAEBAgAGBQJP2zTIAAoJEELoaioR9I02CVEH/1ripsIVxDQ2JRPNXs0TVWLD
> 5B/qf3oKTohuKCoKE7Q7ZLyo1A9WN0z9JFouVecEPD7MisdJqYufEXkUNbxHg2+y
> 9nVT8xF7gToLRBi/qC/hH0JN6AADJmqTVxYAvygv8qWNkLR3PSqguDhE5nM9vrtF
> LJSEYlYQh0dktkBM9ESm0lrnbZO/AtXxQB4IbCQSwP1tsNmftEdZ24H8DN0/QWl9
> niRT6XpBzogNJfQQOPFtJTFxpwKHiMQXdE78UtzzMBPZ9P57Go9jMgP+2FELFZl4
> wcu+XMIF2Gx81AajfTkGAjPOczagqKzrgnMCduQaNgCI1hRoWOn7Yu1jTmA6Yxc=
> =oy1n
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev



^ permalink raw reply	[flat|nested] 11+ messages in thread

* [lttng-dev] lttng - ubuntu 11.10 - problem
  2012-06-15 13:12   ` [lttng-dev] lttng - ubuntu 11.10 - problem David Goulet
  2012-06-15 13:51     ` Matthew Khouzam
@ 2012-06-15 15:12     ` Mathieu Desnoyers
  2012-06-15 15:32       ` Alexandre Montplaisir
  1 sibling, 1 reply; 11+ messages in thread
From: Mathieu Desnoyers @ 2012-06-15 15:12 UTC (permalink / raw)


* David Goulet (david.goulet at polymtl.ca) wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> In order to trace the kernel, you need the LTTng kernel modules available in
> the package "lttng-modules-dkms". So make sure you have these three packages
> installed:
> 
> # sudo apt-get install lttng-tools lttng-modules-dkms babeltrace

hopefully lttng-modules-dkms issues "depmod -a" after the make
modules_install ?

Mathieu

> 
> The error message you got indicates that there is simply no LTTng modules
> loaded. Please make sure they are loaded and if the problem persist, let us know!
> 
> Thanks!
> David
> 
> On 15/06/12 04:16 AM, Francis Giraldeau wrote:
> > Le 2012-06-15 09:41, somanath sahoo a ?crit :
> >> Hi,
> >> 
> >> As i am new to lttng usage, I have followed the instructions from 
> >> <https://launchpad.net/~lttng/+archive/ppa> in order to install the lttng
> >> tool set in my ubuntu 11.10. After successful installation, i followed
> >> the getting started link on lttng.org <http://lttng.org/quickstart> in
> >> "root mode".
> > 
> > You may verify if kernel modules are loaded correctly. If not, then there
> > may be a problem while the installation.
> > 
> > lsmod | grep lttng
> > 
> > If not, you may try to load them and see if any error message occurs:
> > 
> > sudo modprobe lttng_tracer
> > 
> > Francis
> > 
> > 
> > 
> > _______________________________________________ lttng-dev mailing list 
> > lttng-dev at lists.lttng.org 
> > http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
> 
> iQEcBAEBAgAGBQJP2zTIAAoJEELoaioR9I02CVEH/1ripsIVxDQ2JRPNXs0TVWLD
> 5B/qf3oKTohuKCoKE7Q7ZLyo1A9WN0z9JFouVecEPD7MisdJqYufEXkUNbxHg2+y
> 9nVT8xF7gToLRBi/qC/hH0JN6AADJmqTVxYAvygv8qWNkLR3PSqguDhE5nM9vrtF
> LJSEYlYQh0dktkBM9ESm0lrnbZO/AtXxQB4IbCQSwP1tsNmftEdZ24H8DN0/QWl9
> niRT6XpBzogNJfQQOPFtJTFxpwKHiMQXdE78UtzzMBPZ9P57Go9jMgP+2FELFZl4
> wcu+XMIF2Gx81AajfTkGAjPOczagqKzrgnMCduQaNgCI1hRoWOn7Yu1jTmA6Yxc=
> =oy1n
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com



^ permalink raw reply	[flat|nested] 11+ messages in thread

* [lttng-dev] Prerequsites for adding perf context
  2012-06-15  8:23   ` [lttng-dev] Prerequsites for adding perf context Oestman, Fredrik
@ 2012-06-15 15:13     ` Mathieu Desnoyers
  0 siblings, 0 replies; 11+ messages in thread
From: Mathieu Desnoyers @ 2012-06-15 15:13 UTC (permalink / raw)


* Oestman, Fredrik (Fredrik_Oestman at mentor.com) wrote:
> Hi,
> 
> 
> What exactly is needed on a system for
> 
> # lttng add-context -k -t perf:<something>
> 
> to work? Does perf have to be installed?
> 
> I have hw perfevents, but not perf, and get
> 
> hw perfevents: unable to reserve pmu

CONFIG_PERF_EVENTS. And what version of kernel do you use ?

> 
> 
> cheers,
> 
> Fredrik ?stman
> 
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com



^ permalink raw reply	[flat|nested] 11+ messages in thread

* [lttng-dev] lttng - ubuntu 11.10 - problem
  2012-06-15 15:12     ` Mathieu Desnoyers
@ 2012-06-15 15:32       ` Alexandre Montplaisir
  0 siblings, 0 replies; 11+ messages in thread
From: Alexandre Montplaisir @ 2012-06-15 15:32 UTC (permalink / raw)


On 12-06-15 11:12 AM, Mathieu Desnoyers wrote:
> * David Goulet (david.goulet at polymtl.ca) wrote:
> Hi,
>
> In order to trace the kernel, you need the LTTng kernel modules
> available in
> the package "lttng-modules-dkms". So make sure you have these three
> packages
> installed:
>
> # sudo apt-get install lttng-tools lttng-modules-dkms babeltrace
>
> > hopefully lttng-modules-dkms issues "depmod -a" after the make
> > modules_install ?

Yeah it does, it runs it once at the end after all modules have been
compiled.

In Somanath's original email, there are two sessiond running, one as
root and one as the user. I'm curious as to how the user one got
started, perhaps the commands weren't executed as root somehow?


Cheers,
-- 
Alexandre Montplaisir
DORSAL lab,
?cole Polytechnique de Montr?al




^ permalink raw reply	[flat|nested] 11+ messages in thread

* [lttng-dev] lttng - ubuntu 11.10 - problem
  2012-06-18 13:42 ` Mathieu Desnoyers
@ 2012-06-18 14:35   ` Alexandre Montplaisir
  0 siblings, 0 replies; 11+ messages in thread
From: Alexandre Montplaisir @ 2012-06-18 14:35 UTC (permalink / raw)


On 12-06-18 09:42 AM, Mathieu Desnoyers wrote:
> * somanath sahoo (bapi_mvit2004 at yahoo.com) wrote:
>> Hi,
>>
>> I have tried to reinstall lttng-tools,  lttng-modules-dkms  and babeltrace. 
>>
>>
>> the reinstallation of lttng-tools and babeltrace has been successful. But reinstallation of lttng-modules-dkms has been failing. the log is provided below
>>
> [...]
>> The content of make.log is provided below : 
>>
>>
>> DKMS make.log for lttng-modules-2.0.0 for kernel 3.0.0-21-generic (i686)
>> Mon Jun 18 12:05:51 IST 2012
>> make: Entering directory `/usr/src/linux-headers-3.0.0-21-generic'
>>   CC [M]  /var/lib/dkms/lttng-modules/2.0.0/build/lttng-ring-buffer-client-discard.o
>>   CC [M]  /var/lib/dkms/lttng-modules/2.0.0/build/lttng-ring-buffer-client-overwrite.o
>>   CC [M]  /var/lib/dkms/lttng-modules/2.0.0/build/lttng-ring-buffer-metadata-client.o
>>   CC [M]  /var/lib/dkms/lttng-modules/2.0.0/build/lttng-ring-buffer-client-mmap-discard.o
>>   CC [M]  /var/lib/dkms/lttng-modules/2.0.0/build/lttng-ring-buffer-client-mmap-overwrite.o
>>   CC [M]  /var/lib/dkms/lttng-modules/2.0.0/build/lttng-ring-buffer-metadata-mmap-client.o
>>   CC [M]  /var/lib/dkms/lttng-modules/2.0.0/build/lttng-statedump-impl.o
>>   CC [M]  /var/lib/dkms/lttng-modules/2.0.0/build/wrapper/irqdesc.o
>>   CC [M]  /var/lib/dkms/lttng-modules/2.0.0/build/lttng-events.o
>>   CC [M]  /var/lib/dkms/lttng-modules/2.0.0/build/lttng-abi.o
>>   CC [M]  /var/lib/dkms/lttng-modules/2.0.0/build/lttng-probes.o
>>   CC [M]  /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context.o
>>   CC [M]  /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-pid.o
>>   CC [M]  /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-procname.o
>>   CC [M]  /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-prio.o
>>   CC [M]  /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-nice.o
>>   CC [M]  /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-vpid.o
>>   CC [M]  /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-tid.o
>>   CC [M]  /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-vtid.o
>>   CC [M]  /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-ppid.o
>>   CC [M]  /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-vppid.o
>>   CC [M]  /var/lib/dkms/lttng-modules/2.0.0/build/lttng-calibrate.o
>>   CC [M]  /var/lib/dkms/lttng-modules/2.0.0/build/wrapper/random.o
>>   CC [M]  /var/lib/dkms/lttng-modules/2.0.0/build/lttng-syscalls.o
>> /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
>> /var/lib/dkms/lttng-modules/2.0.0/build/lttng-syscalls.c:33:1: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{? token
>> make[1]: *** [/var/lib/dkms/lttng-modules/2.0.0/build/lttng-syscalls.o] Error 1
>> make: *** [_module_/var/lib/dkms/lttng-modules/2.0.0/build] Error 2
>> make: Leaving directory `/usr/src/linux-headers-3.0.0-21-generic'
> It looks like the lttng-modules DKMS package is out of date (2.0.0).
> Alex, can you update it ?

Yeah, we stopped bothering about the Oneiric packages since Precise came
out with lttng-modules included ;)

Still it's strange, because 2.0.0 used to install fine on Oneiric...
I'll try to find some time today to push an update, and see if it helps.


Cheers,

-- 
Alexandre Montplaisir
DORSAL lab,
?cole Polytechnique de Montr?al




^ permalink raw reply	[flat|nested] 11+ messages in thread

* [lttng-dev] lttng - ubuntu 11.10 - problem
  2012-06-18  6:59 somanath sahoo
@ 2012-06-18 13:42 ` Mathieu Desnoyers
  2012-06-18 14:35   ` Alexandre Montplaisir
  0 siblings, 1 reply; 11+ messages in thread
From: Mathieu Desnoyers @ 2012-06-18 13:42 UTC (permalink / raw)


* somanath sahoo (bapi_mvit2004 at yahoo.com) wrote:
> Hi,
> 
> I have tried to reinstall lttng-tools,? lttng-modules-dkms? and babeltrace. 
> 
> 
> the reinstallation of lttng-tools and babeltrace has been successful. But reinstallation of lttng-modules-dkms has been failing. the log is provided below
> 
[...]
> The content of make.log is provided below : 
> 
> 
> DKMS make.log for lttng-modules-2.0.0 for kernel 3.0.0-21-generic (i686)
> Mon Jun 18 12:05:51 IST 2012
> make: Entering directory `/usr/src/linux-headers-3.0.0-21-generic'
> ? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-ring-buffer-client-discard.o
> ? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-ring-buffer-client-overwrite.o
> ? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-ring-buffer-metadata-client.o
> ? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-ring-buffer-client-mmap-discard.o
> ? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-ring-buffer-client-mmap-overwrite.o
> ? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-ring-buffer-metadata-mmap-client.o
> ? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-statedump-impl.o
> ? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/wrapper/irqdesc.o
> ? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-events.o
> ? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-abi.o
> ? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-probes.o
> ? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context.o
> ? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-pid.o
> ? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-procname.o
> ? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-prio.o
> ? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-nice.o
> ? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-vpid.o
> ? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-tid.o
> ? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-vtid.o
> ? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-ppid.o
> ? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-vppid.o
> ? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-calibrate.o
> ? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/wrapper/random.o
> ? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-syscalls.o
> /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
> /var/lib/dkms/lttng-modules/2.0.0/build/lttng-syscalls.c:33:1: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{? token
> make[1]: *** [/var/lib/dkms/lttng-modules/2.0.0/build/lttng-syscalls.o] Error 1
> make: *** [_module_/var/lib/dkms/lttng-modules/2.0.0/build] Error 2
> make: Leaving directory `/usr/src/linux-headers-3.0.0-21-generic'

It looks like the lttng-modules DKMS package is out of date (2.0.0).
Alex, can you update it ?

Thanks,

Mathieu

> 
> ------------------------- End of make.log -----------------
> 
> 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.
> 
> 
> 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.
> 
> 
> 
> 
> Thanks & Regards,
> Somanath
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Fri, 15 Jun 2012 09:12:40 -0400
> From: David Goulet <david.goulet@polymtl.ca>
> To: Francis Giraldeau <francis.giraldeau at gmail.com>
> Cc: "lttng-dev at lists.lttng.org" <lttng-dev at lists.lttng.org>
> Subject: Re: [lttng-dev] lttng - ubuntu 11.10 - problem
> Message-ID: <4FDB34C8.7000505 at polymtl.ca>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> In order to trace the kernel, you need the LTTng kernel modules available in
> the package "lttng-modules-dkms". So make sure you have these three packages
> installed:
> 
> # sudo apt-get install lttng-tools lttng-modules-dkms babeltrace
> 
> The error message you got indicates that there is simply no LTTng modules
> loaded. Please make sure they are loaded and if the problem persist, let us know!
> 
> Thanks!
> David
> 
> On 15/06/12 04:16 AM, Francis Giraldeau wrote:
> > Le 2012-06-15 09:41, somanath sahoo a ?crit :
> >> Hi,
> >> 
> >> As i am new to lttng usage, I have followed the instructions from 
> >> <https://launchpad.net/~lttng/+archive/ppa> in order to install the lttng
> >> tool set in my ubuntu 11.10. After successful installation, i followed
> >> the getting started link on lttng.org <http://lttng.org/quickstart> in
> >> "root mode".
> > 
> > You may verify if kernel modules are loaded correctly. If not, then there
> > may be a problem while the installation.
> > 
> > lsmod | grep lttng
> > 
> > If not, you may try to load them and see if any error message occurs:
> > 
> > sudo modprobe lttng_tracer
> > 
> > Francis
> > 
> > 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com



^ permalink raw reply	[flat|nested] 11+ messages in thread

* [lttng-dev] lttng - ubuntu 11.10 - problem
@ 2012-06-18  6:59 somanath sahoo
  2012-06-18 13:42 ` Mathieu Desnoyers
  0 siblings, 1 reply; 11+ messages in thread
From: somanath sahoo @ 2012-06-18  6:59 UTC (permalink / raw)


Hi,

I have tried to reinstall lttng-tools,? lttng-modules-dkms? and babeltrace. 


the reinstallation of lttng-tools and babeltrace has been successful. But reinstallation of lttng-modules-dkms has been failing. the log is provided below

-------------------------start of log--------------

# apt-get install --reinstall lttng-modules-dkms
Reading package lists... Done
Building dependency tree?????? 
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/198 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 199394 files and directories currently installed.)
Preparing to replace lttng-modules-dkms 2.0.0-0ubuntu2~oneiric1 (using .../lttng-modules-dkms_2.0.0-0ubuntu2~oneiric1_all.deb) ...

------------------------------
Deleting module version: 2.0.0
completely from the DKMS tree.
------------------------------
Done.
Unpacking replacement lttng-modules-dkms ...
Setting up lttng-modules-dkms (2.0.0-0ubuntu2~oneiric1) ...
Loading new lttng-modules-2.0.0 DKMS files...
Building only for 3.0.0-21-generic
Building initial module for 3.0.0-21-generic
Error! Bad return status for module build on kernel: 3.0.0-21-generic (i686)
Consult /var/lib/dkms/lttng-modules/2.0.0/build/make.log for more information.

------------------------------ END OF LOG -------------------------

The content of make.log is provided below : 


DKMS make.log for lttng-modules-2.0.0 for kernel 3.0.0-21-generic (i686)
Mon Jun 18 12:05:51 IST 2012
make: Entering directory `/usr/src/linux-headers-3.0.0-21-generic'
? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-ring-buffer-client-discard.o
? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-ring-buffer-client-overwrite.o
? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-ring-buffer-metadata-client.o
? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-ring-buffer-client-mmap-discard.o
? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-ring-buffer-client-mmap-overwrite.o
? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-ring-buffer-metadata-mmap-client.o
? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-statedump-impl.o
? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/wrapper/irqdesc.o
? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-events.o
? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-abi.o
? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-probes.o
? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context.o
? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-pid.o
? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-procname.o
? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-prio.o
? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-nice.o
? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-vpid.o
? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-tid.o
? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-vtid.o
? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-ppid.o
? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-context-vppid.o
? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-calibrate.o
? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/wrapper/random.o
? CC [M]? /var/lib/dkms/lttng-modules/2.0.0/build/lttng-syscalls.o
/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
/var/lib/dkms/lttng-modules/2.0.0/build/lttng-syscalls.c:33:1: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?{? token
make[1]: *** [/var/lib/dkms/lttng-modules/2.0.0/build/lttng-syscalls.o] Error 1
make: *** [_module_/var/lib/dkms/lttng-modules/2.0.0/build] Error 2
make: Leaving directory `/usr/src/linux-headers-3.0.0-21-generic'

------------------------- End of make.log -----------------

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.


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.




Thanks & Regards,
Somanath


------------------------------

Message: 3
Date: Fri, 15 Jun 2012 09:12:40 -0400
From: David Goulet <david.goulet@polymtl.ca>
To: Francis Giraldeau <francis.giraldeau at gmail.com>
Cc: "lttng-dev at lists.lttng.org" <lttng-dev at lists.lttng.org>
Subject: Re: [lttng-dev] lttng - ubuntu 11.10 - problem
Message-ID: <4FDB34C8.7000505 at polymtl.ca>
Content-Type: text/plain; charset=ISO-8859-1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

In order to trace the kernel, you need the LTTng kernel modules available in
the package "lttng-modules-dkms". So make sure you have these three packages
installed:

# sudo apt-get install lttng-tools lttng-modules-dkms babeltrace

The error message you got indicates that there is simply no LTTng modules
loaded. Please make sure they are loaded and if the problem persist, let us know!

Thanks!
David

On 15/06/12 04:16 AM, Francis Giraldeau wrote:
> Le 2012-06-15 09:41, somanath sahoo a ?crit :
>> Hi,
>> 
>> As i am new to lttng usage, I have followed the instructions from 
>> <https://launchpad.net/~lttng/+archive/ppa> in order to install the lttng
>> tool set in my ubuntu 11.10. After successful installation, i followed
>> the getting started link on lttng.org <http://lttng.org/quickstart> in
>> "root mode".
> 
> You may verify if kernel modules are loaded correctly. If not, then there
> may be a problem while the installation.
> 
> lsmod | grep lttng
> 
> If not, you may try to load them and see if any error message occurs:
> 
> sudo modprobe lttng_tracer
> 
> Francis
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20120617/f20c4724/attachment-0001.html>


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-06-18 14:35 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-15  7:41 [lttng-dev] lttng - ubuntu 11.10 - problem somanath sahoo
2012-06-15  8:16 ` Francis Giraldeau
2012-06-15  8:23   ` [lttng-dev] Prerequsites for adding perf context Oestman, Fredrik
2012-06-15 15:13     ` Mathieu Desnoyers
2012-06-15 13:12   ` [lttng-dev] lttng - ubuntu 11.10 - problem David Goulet
2012-06-15 13:51     ` Matthew Khouzam
2012-06-15 15:12     ` Mathieu Desnoyers
2012-06-15 15:32       ` Alexandre Montplaisir
2012-06-18  6:59 somanath sahoo
2012-06-18 13:42 ` Mathieu Desnoyers
2012-06-18 14:35   ` Alexandre Montplaisir

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox