<?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>7412</bug_id>
          
          <creation_ts>2015-03-06 07:47:11 +0000</creation_ts>
          <short_desc>crosstap doesn&apos;t work on qemuppc with 1.8 M3 rc3 build</short_desc>
          <delta_ts>2015-03-10 07:19:52 +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>OE-Core</product>
          <component>kernel</component>
          <version>1.8</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>7401</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="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Tom Zanussi">tom.zanussi</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>bruce.ashfield</cc>
    
    <cc>dvhart</cc>
    
    <cc>ke.zou</cc>
    
    <cc>sgw</cc>
    
    <cc>tom.zanussi</cc>
    
    <cc>zhangle.yang</cc>
          
          <qa_contact name="Yi Zhao">yi.zhao</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>49251</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2015-03-06 07:47:11 +0000</bug_when>
    <thetext>Git rev: master/5c1c8af083ca7b57cc339d16ce0513b27c5dac90

Steps:
1. Create the trace_open.stp script:

probe syscall.open
{
        printf (&quot;%s(%d) open (%s)\n&quot;, execname(), pid(), argstr)
}

2. Build core-image-sato-sdk image for qemuppc and boot up

3. Run &quot;crosstap root@192.168.7.2 trace_open.stp&quot;

I got the following error:
#########################
$ crosstap root@192.168.7.2 trace_open.stp
/buildarea/jenkins-yocto/workspace/kernel_module_compilation_crosstap/build /buildarea/jenkins-yocto/workspace/kernel_module_compilation_crosstap/build
/buildarea/jenkins-yocto/workspace/kernel_module_compilation_crosstap/build
In file included from /buildarea/jenkins-yocto/workspace/kernel_module_compilation_crosstap/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/task_finder.c:17:0,
                 from /buildarea/jenkins-yocto/workspace/kernel_module_compilation_crosstap/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/runtime.h:214,
                 from /buildarea/jenkins-yocto/workspace/kernel_module_compilation_crosstap/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapk1HJ0u/trace_open_src.c:31:
/buildarea/jenkins-yocto/workspace/kernel_module_compilation_crosstap/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/task_finder2.c: In function &apos;__stp_call_mmap_callbacks_with_addr&apos;:
/buildarea/jenkins-yocto/workspace/kernel_module_compilation_crosstap/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/task_finder2.c:695:24: error: &apos;struct file&apos; has no member named &apos;f_dentry&apos;
   dentry = vma-&gt;vm_file-&gt;f_dentry;
                        ^
/buildarea/jenkins-yocto/workspace/kernel_module_compilation_crosstap/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/task_finder2.c: In function &apos;__stp_call_mmap_callbacks_for_task&apos;:
/buildarea/jenkins-yocto/workspace/kernel_module_compilation_crosstap/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/task_finder2.c:1198:42: error: &apos;struct file&apos; has no member named &apos;f_dentry&apos;
        vma_cache_p-&gt;dentry = vma-&gt;vm_file-&gt;f_dentry;
                                          ^
make[3]: *** [/tmp/stapk1HJ0u/trace_open_src.o] Error 1
make[2]: *** [_module_/tmp/stapk1HJ0u] Error 2
make[1]: *** [sub-make] Error 2
make: *** [__sub-make] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compilation failed.  [man error::pass4]
################################</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49298</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2015-03-09 14:24:00 +0000</bug_when>
    <thetext>This is due to an incompatible change between 3.19 kernel and crosstap, an upgrade is pending that will fix this.

*** This bug has been marked as a duplicate of bug 7401 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49322</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2015-03-10 07:19:52 +0000</bug_when>
    <thetext>Closing since it&apos;s duplicated</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>