As mentioned earlier in the manual, several tools exist that enhance your development experience. These tools are aids in developing and debugging applications and images. You can run these user-space tools from within the Eclipse IDE through the "YoctoTools" menu.
Once you pick a tool, you need to configure it for the remote target. Every tool needs to have the connection configured. You must select an existing TCF-based RSE connection to the remote target. If one does not exist, click "New" to create one.
Here are some specifics about the remote tools:
OProfile
:
Selecting this tool causes the
oprofile-server
on the remote
target to launch on the local host machine.
The oprofile-viewer
must be
installed on the local host machine and the
oprofile-server
must be installed
on the remote target, respectively, in order to use.
You must compile and install the
oprofile-viewer
from the source
code on your local host machine.
Furthermore, in order to convert the target's sample
format data into a form that the host can use, you must
have OProfile version 0.9.4 or greater installed on the
host.
You can locate both the viewer and server from http://git.yoctoproject.org/cgit/cgit.cgi/oprofileui/. You can also find more information on setting up and using this tool in the "OProfile" section of the Yocto Project Profiling and Tracing Manual.
oprofile-server
is
installed by default on the
core-image-sato-sdk
image.
Lttng2.0 ust trace import
:
Selecting this tool transfers the remote target's
Lttng
tracing data back to the
local host machine and uses the Lttng Eclipse plug-in
to graphically display the output.
For information on how to use Lttng to trace an
application,
see http://lttng.org/documentation
and the
"LTTng (Linux Trace Toolkit, next generation)"
section, which is in the Yocto Project Profiling and
Tracing Manual.
Lttng-user space (legacy)
tool.
This tool no longer has any upstream support.
Before you use the
Lttng2.0 ust trace import
tool,
you need to setup the Lttng Eclipse plug-in and create a
Tracing project.
Do the following:
Select "Open Perspective" from the "Window" menu and then select "Tracing".
Click "OK" to change the Eclipse perspective into the Tracing perspective.
Create a new Tracing project by selecting "Project" from the "File -> New" menu.
Choose "Tracing Project" from the "Tracing" menu.
Generate your tracing data on the remote target.
Select "Lttng2.0 ust trace import" from the "Yocto Project Tools" menu to start the data import process.
Specify your remote connection name.
For the Ust directory path, specify
the location of your remote tracing data.
Make sure the location ends with
ust
(e.g.
/usr/mysession/ust
).
Click "OK" to complete the import process. The data is now in the local tracing project you created.
Right click on the data and then use the menu to Select "Generic CTF Trace" from the "Trace Type... -> Common Trace Format" menu to map the tracing type.
Right click the mouse and select "Open" to bring up the Eclipse Lttng Trace Viewer so you view the tracing data.
PowerTOP
:
Selecting this tool runs PowerTOP on the remote target
machine and displays the results in a new view called
PowerTOP.
The "Time to gather data(sec):" field is the time passed in seconds before data is gathered from the remote target for analysis.
The "show pids in wakeups list:" field corresponds
to the -p
argument passed to
PowerTOP
.
LatencyTOP and Perf
:
LatencyTOP identifies system latency, while
Perf monitors the system's performance counter
registers.
Selecting either of these tools causes an RSE terminal
view to appear from which you can run the tools.
Both tools refresh the entire screen to display results
while they run.
For more information on setting up and using
perf
, see the
"perf"
section in the Yocto Project Profiling and Tracing
Manual.