Bug 2691 - Oprofile-viewer encounter invalid sample file issue
Summary: Oprofile-viewer encounter invalid sample file issue
Status: VERIFIED WONTFIX
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.3
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.3 M4
Assignee: Saul Wold
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-07-04 07:45 UTC by Hongna Xu
Modified: 2012-11-02 11:36 UTC (History)
10 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hongna Xu 2012-07-04 07:45:13 UTC
on host opensuse 12.1 64bit,with target qemux86/x86-64 sato-sdk image at http://autobuilder.yoctoproject.org/pub/nightly/20120613-1/machines/qemu/, oprofile-viewer meet the error:
##################
opreport error: Invalid sample file, bad magic number: /tmp/oprofile-archive-17724/active/var/lib/oprofile/samples/current/{root}/usr/bin/matchbox-panel/{dep}/{root}/usr/lib/libpangoft2-1.0.so.0.2800.4/TIMER.0.0.all.all.all
###################

but qemuarm's kernel generated oprofile data file can be read by remote 64bit opreport well.

the image were built from poky/master,commitID 7f017cab0b3e4d5a4fc356eccd8eb8429b0531d0
Comment 1 Lianhao Lu 2012-07-04 07:47:21 UTC
The opreport installed on the opensuse host is 0.9.7.
Comment 2 Lianhao Lu 2012-07-04 08:44:54 UTC
I tested the same images on Ubuntu 10.04 x86-64 host with opreport v0.9.6.

The qemux86-64 was ok and the qemux86/qemuarm failed due to another issue
which was reported in bug #1452.(https://bugzilla.yoctoproject.org/show_bug.cgi?id=1452)

My guess is that the opreport on openSuse is not compatible with the oprofile in our qemu target.
Comment 3 Richard Purdie 2012-07-04 14:34:55 UTC
Is oprofile backwards compatible and does upgrading oprofile in our metadata likely to fix this issue?
Comment 4 Hongna Xu 2012-07-19 08:27:55 UTC
weird thing happen. i use the same host machine(opensuse 12.1 64bit with opreport 0.9.7) mentioned in description with 1.3 M2 RC1 building with juno eclipse, the issue is gone.

image location: http://autobuilder.yoctoproject.org/pub/nightly/201200712-1/machines/qemu/
Tree/Branch: poky/master
Commit id: eb0cb7e8234f5d2e5623406e9660be91cf52f65e

but with the same commit buiding, on host ubuntu 11.10 64 bit with opreport 0.9.6, which can not be read qemuarm/x86's kernel generated oprofile data file.the log is:
***********************
(oprofile-viewer:17615): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(oprofile-viewer:17615): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
warning: /tmp/oprofile-archive-17615/active/no-vmlinux could not be found.
warning: /tmp/oprofile-archive-17615/active[heap] (tgid:522 range:0x8217000-0x842b000) could not be found.
warning: /tmp/oprofile-archive-17615/active[heap] (tgid:681 range:0x804b000-0x812f000) could not be found.
warning: /tmp/oprofile-archive-17615/active[heap] (tgid:793 range:0x8127000-0x81ab000) could not be found.
warning: /tmp/oprofile-archive-17615/active[heap] (tgid:808 range:0x8127000-0x81ab000) could not be found.
opreport error: profile_t::samples_range(): start > end something wrong with kernel or module layout ?
please report problem to oprofile-list@lists.sourceforge.net
*****************************
Comment 5 Hongna Xu 2012-07-19 09:24:38 UTC
the log in "Comment 4" is the same issue in bug 1452.
if the error"Invalid sample file" not happen next test cycle, i will close it.
Comment 6 Saul Wold 2012-08-22 23:49:41 UTC
Any Update?
Comment 7 MaNing 2012-08-23 01:36:32 UTC
close it cause i didn't encounter this issue from poky/master:0ffb02eec2beaea27ff0ec9d3d31b0a09e675a4c till now, if anyone meet it againt, please reopen it.
Comment 8 Stefan Stanacar 2012-11-02 11:36:09 UTC
Marking as verified.