Bug 7054 - Need remote profiler (sysprof or eclipse?)
Summary: Need remote profiler (sysprof or eclipse?)
Status: CLOSED WONTFIX
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 1.8
Hardware: x86 Multiple
: Medium normal
Target Milestone: Future
Assignee: Unassigned
QA Contact: Apoorv
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-12-09 15:28 UTC by Mihail Stanciu
Modified: 2019-05-23 15:06 UTC (History)
12 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mihail Stanciu 2014-12-09 15:28:29 UTC
Tested on commit: b813bdebb36501500e86fea5f7e15b4b15ea0902
Images tested: qemux86, qemux86-64
Image type: core-image-sato-sdk

Steps to reproduce:
1. download image from http://autobuilder.yoctoproject.org/pub/releases/yocto-1.8M1/machines/qemu/qemux86/core-image-sato-sdk-qemux86.ext3
2. start qemu emulator using the image downloaded (will also require a kernel file and environment set-up)
3. once qemu boots up, open a new terminal window and issue command "opcontrol"

Expected result:
You should receive the opcontrol usage instructions.

Observed result:
"command not found" error message is issued.


This impacts the "oprofile" linux tool in the Eclipse plugin, which now fails.

I am unsure about the classification, though. This feels like it's an issue with qemu packages, but the only impact noted is for the Eclipse plugin, it seems.
Comment 1 Richard Purdie 2014-12-11 15:47:55 UTC
The issue is that opcontrol was removed in the upstream oprofile project in favour of using perf instead. The UIs therefore need to adapt to the changes in oprofile, oprofile is still installed in the images.
Comment 2 Richard Purdie 2014-12-11 15:58:48 UTC
The issue here is oprofileui is still using opcontrol and needs updating to use the perf inferface to control the data collection. This is problem something Tom or RP have the experience to resolve.
Comment 3 Alexandru Georgescu 2014-12-11 16:51:52 UTC
Changing the documentation to Undecided since the results displayed in OprofileUi might change with the new functionalities. This may imply changing the manual and/or the tracing&profiling wiki: https://wiki.yoctoproject.org/wiki/Tracing_and_Profiling
Comment 4 Richard Purdie 2015-02-02 13:49:49 UTC
Looking at the changes, opcontrol is gone and we need to use operf. The difference is that operf remains running the whole time data is collected, the opcontrol script used to handle this for us.

opserver therefore likely needs to use g_spawn_async instead of g_spawn_sync and the config command needs to just save data into the server. The ideal case of being able to quickly turn on/off profiling with low overhead (e.g. with a signal) no longer seems possible.
Comment 5 Alexandru Georgescu 2015-04-09 15:34:51 UTC
found during 1.8_M4.rc2 testing
fido:33558eacc8a2d3dce3396b9ab2fd0773ac5076bc
Comment 6 Ross Burton 2015-05-31 20:30:26 UTC
For future reference, RP started hacking some fixes at http://www.rpsys.net/oprofileui.patch before realising just how much work is needed.
Comment 7 Ross Burton 2015-06-22 09:57:25 UTC
Propose to defer this to M2.
Comment 8 Alexandru Georgescu 2016-02-04 09:57:34 UTC
seems that the issue still exists in YP 2.1_M2.rc1
master/3d2c0f5902cacf9d8544bf263b51ef0dd1a7218c
Comment 9 Ross Burton 2016-07-25 21:14:40 UTC
Porting and updating oprofileui is likely wasted time.  sysprof has been taken over by the GNOME Builder maintainer (Christian Herbert) so should have a good future and shouldn't need too much engineering to support some sort of remote connection model.

Alternatively, we could test and support the perf support in Eclipse, if that has remote support (or write it if required).  Tim has been talking to the Eclipse people so I've CCd him for his opinion.
Comment 10 Tim Orling 2016-07-25 22:33:30 UTC
Thanks for the reminder to test oprofile and other Linux Tools. Especially the remote parts :) I am establishing good connections in the community, so if we need to upstream patches I expect to find a workable solution.
Comment 11 Jussi Kukkonen 2017-05-16 08:20:45 UTC
Tim, did you get anywhere with oprofile?

Also, does anyone currently have a good summary of the situation in 2017?
 * is this still an issue we need to solve?
 * is eclipse relevant or should I touch base with gnome-builder folks?
Comment 12 brian avery 2017-05-21 01:35:04 UTC
We have restarted working on a plugin crops/eclipse-crops to allow building and qemu in containers. Haven't dealt with profiling yet.
Comment 13 Ross Burton 2017-09-11 16:18:13 UTC
Reassigning Jussi's bugs.
Comment 14 Armin Kuster 2019-05-23 15:00:15 UTC
eclipse has been dropped.
Comment 15 Armin Kuster 2019-05-23 15:06:57 UTC
closing