3.6.2.4. Collecting and viewing a trace in Eclipse

Note

This section on collecting traces remotely doesn't currently work because of Eclipse 'RSE' connectivity problems. Manually tracing on the target, copying the trace files to the host, and viewing the trace in Eclipse on the host as outlined in previous steps does work however - please use the manual steps outlined above to view traces in Eclipse.

In order to trace a remote target, you also need to add a 'tracing' group on the target and connect as a user who's part of that group e.g:

     # adduser tomz
     # groupadd -r tracing
     # usermod -a -G tracing tomz
                

  1. First, start eclipse and open the 'LTTng Kernel' perspective by selecting the following menu item:

         Window | Open Perspective | Other...
                             
  2. In the dialog box that opens, select 'LTTng Kernel' from the list.

  3. Back at the main menu, select the following menu item:

         File | New | Project...
                            
  4. In the dialog box that opens, select the 'Tracing | Tracing Project' wizard and press 'Next>'.

  5. Give the project a name and press 'Finish'. That should result in an entry in the 'Project' subwindow.

  6. In the 'Control' subwindow just below it, press 'New Connection'.

  7. Add a new connection, giving it the hostname or IP address of the target system.

  8. Provide the username and password of a qualified user (a member of the 'tracing' group) or root account on the target system.

  9. Provide appropriate answers to whatever else is asked for e.g. 'secure storage password' can be anything you want. If you get an 'RSE Error' it may be due to proxies. It may be possible to get around the problem by changing the following setting:

         Window | Preferences | Network Connections
                            

    Switch 'Active Provider' to 'Direct'