Branch: Poky/Master Commit id: dfce2695b96ab587b8235cfab2859a874e9d2eef When running oprofileUI on 64bit host machine to connect to 32bit target machine(qemux86, qemuarm, qemuppc), the data file generated by the yocto 3.0 kernel can not be read correctly by the host opreport(host oprofile is version 0.9.6). This would result the oprofileUI not working in this kin d of user case. The opreport command triggered by the oprofile-viewer reports the following errors: opreport error: profile_t::samples_range(): start > end something wrong with kernel or module layout ? Yocto 1.0 release with kernel 2.6.37 worked fine.
It seems by NOT "prelink" during do_rootfs time, the problem is gone.
Dexuan, could you verify this is still an issue in master. If so, could you accept the bug?
(In reply to comment #1) > It seems by NOT "prelink" during do_rootfs time, the problem is gone. Lianhao, Could you please re-check if we still have the issue in recent poky master? And, if we're sure this is a prelink issue, maybe we can ask Mark to have a look. :-) (In reply to comment #2) > Dexuan, could you verify this is still an issue in master. If so, could you > accept the bug? Ok, we're re-checking it.
Branch: Poky/Master Commit id:4648aadfe161d2e0ec51408f35fdf8996727bd22 The problem still exists in the latest poky/master. This problem seems to me related to prelink. However. By not "prelink" during the do_rootfs time, the problem is gone. To reproduce this problem: 1. compile and install the oprofileUI on the host from git://git.yoctoproject.org/oprofileui. 2. launch the qemu, using image of core-image-sato-sdk(MACHINE=qemux86) 3. run oprofile-viewer on the host from the console, connect to the target in qemu, then click "start" and "stop". We'll see no chart got displayed in the oprofile-viewer, and an opreport error "profile_t::samples_range(): start > end something wrong with kernel or module layout ?" displayed in the console.
(In reply to comment #4) > Branch: Poky/Master > Commit id:4648aadfe161d2e0ec51408f35fdf8996727bd22 > > The problem still exists in the latest poky/master. Lianhao, thanks for the checking! > > This problem seems to me related to prelink. However. By not "prelink" during > the do_rootfs time, the problem is gone. Could Mark please have a look since this is prelink related? :-) > > To reproduce this problem: > 1. compile and install the oprofileUI on the host from > git://git.yoctoproject.org/oprofileui. > 2. launch the qemu, using image of core-image-sato-sdk(MACHINE=qemux86) > 3. run oprofile-viewer on the host from the console, connect to the target in > qemu, then click "start" and "stop". > > We'll see no chart got displayed in the oprofile-viewer, and an opreport error > "profile_t::samples_range(): start > end something wrong with > kernel or module layout ?" displayed in the console.
If oprofile-viewer is correctly installed on a system and the oparchconv is installed such that oprofile-viewer can find it, this seems to work correcly now. I am going to close this as obsolete since it's an older bug that seems to work correctly now. I confirmed this is with a prelinked image, if the problem reappears please reopen.