~ubuntu-branches/ubuntu/trusty/eclipse-linuxtools/trusty

« back to all changes in this revision

Viewing changes to oprofile/org.eclipse.linuxtools.oprofile.doc/Linux_Tools_Project/OProfile/User_Guide/Remote-OProfile.html

  • Committer: Package Import Robot
  • Author(s): tony mancill
  • Date: 2013-05-13 21:43:22 UTC
  • mfrom: (1.2.1) (2.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20130513214322-6frgd9du1n0w2uo7
Tags: 1.2.1-1
* Team upload.
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
2
<html xmlns="http://www.w3.org/1999/xhtml">
 
3
        <head>
 
4
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
 
5
                <title>OProfile User Guide - Remote OProfile</title>
 
6
                <link type="text/css" rel="stylesheet" href="../../../book.css"/>
 
7
        </head>
 
8
        <body>
 
9
                <table class="navigation" style="width: 100%;" border="0" summary="navigation">
 
10
                        <tr>
 
11
                                <th style="width: 100%" align="center" colspan="3">Remote OProfile</th>
 
12
                        </tr>
 
13
                        <tr>
 
14
                                <td style="width: 20%" align="left">
 
15
                                        <a href="OProfile-View.html" title="OProfile View">
 
16
                                                <img alt="Previous" border="0" src="../../../images/prev.gif"/>
 
17
                                        </a>
 
18
                                </td>
 
19
                                <td style="width: 60%" align="center"></td>
 
20
                                <td style="width: 20%" align="right">
 
21
                                        <a href="Example-Project.html" title="Example Project">
 
22
                                                <img alt="Next" border="0" src="../../../images/next.gif"/>
 
23
                                        </a>
 
24
                                </td>
 
25
                        </tr>
 
26
                        <tr>
 
27
                                <td style="width: 20%" align="left" valign="top">OProfile View</td>
 
28
                                <td style="width: 60%" align="center"></td>
 
29
                                <td style="width: 20%" align="right" valign="top">Example Project</td>
 
30
                        </tr>
 
31
                </table><hr/>
 
32
                <h1 id="Remote_OProfile">Remote OProfile</h1>
 
33
                <p>The OProfile plug-in allows profiling a project stored in a remote machine. This can be particularly useful when developing an application for a different architecture. </p>
 
34
                <h2 id="Set-up">Set-up</h2>
 
35
                <p>The remote OProfile plug-in doesn't have installation scripts, but requires some setup in the remote machine. First, the remote machine's user must be able to run OProfile as root. For this, log in the remote machine as root and edit the /etc/sudoers file to add the following line: </p>
 
36
                <pre>&lt;user&gt; ALL=(ALL) NOPASSWD: &lt;linux-tools-path&gt;/opcontrol
 
37
</pre>
 
38
                <p>Where: </p>
 
39
                <ul>
 
40
                        <li>
 
41
                                <b>&lt;user&gt;</b> - Remote machine's user 
 
42
                        </li>
 
43
                        <li>
 
44
                                <b>&lt;linux-tools-path&gt;</b> - Path for linux tools set for the project. The default is /usr/bin. This path can be modified by right-clicking the remote project, clicking in "Properties" and choosing the "Linux Tools Path" tab.
 
45
                        </li>
 
46
                </ul>
 
47
                <p>Also make sure that following line is not present or commented out: </p>
 
48
                <pre>Defaults       requiretty
 
49
</pre>
 
50
                <p>This is necessary for running a remote command using sudo. </p>
 
51
                <h2 id="Launching_A_Remote_Profile">Launching A Remote Profile</h2>
 
52
                <p>To run OProfile remotely, right-click the project and navigate to "Profile As", then to "Profile Configurations". (Note: there's no One-click launch for remote OProfile). In the new window, double-click the Profile with OProfile (remote) profile configuration. </p>
 
53
                <p>In the main tab, choose the binary that will be profiled by clicking the "Browse" button under "C/C++ executable".</p>
 
54
                <p>
 
55
                        <img border="0" src="images/Screenshot-remote-oprofile.png"/> 
 
56
                </p>
 
57
                <p>The same 
 
58
                        <a href="Profiling-Configuration.html#Event_Configuration">Event Configuration</a> Event Configuration options for regular OProfile apply for remote OProfile as well. 
 
59
                </p>
 
60
                <p>After configuring the profile, click the Profile button to launch the profile. The same 
 
61
                        <a href="OProfile-View.html#OProfile_View">OProfile View</a> as the local one will show the results.
 
62
                </p><hr/>
 
63
                <table class="navigation" style="width: 100%;" border="0" summary="navigation">
 
64
                        <tr>
 
65
                                <td style="width: 20%" align="left">
 
66
                                        <a href="OProfile-View.html" title="OProfile View">
 
67
                                                <img alt="Previous" border="0" src="../../../images/prev.gif"/>
 
68
                                        </a>
 
69
                                </td>
 
70
                                <td style="width: 60%" align="center">
 
71
                                        <a href="User-Guide.html" title="OProfile User Guide">
 
72
                                                <img alt="OProfile User Guide" border="0" src="../../../images/home.gif"/>
 
73
                                        </a>
 
74
                                </td>
 
75
                                <td style="width: 20%" align="right">
 
76
                                        <a href="Example-Project.html" title="Example Project">
 
77
                                                <img alt="Next" border="0" src="../../../images/next.gif"/>
 
78
                                        </a>
 
79
                                </td>
 
80
                        </tr>
 
81
                        <tr>
 
82
                                <td style="width: 20%" align="left" valign="top">OProfile View</td>
 
83
                                <td style="width: 60%" align="center"></td>
 
84
                                <td style="width: 20%" align="right" valign="top">Example Project</td>
 
85
                        </tr>
 
86
                </table>
 
87
        </body>
 
88
</html>
 
 
b'\\ No newline at end of file'