<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>7054</bug_id>
          
          <creation_ts>2014-12-09 15:28:29 +0000</creation_ts>
          <short_desc>Need remote profiler (sysprof or eclipse?)</short_desc>
          <delta_ts>2019-05-23 15:06:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>1.8</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mihail Stanciu">stanciux.mihail</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>brian.avery</cc>
    
    <cc>ioanax.grigoropol</cc>
    
    <cc>jose.perez.carranza</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</cc>
    
    <cc>tim.orling</cc>
    
    <cc>yp.ep.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          <qa_contact name="Apoorv">apoorv.sangal</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>47464</commentid>
    <comment_count>0</comment_count>
    <who name="Mihail Stanciu">stanciux.mihail</who>
    <bug_when>2014-12-09 15:28:29 +0000</bug_when>
    <thetext>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 &quot;opcontrol&quot;

Expected result:
You should receive the opcontrol usage instructions.

Observed result:
&quot;command not found&quot; error message is issued.


This impacts the &quot;oprofile&quot; linux tool in the Eclipse plugin, which now fails.

I am unsure about the classification, though. This feels like it&apos;s an issue with qemu packages, but the only impact noted is for the Eclipse plugin, it seems.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47497</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-12-11 15:47:55 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47498</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-12-11 15:58:48 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47521</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2014-12-11 16:51:52 +0000</bug_when>
    <thetext>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&amp;profiling wiki: https://wiki.yoctoproject.org/wiki/Tracing_and_Profiling</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48478</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2015-02-02 13:49:49 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50196</commentid>
    <comment_count>5</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2015-04-09 15:34:51 +0000</bug_when>
    <thetext>found during 1.8_M4.rc2 testing
fido:33558eacc8a2d3dce3396b9ab2fd0773ac5076bc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51370</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-05-31 20:30:26 +0000</bug_when>
    <thetext>For future reference, RP started hacking some fixes at http://www.rpsys.net/oprofileui.patch before realising just how much work is needed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51836</commentid>
    <comment_count>7</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-06-22 09:57:25 +0000</bug_when>
    <thetext>Propose to defer this to M2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58531</commentid>
    <comment_count>8</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2016-02-04 09:57:34 +0000</bug_when>
    <thetext>
seems that the issue still exists in YP 2.1_M2.rc1
master/3d2c0f5902cacf9d8544bf263b51ef0dd1a7218c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64431</commentid>
    <comment_count>9</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-07-25 21:14:40 +0000</bug_when>
    <thetext>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&apos;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&apos;ve CCd him for his opinion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64454</commentid>
    <comment_count>10</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2016-07-25 22:33:30 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73274</commentid>
    <comment_count>11</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2017-05-16 08:20:45 +0000</bug_when>
    <thetext>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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73398</commentid>
    <comment_count>12</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2017-05-21 01:35:04 +0000</bug_when>
    <thetext>We have restarted working on a plugin crops/eclipse-crops to allow building and qemu in containers. Haven&apos;t dealt with profiling yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76723</commentid>
    <comment_count>13</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-09-11 16:18:13 +0000</bug_when>
    <thetext>Reassigning Jussi&apos;s bugs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83919</commentid>
    <comment_count>14</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-05-23 15:00:15 +0000</bug_when>
    <thetext>eclipse has been dropped.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83950</commentid>
    <comment_count>15</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-05-23 15:06:57 +0000</bug_when>
    <thetext>closing</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>