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">
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"/>
9
<table class="navigation" style="width: 100%;" border="0" summary="navigation">
11
<th style="width: 100%" align="center" colspan="3">Remote OProfile</th>
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"/>
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"/>
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>
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><user> ALL=(ALL) NOPASSWD: <linux-tools-path>/opcontrol
41
<b><user></b> - Remote machine's user
44
<b><linux-tools-path></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.
47
<p>Also make sure that following line is not present or commented out: </p>
48
<pre>Defaults requiretty
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>
55
<img border="0" src="images/Screenshot-remote-oprofile.png"/>
58
<a href="Profiling-Configuration.html#Event_Configuration">Event Configuration</a> Event Configuration options for regular OProfile apply for remote OProfile as well.
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.
63
<table class="navigation" style="width: 100%;" border="0" summary="navigation">
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"/>
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"/>
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"/>
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>
b'\\ No newline at end of file'