Bug 499

Summary: OProfile-viewer failure with exit value: 134
Product: [Yocto Project Subprojects] Eclipse Plugin Reporter: Jessica <jessica.zhang>
Component: eclipse-pluginAssignee: Lianhao Lu <lianhao.lu>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: High CC: kevin.tian, lianhao.lu, liping.ke, sgw, yp.ep.watcher, yp.watcher
Version: 0.9   
Target Milestone: 0.9 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Program Management Documentation change: ---
Attachments:
Description Flags
oprofile-viewer.error none

Description Jessica 2010-10-20 15:36:19 UTC
When testing demo laptop to netbook running atom-pc, tried oprofile, I can connect to the oprofile server, start, stop and downloading files, after that, I got Launching local application: Failed in launching local application: oprofile-viewer Exit value: 134...
Comment 1 Jessica 2010-10-20 15:48:11 UTC
I've tried oprofile against qemu, but seems for qemu there's no oprofile data file for download, so to reproduce the problem, please try with a netbook or a target that will trigger downloading file...
Comment 2 Jessica 2010-10-20 15:55:31 UTC
Created attachment 62 [details]
oprofile-viewer.error
Comment 3 Lianhao Lu 2010-10-20 18:28:40 UTC
This happens because on the host, the official oprofile package is not installed. The oprofile-viewer needs an application utility called "opreport" from that package. 

If you're using Ubuntu, please install the oprofile package using "sudo apt-get install oprofile".

If you're using other linux distributions, please install the corresponding package using their own package management tools.
Comment 4 Lianhao Lu 2010-10-20 18:47:10 UTC
Fixed in commit e2e10e7.

Added availability check of opreport in OprofileModel.checkAvail(). If no opreport is found, an error message would prompt to ask user to install the oprofile package.
Comment 5 Jessica 2010-10-20 23:24:24 UTC
Verified with the latest Eclipse plugin build