I run YoctoProjectTools->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 "latencytop" should replace "sudo latencytop".
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?
" initCmd ": set default value in classs LatencytopHandler. I think "sudo " should be removed . public class LatencytopHandler extends DialogHandler { protected String changeTerm = "export TERM=xterm;"; private static String initCmd="export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin; cd; sudo latencytop\r"; @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; }
Information supplied
See above
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.
see prior comment, can you remove the sudo from your script, that script does not seem to be part of the latencytop.
This looks like it is an eclipse plugin issue, reclassifying
The "sudo" 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.
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.
Verified on luna-master: 45aa5c77523bdf051d548fff4305382942db2ebb