Bug 7401 - Crosstap fails when running on qemuarm/qemupcc
Summary: Crosstap fails when running on qemuarm/qemupcc
Status: VERIFIED FIXED
Alias: None
Product: General Runtime
Classification: Runtime
Component: General Runtime (show other bugs)
Version: 1.8
Hardware: x86 arm
: Medium+ normal
Target Milestone: 1.8 M4
Assignee: Saul Wold
QA Contact: Alexandru Georgescu
URL:
Whiteboard:
: 7400 7412 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-03-05 13:21 UTC by Stefan Sicleru
Modified: 2015-04-01 10:00 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: Don't know


Attachments
basic test script (68 bytes, application/octet-stream)
2015-03-05 13:21 UTC, Stefan Sicleru
no flags Details
trace open stp script (132 bytes, application/octet-stream)
2015-03-05 13:22 UTC, Stefan Sicleru
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.