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/16660] New: On kernels >= 3.14, the ioblock.request 'sector' variable is broken


https://sourceware.org/bugzilla/show_bug.cgi?id=16660

            Bug ID: 16660
           Summary: On kernels >= 3.14, the ioblock.request 'sector'
                    variable is broken
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tapsets
          Assignee: systemtap at sourceware dot org
          Reporter: dsmith at redhat dot com

On kernels >= 3.14, the ioblock.request 'sector' variable is broken:

====
# stap -p4 -ve 'probe ioblock.request { print(sector) }'
Pass 1: parsed user script and 100 library script(s) using
211860virt/28776res/2868shr/26464data kb, in 200usr/80sys/288real ms.
semantic error: unable to find member 'bi_sector' for struct bio (alternatives:
bi_iter, bi_next, bi_cnt, bi_css, bi_ioc, bi_pool, bi_vcnt, bi_bdev, bi_end_io,
bi_flags, bi_io_vec, bi_rw, bi_private, bi_integrity, bi_max_vecs,
bi_remaining, bi_inline_vecs, bi_seg_back_size, bi_phys_segments,
bi_seg_front_size): operator '->' at
/usr/local/share/systemtap/tapset/linux/ioblock.stp:106:22
        source:         sector = $bio->bi_sector
                                     ^

semantic error: unresolved type : identifier 'sector' at :106:9
        source:         sector = $bio->bi_sector
                        ^

semantic error: unable to find member 'bi_sector' for struct bio (alternatives:
bi_iter, bi_next, bi_cnt, bi_css, bi_ioc, bi_pool, bi_vcnt, bi_bdev, bi_end_io,
bi_flags, bi_io_vec, bi_rw, bi_private, bi_integrity, bi_max_vecs,
bi_remaining, bi_inline_vecs, bi_seg_back_size, bi_phys_segments,
bi_seg_front_size): operator '->' at :106:22
        source:         sector = $bio->bi_sector
                                     ^

semantic error: unresolved type : identifier 'sector' at <input>:1:31
        source: probe ioblock.request { print(sector) }
                                              ^

semantic error: unresolved type : identifier 'sector' at :1:31
        source: probe ioblock.request { print(sector) }
                                              ^

semantic error: unresolved type : identifier 'print' at :1:25
        source: probe ioblock.request { print(sector) }
                                        ^

semantic error: unresolved type : identifier 'sector' at
/usr/local/share/systemtap/tapset/linux/ioblock.stp:106:9
        source:         sector = $bio->bi_sector
                        ^

Pass 2: analyzed script: 1 probe(s), 0 function(s), 2 embed(s), 0 global(s)
using 514840virt/269616res/115952shr/154016data kb, in 2920usr/1490sys/4420real
ms.
Pass 2: analysis failed.  [man error::pass2]
=====

I believe this was caused by the following kernel commit:

====
commit 4f024f3797c43cb4b73cd2c50cec728842d0e49e
Author: Kent Overstreet <kmo@daterainc.com>
Date:   Fri Oct 11 15:44:27 2013 -0700

    block: Abstract out bvec iterator

    Immutable biovecs are going to require an explicit iterator. To
    implement immutable bvecs, a later patch is going to add a bi_bvec_done
    member to this struct; for now, this patch effectively just renames
    things.
====

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


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