Bug 5640 - systemtap output is useless in Juno
Summary: systemtap output is useless in Juno
Status: VERIFIED FIXED
Alias: None
Product: Eclipse Plugin
Classification: Yocto Project Subprojects
Component: eclipse-plugin (show other bugs)
Version: 1.6
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.6
Assignee: Cristiana Voicu
QA Contact: Andra Necula
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-12-06 13:13 UTC by Alexandru Georgescu
Modified: 2014-08-28 12:03 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandru Georgescu 2013-12-06 13:13:25 UTC
eclipse-poky-kepler 3dd620d9f89e297ee9e22d5ba9fe741a5f40ac82
poky c51730aaa91066cfb51ad6ec2920fb4f9d9ea94c


STEPS TO REPRODUCE
1. Build a core-image-sato-sdk for qemux86-64 and boot it.
2. create a script and run it in the qemu: 

root@qemux86-64:~# cat cont.sh 
#!/bin/bash

while :
do
        echo "aaa"
        sleep 1
done
root@qemux86-64:~#

3. Launch eclipse (kepler) with  plugin installed and run systemtap script: 

ubu@ubu-v:~/Downloads$ cat ~/Documents/trace.stp 
probe syscall.open
{
        printf ("%s(%d) open (%s)\n", execname(), pid(), argstr)
}

probe timer.ms(4000) # after 4 seconds
{
        exit ()
}
ubu@ubu-v:~/

4. Check the console output in Eclipse

EXPECTED RESULTS:

4. Systemtap runs the crosstap script, and the output should be something like: 

bu@ubu-v:/media/ubu/240/poky/build$ crosstap root@192.168.7.4 ~/Documents/trace.stp 
/media/ubu/240/poky/build /media/ubu/240/poky/build
/media/ubu/240/poky/build
bash(1077) open ("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC)
bash(1077) open ("/lib/tls/x86_64/libtinfo.so.5", O_RDONLY|O_CLOEXEC)
bash(1077) open ("/lib/tls/libtinfo.so.5", O_RDONLY|O_CLOEXEC)
bash(1077) open ("/lib/x86_64/libtinfo.so.5", O_RDONLY|O_CLOEXEC)
bash(1077) open ("/lib/libtinfo.so.5", O_RDONLY|O_CLOEXEC)
bash(1077) open ("/lib/libdl.so.2", O_RDONLY|O_CLOEXEC)
bash(1077) open ("/lib/libc.so.6", O_RDONLY|O_CLOEXEC)
bash(1077) open (00000000004aa341, O_RDWR|O_NONBLOCK)
bash(1077) open ("/proc/meminfo", O_RDONLY|O_CLOEXEC)
bash(1077) open ("cont.sh", O_RDONLY)



ACTUAL RESULT
4. The output doesn't contain the output from expected results ^^^:



### Shell environment set up for builds. ###



You can now run 'bitbake <target>'



Common targets are:

    core-image-minimal

    core-image-sato

    meta-toolchain

    meta-toolchain-sdk

    adt-installer

    meta-ide-support



You can also run generated qemu images with a command like 'runqemu qemux86'
Comment 1 Alexandru Georgescu 2013-12-06 13:15:15 UTC
The commits specified in the description are wrong:

The behavior happens in JUNO:
eclipse-poky-juno e8342d27db60a9d1b627ddb9f8ae2f5512bfc0c9
poky c51730aaa91066cfb51ad6ec2920fb4f9d9ea94c
Comment 2 Cristiana Voicu 2014-04-03 14:02:13 UTC
This is a Juno bug, so I will close it. The Juno support will continue mainly for 1.4.*.
Comment 3 Andra Necula 2014-08-28 12:03:03 UTC
Verified with 
eclipse-poky-kepler: 4a167fd662262ebdaa3cf0d332ac0debb52d7904
poky: 52b788c6df9201764130ab744bf67b770b24b896
Ubuntu 14.04
x86_64
Cheers! Andra N.