We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cb1777 commit d720687Copy full SHA for d720687
bpf/stbtrace/io.st
@@ -128,7 +128,10 @@ b = BPF(text=bpf_text)
128
if BPF.get_kprobe_functions(b'blk_start_request'):
129
b.attach_kprobe(event="blk_start_request", fn_name="disk_io_start")
130
b.attach_kprobe(event="blk_mq_start_request", fn_name="disk_io_start")
131
-b.attach_kprobe(event="blk_account_io_completion", fn_name="disk_io_done")
+if BPF.get_kprobe_functions(b'blk_account_io_completion'):
132
+ b.attach_kprobe(event="blk_account_io_completion", fn_name="disk_io_done")
133
+else:
134
+ b.attach_kprobe(event="blk_account_io_done", fn_name="disk_io_done")
135
136
137
helper = BCCHelper(b, BCCHelper.ANALYTICS_PRINT_MODE)
0 commit comments