lttng_2.0-eclipse-juno : Connection to a Remote Host : Unable to list kernel events
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi,
to be able to trace the kernel the global session daemon has to be running, that means it has to be running as root. To start the global session daemon login to your node and then execute sudo lttng list -k
Then you are able to trace the kernel and UST using your user login. However you have to make sure that your user id is part of the user group tracing.
Once this is setup the tracer control with Eclipse should work, too.
Best Regards
Bernd
Quoted 34 lines · somanath sahoo
Hi,
I am running eclipse c/c++ juno in ubuntu 12.04 which is running inside Virtualbox VM.
Issue : Tree node of remote host is not being created in the cotrol view panel of eclipse while i am successfully connected to remote host (in this case my ubuntu 12.04).
I am to trying use "lttng tracer control" feature of eclipse juno by following this link --
http://wiki.eclipse.org/index.php/Linux_Tools_Project/LTTng2/User_Guide#LTTng_Tracer_ControlError description : when eclipse is successfully connected to remote host, then eclipse is trying to run "lttng list -k" to listing the kernel event and its getting failed.
But whereas i am able to run lttng commands
in my remote host (in ubuntu 12.04) successfully.The error message from eclipse is provided below -
----
List sessions failed
Command failed! Command: lttng list -k
Return Value: 79
Error: Unable to list kernel events------
I have attached screenshot of this error. please find the attachment.Please guide me to resolve this problem.
Quoted 9 lines
Thanks & Regards,
Somanath_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
A message that is not in the archive (sent off-list or not yet received): CAG5-hcMDzStCrHp0GpZNZTZfVHZ7+2xDuytSsnZnZmCgpA3Lsw@mail.gmail.com
Hi Bernd,
Thanks for your response.
I did follow the procedure as you mentioned.
Still the same problem is persistent.
after the eclipse failed in "lttng list -k" , i did "ps -ef | grep lttng " in my remote host (ubuntu 12.04). Log is provided below
---
root 558 1 0 10:31 ? 00:00:00 lttng-sessiond
somanath 2949 1 4 10:49 ? 00:00:30 /home/somanath/lttng_som/eclipse/eclipse somanath 3242 1 0 10:50 ? 00:00:00 lttng-sessiond --sig-parent --quiet somanath 3539 3251 0 11:00 pts/3 00:00:00 grep --color=auto lttng
---
but i am able to execute all the lttng features in the remote host successfully. i don't know why eclipse is not able to do that.
However i want to know how to make sure my user id present in the tracing group ? is there any command to list or include the users into the "tracing" group ? please enlightened on this.
Kindly let me know whether i need to follow something else to resolve this eclipse tracing control problem.
Thanks for your need-fullness.
Best Regards,
Somanath
________________________________
From: Bernd Hufmann <[email protected]>
To: somanath sahoo <[email protected]>
Cc: "[email protected]" <[email protected]>
Sent: Wednesday, July 4, 2012 6:18 PM
Subject: Re: [lttng-dev] lttng_2.0-eclipse-juno : Connection to a Remote Host : Unable to list kernel events
Hi,
to be able to trace the kernel the global session daemon has to be running, that means it has to be running as root. To start the global session daemon login to your node and then execute sudo lttng list -k Then you are able to trace the kernel and UST using your user login. However you have to make sure that your user id is part of the user group tracing.
Once this is setup the tracer control with Eclipse should work, too.
Best Regards
Bernd
On 2012-07-04 4:10 AM, "somanath sahoo" <[email protected]> wrote:
Hi,
Quoted 41 lines
I am running eclipse c/c++ juno in ubuntu 12.04 which is running inside VirtualboxVM.
Issue : Tree node of remote host is not being created in the cotrol view panel of eclipse while i am successfully connected to remote host (in this case my ubuntu 12.04).
I am to trying use "lttng tracer control" feature of eclipse juno by following this link -- http://wiki.eclipse.org/index.php/Linux_Tools_Project/LTTng2/User_Guide#LTTng_Tracer_Control
Error description : when eclipse is successfully connected to remote host, then eclipse is trying to run "lttng list -k" to listing the kernel event and its getting failed. But whereas i am able to run lttng commands in my remote host (in ubuntu 12.04) successfully.
The error message from eclipse is provided below -
----
List sessions failed
Command failed! Command: lttng list -k
Return Value: 79
Error: Unable to list kernel events------
I have attached screenshot of this error. please find the attachment.
Please guide me to resolve this problem.
Quoted 9 lines
Thanks & Regards,
Somanath_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 1 line · somanath sahoo
However i want to know how to make sure my user id present in the tracing group ? is there any command to list or include the users into the "tracing" group ? please enlightened on this.
You can use
$ cat /etc/group | grep tracing
It will list the users that are in the tracing group.
Cheers,
Alex
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Alex,
your reponse is much more appeciated.
my user id was not present in tracing group in /etc/group.
Now eclipse-remote-control is working great after addition of my user id into the tracing group.
Thanks.
Warm Regards,
Somanath
________________________________
From: Alexandre Montplaisir <[email protected]>
To: somanath sahoo <[email protected]>
Cc: "[email protected]" <[email protected]>
Sent: Thursday, July 5, 2012 7:59 PM
Subject: Re: [lttng-dev] lttng_2.0-eclipse-juno : Connection to a Remote Host : Unable to list kernel events
Quoted 1 line · somanath sahoo
However i want to know how to make sure my user id present in the tracing group ? is there any command to list or include the users into the "tracing" group ? please enlightened on this.
You can use
$ cat /etc/group | grep tracing
It will list the users that are in the tracing group.
Cheers,
Alex
_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev