Bug 28634 - ioscheduler.stp broken with new kernel 5.16.0-0.rc2
Summary: ioscheduler.stp broken with new kernel 5.16.0-0.rc2
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: 2021-11-29 12:32 UTC by Martin Cermak
Modified: 2022-05-09 19:23 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 Martin Cermak 2021-11-29 12:32:12 UTC
:: [ 12:13:36 ] :: [  BEGIN   ] :: Running 'stap -c sync --suppress-handler-errors -e 'probe ioscheduler.elv_add_request{println(elevator_name) exit()}''
semantic error: unresolved struct elevator_queue: operator '->' at /usr/share/systemtap/tapset/linux/ioscheduler.stp:155:65
        source:                                                 $rq->q->elevator->elevator_name)), "")
                                                                                ^
in expansion of macro: operator '@alternate' at /usr/share/systemtap/tapset/choose_defined.stpm:3:57
        source: ( @defined(@value_if_defined) ? (@value_if_defined) : (@alternate) )

I guess this is caused by linux commit:

commit 2e9bc3465ac54d282b855b073409c2c3a7d1ae00
Author: Christoph Hellwig <hch@lst.de>
Date:   Mon Sep 20 14:33:23 2021 +0200

    block: move elevator.h to block/
    
    Except for the features passed to blk_queue_required_elevator_features,
    elevator.h is only needed internally to the block layer.  Move the
    ELEVATOR_F_* definitions to blkdev.h, and the move elevator.h to
    block/, dropping all the spurious includes outside of that.
Comment 1 Martin Cermak 2021-12-13 16:48:42 UTC
Commit efae8a3dc15
Comment 2 Martin Cermak 2022-05-09 19:23:12 UTC
Additional update 093b972294256b3ad68712daecdfdc5da1418a13