[test][python] temptatively attach to blk_start_request probe.
`blk_start_request` is gone since kernel 5. This patch is in the same vein as
except that we only conditionally attach to `blk_start_request` but attach also attach to
`blk_mq_start_request`.
Fixes
@@ -16,12 +16,14 @@ if len(sys.argv) > 1:
class TestBlkRequest(TestCase):
- @mayFail("This fails on github actions environment, and needs to be fixed")
def setUp(self):
b = BPF(arg1, arg2, debug=0)
self.latency = b.get_table("latency", c_uint, c_ulong)
+ if BPF.get_kprobe_functions(b"blk_start_request"):
b.attach_kprobe(event="blk_start_request",
fn_name="probe_blk_start_request")
+ b.attach_kprobe(event="blk_mq_start_request",
+ fn_name="probe_blk_start_request")
b.attach_kprobe(event="blk_update_request",
fn_name="probe_blk_update_request")
