<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>6118</bug_id>
          
          <creation_ts>2014-04-04 10:34:40 +0000</creation_ts>
          <short_desc>crosstap doesn&apos;t work on qemux86 core-image-sato-sdk</short_desc>
          <delta_ts>2014-04-05 15:51:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>1.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>6016</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ada Solcan">ada-mihaela.solcan</reporter>
          <assigned_to name="Tom Zanussi">tom.zanussi</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>42282</commentid>
    <comment_count>0</comment_count>
    <who name="Ada Solcan">ada-mihaela.solcan</who>
    <bug_when>2014-04-04 10:34:40 +0000</bug_when>
    <thetext>Host: Fedora 20 64-bit &amp; Ubuntu 13.10 64-bit
poky: 3e528d3e4bc542ca2f654c54363c56af0fb9f61b

STEPS TO REPRODUCE:
1. Create a trace_open.stp script as follows:
probe syscall.open
{
          printf (&quot;%s(%d) open (%s)\n&quot;, execname(), pid(), argstr)
}

2. Bitbake a qemux86 core-image-sato-sdk image and start it under qemu
3. Make sure that the ssh service is started on the qemu machine
4. From the host machine poky build dir run: crosstap root@192.168.7.2 trace_open.stp

EXPECTED RESULT
The script should successfully connect to the qemu machine and there should be presented a list of services(pid, process name) which run on the qemu machine.

ACTUAL RESULT
The following error is displayed:

[ada@localhost build]$ crosstap root@192.168.7.2 ~/Documents/trace_open.stp 
~/work/2014-04-02/poky/build ~/work/2014-04-02/poky/build
~/work/2014-04-02/poky/build
In file included from /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/task_finder.c:17:0,
                 from /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/runtime.h:192,
                 from /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapFqB7RG/trace_open_src.c:24:
/home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/task_finder2.c: In function &apos;__stp_utrace_attach_match_filename&apos;:
/home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/task_finder2.c:821:11: error: incompatible types when assigning to type &apos;uid_t&apos; from type &apos;kuid_t&apos;
  tsk_euid = task_euid(tsk);
           ^
/home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/task_finder2.c: In function &apos;stap_start_task_finder&apos;:
/home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/task_finder2.c:1711:12: error: incompatible types when assigning to type &apos;uid_t&apos; from type &apos;kuid_t&apos;
   tsk_euid = task_euid(tsk);
            ^
In file included from /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/runtime.h:198:0,
                 from /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapFqB7RG/trace_open_src.c:24:
/home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/sym.c: In function &apos;_stp_snprint_addr&apos;:
/home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/sym.c:567:4: error: implicit declaration of function &apos;preempt_enable_no_resched&apos; [-Werror=implicit-function-declaration]
    preempt_enable_no_resched();
    ^
In file included from /home/ada/work/2014-04-02/poky/build/tmp/work/qemux86-poky-linux/linux-yocto/3.14+gitAUTOINC+fc8c30398d_0143c6ebb4-r0/linux/include/linux/sched.h:53:0,
                 from /home/ada/work/2014-04-02/poky/build/tmp/work/qemux86-poky-linux/linux-yocto/3.14+gitAUTOINC+fc8c30398d_0143c6ebb4-r0/linux/include/linux/ptrace.h:5,
                 from /home/ada/work/2014-04-02/poky/build/tmp/work/qemux86-poky-linux/linux-yocto/3.14+gitAUTOINC+fc8c30398d_0143c6ebb4-r0/linux/include/linux/ftrace.h:13,
                 from /home/ada/work/2014-04-02/poky/build/tmp/work/qemux86-poky-linux/linux-yocto/3.14+gitAUTOINC+fc8c30398d_0143c6ebb4-r0/linux/include/linux/kprobes.h:42,
                 from /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/runtime.h:21,
                 from /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapFqB7RG/trace_open_src.c:24:
/home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/transport/control.c: In function &apos;_stp_ctl_write_cmd&apos;:
/home/ada/work/2014-04-02/poky/build/tmp/work/qemux86-poky-linux/linux-yocto/3.14+gitAUTOINC+fc8c30398d_0143c6ebb4-r0/linux/include/linux/cred.h:333:25: error: incompatible types when initializing type &apos;uid_t&apos; using type &apos;kuid_t&apos;
 #define current_euid()  (current_cred_xxx(euid))
                         ^
/home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/transport/control.c:41:15: note: in expansion of macro &apos;current_euid&apos;
  uid_t euid = current_euid();
               ^
In file included from /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/print.c:17:0,
                 from /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/print.c:17,
                 from /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/runtime_context.h:22,
                 from /tmp/stapFqB7RG/trace_open_src.c:929:
/home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/transport/transport.c: In function &apos;_stp_transport_init&apos;:
/home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/transport/transport.c:344:11: error: incompatible types when assigning to type &apos;uid_t&apos; from type &apos;kuid_t&apos;
  _stp_uid = current_uid();
           ^
/home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/transport/transport.c:345:11: error: incompatible types when assigning to type &apos;gid_t&apos; from type &apos;kgid_t&apos;
  _stp_gid = current_gid();
           ^
cc1: all warnings being treated as errors
make[3]: *** [/tmp/stapFqB7RG/trace_open_src.o] Error 1
make[2]: *** [_module_/tmp/stapFqB7RG] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compilation failed.  [man error::pass4]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42294</commentid>
    <comment_count>1</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-04-04 14:21:58 +0000</bug_when>
    <thetext>This is likely the same thing as:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=6016

I&apos;ll be submitting the patch in that bug, but I&apos;ll see if it fixes this as well first.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42322</commentid>
    <comment_count>2</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-04-05 15:51:00 +0000</bug_when>
    <thetext>The fix for 6016 also fixes this.  Closing as duplicate.

*** This bug has been marked as a duplicate of bug 6016 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>