Bug 7401

Summary: Crosstap fails when running on qemuarm/qemupcc
Product: [Runtime] General Runtime Reporter: Stefan Sicleru <stefan.sicleru>
Component: General RuntimeAssignee: Saul Wold <sgw>
Status: VERIFIED FIXED QA Contact: Alexandru Georgescu <alexandru.c.georgescu>
Severity: normal    
Priority: Medium+ CC: alexandru.c.georgescu, yi.zhao
Version: 1.8   
Target Milestone: 1.8 M4   
Hardware: x86   
OS: arm   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: Don't know
Attachments:
Description Flags
basic test script
none
trace open stp script none

Description Stefan Sicleru 2015-03-05 13:21:10 UTC
When testing crosstap on M3-RC1 (poky 40d80f9e019118ac7bcd268f21e350bc154a4a63) on qemuarm/qemupcc, we have encountered the following errors:

$ ./crosstap root@192.168.7.2 HelloWorld.stp
poky/scripts poky/scripts
poky/scripts

In file included from poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/task_finder.c:17:0,
                 from poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/runtime.h:214,
                 from poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/runtime.h:24,
                 from /tmp/stap5jhxxF/HelloWorld_src.c:31:
poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/task_finder2.c: In function '__stp_call_mmap_callbacks_with_addr':
poky/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;
                        ^
poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/task_finder2.c: In function '__stp_call_mmap_callbacks_for_task':
poky/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/stap5jhxxF/HelloWorld_src.o] Error 1
make[2]: *** [_module_/tmp/stap5jhxxF] 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]

Same issue occurs when executing trace_open.stp. 

Test host was Ubuntu 14.04 LTS, x86_64.
Comment 1 Stefan Sicleru 2015-03-05 13:21:49 UTC
Created attachment 2433 [details]
basic test script
Comment 2 Stefan Sicleru 2015-03-05 13:22:33 UTC
Created attachment 2434 [details]
trace open stp script
Comment 3 Saul Wold 2015-03-05 15:35:25 UTC
*** Bug 7400 has been marked as a duplicate of this bug. ***
Comment 4 Saul Wold 2015-03-09 14:24:00 UTC
*** Bug 7412 has been marked as a duplicate of this bug. ***
Comment 6 Yi Zhao 2015-04-01 10:00:14 UTC
Verified with 1.8 M4 RC1

Crosstap works well on qemuppc. but for qemuarm, the bug 6156 still exists.