<?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>6524</bug_id>
          
          <creation_ts>2014-07-14 02:44:44 +0000</creation_ts>
          <short_desc>yocto project tools latencytop cannot run in target</short_desc>
          <delta_ts>2015-08-28 11:27:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Eclipse Plugin</product>
          <component>eclipse-plugin</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.9 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chunrong Guo">b40290</reporter>
          <assigned_to name="Todor Minchev">todor.minchev</assigned_to>
          <cc>alexandru.costinx.roman</cc>
    
    <cc>ioanax.grigoropol</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>poky.adt.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>todor.minchev</cc>
    
    <cc>valentinx.hangan</cc>
    
    <cc>yp.ep.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          <qa_contact name="Valentin Hangan">valentinx.hangan</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</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>44456</commentid>
    <comment_count>0</comment_count>
    <who name="Chunrong Guo">b40290</who>
    <bug_when>2014-07-14 02:44:44 +0000</bug_when>
    <thetext>I run YoctoProjectTools-&gt;lantencytop
and there is the following error log:
root@p1020rdb-pd:/# export TERM=xterm;export PATH=$PATH:/usr/local/sbin:/usr/sb
in:/sbin; cd; sudo latencytop
bash: sudo: command not found


I think &quot;latencytop&quot; should replace &quot;sudo latencytop&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46929</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2014-11-11 22:31:17 +0000</bug_when>
    <thetext>Can you confirm what image you installed?  sudo is not part of most images.  
ALso you are already running as root user so no need to use sudo.  Was there a 
specific script or something that you cut and pasted?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47585</commentid>
    <comment_count>2</comment_count>
    <who name="Chunrong Guo">b40290</who>
    <bug_when>2014-12-16 02:27:28 +0000</bug_when>
    <thetext>&quot; initCmd &quot;: set default value in classs LatencytopHandler.

I think &quot;sudo &quot; should be removed . 


public class LatencytopHandler extends DialogHandler {
     
    protected String changeTerm = &quot;export TERM=xterm;&quot;;
    private static String initCmd=&quot;export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin; cd; sudo latencytop\r&quot;;
     
     @Override
     protected String getInitCmd() {
         return initCmd;
     }
     @Override
     protected String changeTerm() {
         return changeTerm;
     }
     @Override
     protected String getConnnectionName() {
         return IBaseConstants.CONNECTION_NAME_LATENCYTOP;                                                                        
     }
     @Override
     protected String getDialogTitle() {
         return IBaseConstants.DIALOG_TITLE_LATENCYTOP;
     }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47699</commentid>
    <comment_count>3</comment_count>
    <who name="Stephen K Jolley">sjolley.yp.pm</who>
    <bug_when>2014-12-29 19:13:08 +0000</bug_when>
    <thetext>Information supplied</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47700</commentid>
    <comment_count>4</comment_count>
    <who name="Stephen K Jolley">sjolley.yp.pm</who>
    <bug_when>2014-12-29 19:13:42 +0000</bug_when>
    <thetext>See above</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47752</commentid>
    <comment_count>5</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2015-01-06 15:04:17 +0000</bug_when>
    <thetext>Where does that script come from?  Can change the line with sudo in it, to 
remove sudo reference?  The script does appear to be part of the Yocto Project.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47755</commentid>
    <comment_count>6</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2015-01-06 18:35:54 +0000</bug_when>
    <thetext>see prior comment, can you remove the sudo from your script, that script does 
not seem to be part of the latencytop.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48782</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2015-02-12 22:08:44 +0000</bug_when>
    <thetext>This looks like it is an eclipse plugin issue, reclassifying</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48795</commentid>
    <comment_count>8</comment_count>
    <who name="Todor Minchev">todor.minchev</who>
    <bug_when>2015-02-13 08:58:53 +0000</bug_when>
    <thetext>The &quot;sudo&quot; call is done in the plugin, because latencytop requires root access to run. It mounts debugfs and writes to /proc/sys/kernel/latencytop and both of these require UID 0 permissions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51741</commentid>
    <comment_count>9</comment_count>
    <who name="Todor Minchev">todor.minchev</who>
    <bug_when>2015-06-16 21:56:47 +0000</bug_when>
    <thetext>The sudo call was removed from the latencytop command launch. By default the QEMU images generated by Yocto have only root user and also sudo is not included in all images.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53525</commentid>
    <comment_count>10</comment_count>
    <who name="Alexandru Roman">alexandru.costinx.roman</who>
    <bug_when>2015-08-28 11:27:26 +0000</bug_when>
    <thetext>Verified on luna-master: 45aa5c77523bdf051d548fff4305382942db2ebb</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>