Bug 7412 - crosstap doesn't work on qemuppc with 1.8 M3 rc3 build
Summary: crosstap doesn't work on qemuppc with 1.8 M3 rc3 build
Status: VERIFIED DUPLICATE of bug 7401
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: kernel (show other bugs)
Version: 1.8
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Tom Zanussi
QA Contact: Yi Zhao
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-03-06 07:47 UTC by Yi Zhao
Modified: 2015-03-10 07:19 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
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 Yi Zhao 2015-03-06 07:47:11 UTC
Git rev: master/5c1c8af083ca7b57cc339d16ce0513b27c5dac90

Steps:
1. Create the trace_open.stp script:

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

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

3. Run "crosstap root@192.168.7.2 trace_open.stp"

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 '__stp_call_mmap_callbacks_with_addr':
/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: 'struct file' has no member named 'f_dentry'
   dentry = vma->vm_file->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 '__stp_call_mmap_callbacks_for_task':
/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: 'struct file' has no member named 'f_dentry'
        vma_cache_p->dentry = vma->vm_file->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]
################################
Comment 1 Saul Wold 2015-03-09 14:24:00 UTC
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 ***
Comment 2 Alexandru Georgescu 2015-03-10 07:19:52 UTC
Closing since it's duplicated