This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tapsets/6972] New: vfs tapset broken on older kernels


The vfs tapset is broken on older kernels, such as the 2.6.18 kernel in RHEL5.

In the following output, you can skip all the warnings down to the first
semantic error:

----
# stap -p4 buildok/vfs-all-probes.stp 
WARNING: read-only local variable 'page_index' (alternatives: __page dev devname
ino index name argstr size units _dwarf_tvar_len_49 _dwarf_tvar_len_49_ctr
_dwarf_tvar_len_54 _dwarf_tvar_len_54_ctr _dwarf_tvar_ppos_55
_dwarf_tvar_ppos_55_ctr _dwarf_tvar_file_58 _dwarf_tvar_file_58_ctr
_dwarf_tvar_pos_59 _dwarf_tvar_pos_59_ctr _dwarf_tvar_buf_60
_dwarf_tvar_buf_60_ctr _dwarf_tvar_count_61 _dwarf_tvar_count_61_ctr
_dwarf_tvar_file_63 _dwarf_tvar_file_63_ctr _dwarf_tvar_pos_64
_dwarf_tvar_pos_64_ctr _dwarf_tvar_vec_65 _dwarf_tvar_vec_65_ctr
_dwarf_tvar_vlen_66 _dwarf_tvar_vlen_66_ctr _dwarf_tvar_file_68
_dwarf_tvar_file_68_ctr _dwarf_tvar_pos_69 _dwarf_tvar_pos_69_ctr
_dwarf_tvar_buf_70 _dwarf_tvar_buf_70_ctr _dwarf_tvar_count_71
_dwarf_tvar_count_71_ctr _dwarf_tvar_file_73 _dwarf_tvar_file_73_ctr
_dwarf_tvar_pos_74 _dwarf_tvar_pos_74_ctr _dwarf_tvar_vlen_75
_dwarf_tvar_vlen_75_ctr _dwarf_tvar_vec_76 _dwarf_tvar_vec_76_ctr
_dwarf_tvar_iocb_152 _dwarf_tvar_iocb_152_ctr _dwarf_tvar_nr_segs_153
_dwarf_tvar_nr_segs_153_ctr _dwarf_tvar_iocb_161 _dwarf_tvar_iocb_161_ctr
_dwarf_tvar_file_166 _dwarf_tvar_file_166_ctr _dwarf_tvar_offset_167
_dwarf_tvar_offset_167_ctr _dwarf_tvar_origin_168 _dwarf_tvar_origin_168_ctr
_dwarf_tvar_file_171 _dwarf_tvar_file_171_ctr _dwarf_tvar_in_186
_dwarf_tvar_in_186_ctr _dwarf_tvar_out_189 _dwarf_tvar_out_189_ctr
_dwarf_tvar_file_196 _dwarf_tvar_file_196_ctr __devnames): identifier
'page_index' at /usr/local/share/systemtap/tapset/vfs.stp:702:25
 source: 	argstr = sprintf("%d", page_index)
         	                       ^
WARNING: read-only local variable '_dev' (alternatives: _dwarf_tvar_tid
_dwarf_tvar_in_186_tmp name retstr file ino dev_major dev_minor ret error
error_str size units _dwarf_tvar_len_49 _dwarf_tvar_len_49_ctr
_dwarf_tvar_len_54 _dwarf_tvar_len_54_ctr _dwarf_tvar_ppos_55
_dwarf_tvar_ppos_55_ctr _dwarf_tvar_file_58 _dwarf_tvar_file_58_ctr
_dwarf_tvar_pos_59 _dwarf_tvar_pos_59_ctr _dwarf_tvar_buf_60
_dwarf_tvar_buf_60_ctr _dwarf_tvar_count_61 _dwarf_tvar_count_61_ctr
_dwarf_tvar_file_63 _dwarf_tvar_file_63_ctr _dwarf_tvar_pos_64
_dwarf_tvar_pos_64_ctr _dwarf_tvar_vec_65 _dwarf_tvar_vec_65_ctr
_dwarf_tvar_vlen_66 _dwarf_tvar_vlen_66_ctr _dwarf_tvar_file_68
_dwarf_tvar_file_68_ctr _dwarf_tvar_pos_69 _dwarf_tvar_pos_69_ctr
_dwarf_tvar_buf_70 _dwarf_tvar_buf_70_ctr _dwarf_tvar_count_71
_dwarf_tvar_count_71_ctr _dwarf_tvar_file_73 _dwarf_tvar_file_73_ctr
_dwarf_tvar_pos_74 _dwarf_tvar_pos_74_ctr _dwarf_tvar_vlen_75
_dwarf_tvar_vlen_75_ctr _dwarf_tvar_vec_76 _dwarf_tvar_vec_76_ctr
_dwarf_tvar_iocb_152 _dwarf_tvar_iocb_152_ctr _dwarf_tvar_nr_segs_153
_dwarf_tvar_nr_segs_153_ctr _dwarf_tvar_iocb_161 _dwarf_tvar_iocb_161_ctr
_dwarf_tvar_file_166 _dwarf_tvar_file_166_ctr _dwarf_tvar_offset_167
_dwarf_tvar_offset_167_ctr _dwarf_tvar_origin_168 _dwarf_tvar_origin_168_ctr
_dwarf_tvar_file_171 _dwarf_tvar_file_171_ctr _dwarf_tvar_in_186
_dwarf_tvar_in_186_ctr _dwarf_tvar_out_189 _dwarf_tvar_out_189_ctr
_dwarf_tvar_file_196 _dwarf_tvar_file_196_ctr __devnames): identifier '_dev' at
:458:25
 source: 	dev_major = _dev_major(_dev)
         	                       ^
WARNING: side-effect-free probe 'probe_1419': identifier 'vfs' at
buildok/vfs-all-probes.stp:5:7
 source: probe vfs.*, 
               ^
WARNING: side-effect-free probe 'probe_1425': identifier 'vfs' at :5:7
 source: probe vfs.*, 
               ^
WARNING: side-effect-free probe 'probe_1429': identifier 'vfs' at :6:7
 source:       vfs.*.*, 
               ^
WARNING: side-effect-free probe 'probe_1431': identifier 'vfs' at :6:7
 source:       vfs.*.*, 
               ^
WARNING: side-effect-free probe 'probe_1433': identifier 'vfs' at :6:7
 source:       vfs.*.*, 
               ^
WARNING: side-effect-free probe 'probe_1435': identifier 'vfs' at :6:7
 source:       vfs.*.*, 
               ^
WARNING: side-effect-free probe 'probe_1437': identifier 'vfs' at :6:7
 source:       vfs.*.*, 
               ^
WARNING: side-effect-free probe 'probe_1451': identifier 'vfs' at :6:7
 source:       vfs.*.*, 
               ^
WARNING: side-effect-free probe 'probe_1485': identifier 'generic' at :8:7
 source:       generic.*.*.* {}
               ^
WARNING: side-effect-free probe 'probe_1499': identifier 'generic' at :8:7
 source:       generic.*.*.* {}
               ^
WARNING: side-effect-free probe 'probe_1501': identifier 'generic' at :8:7
 source:       generic.*.*.* {}
               ^
WARNING: side-effect-free probe 'probe_1503': identifier 'generic' at :8:7
 source:       generic.*.*.* {}
               ^
WARNING: side-effect-free probe 'probe_1505': identifier 'generic' at :8:7
 source:       generic.*.*.* {}
               ^
WARNING: side-effect-free probe 'probe_1513': identifier 'generic' at :8:7
 source:       generic.*.*.* {}
               ^
WARNING: side-effect-free probe 'probe_1415': identifier 'vfs' at :5:7
 source: probe vfs.*, 
               ^
semantic error: unable to find local 'nr_segs' near pc 0xffffffff800167d5
(alternatives: iocb buf count pos local_iov): identifier '$nr_segs' at
/usr/local/share/systemtap/tapset/vfs.stp:253:12
        source: 	nr_segs = $nr_segs
                	          ^
semantic error: probe_1487 with unresolved type: identifier '$nr_segs' at :253:12
        source: 	nr_segs = $nr_segs
                	          ^
semantic error: probe_1523 with unresolved type: identifier '$nr_segs' at :253:12
        source: 	nr_segs = $nr_segs
                	          ^
semantic error: probe_1529 with unresolved type: identifier '$nr_segs' at :253:12
        source: 	nr_segs = $nr_segs
                	          ^
Pass 2: analysis failed.  Try again with more '-v' (verbose) options.
----

I believe this problem started with commit
471ca45b8e46177b5ee2f1f7eb4bf7d7881793df from 27 Jun 2008, with commit message:

----
This commit makes changes to the VFS tapset. The changes include deprecation of
some old probe points to older versions of kernel, adding new helper C functions
and probe points for the VFS subsystem. A new testcase is created for the VFS
tapset which performs a compile test (i.e. up4) on the probe points to verify
sanity. These details can also be found in the ChangeLog.
----

-- 
           Summary: vfs tapset broken on older kernels
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tapsets
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: dsmith at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=6972

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]