Bug 13670 - on 3.3 kernels, 'mnt_parent' has been moved from 'struct vfsmount'
Summary: on 3.3 kernels, 'mnt_parent' has been moved from 'struct vfsmount'
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: tapsets (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-07 16:49 UTC by David Smith
Modified: 2012-02-08 14:57 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Smith 2012-02-07 16:49:28 UTC
On rawhide (3.3.0-0.rc2.git0.2.fc17.x86_64), the buildok/dentry-embedded.stp test fails:

====
# stap -vp4 ../src/testsuite/buildok/dentry-embedded.stp 
Pass 1: parsed user script and 81 library script(s) using 200684virt/22792res/2812shr kb, in 130usr/10sys/152real ms.
semantic error: unable to find member 'mnt_parent' for struct vfsmount (alternatives: mnt_root mnt_sb mnt_flags): operator '->' at /usr/local/share/systemtap/tapset/dentry.stp:120:55
        source: 	                        if (@cast(vfsmnt, "vfsmount")->mnt_parent == vfsmnt)
                	                                                     ^
semantic error: unable to find member 'mnt_mountpoint' for struct vfsmount (alternatives: mnt_root mnt_sb mnt_flags): operator '->' at :123:60
        source: 	                        dentry = @cast(vfsmnt, "vfsmount")->mnt_mountpoint;
                	                                                          ^
semantic error: unable to find member 'mnt_parent' for struct vfsmount (alternatives: mnt_root mnt_sb mnt_flags): operator '->' at :124:60
        source: 	                        vfsmnt = @cast(vfsmnt, "vfsmount")->mnt_parent;
                	                                                          ^
Pass 2: analyzed script: 1 probe(s), 26 function(s), 1 embed(s), 0 global(s) using 424700virt/110064res/3784shr kb, in 2110usr/810sys/3204real ms.
Pass 2: analysis failed.  Try again with another '--vp 01' option.
====

This is because of the following kernel commit:

====
commit 3376f34fff5be9954fd9a9c4fd68f4a0a36d480e
Author: Al Viro <viro@zeniv.linux.org.uk>
Date:   Thu Nov 24 22:05:19 2011 -0500

    vfs: mnt_parent moved to struct mount
    
    the second victim...
    
    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
====
Comment 1 David Smith 2012-02-08 14:57:36 UTC
Fixed in commit 48ae989.