Skip to content

Commit d720687

Browse files
committed
DLPX-78812 Disk IO analytics collector not running on aws
1 parent 5cb1777 commit d720687

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bpf/stbtrace/io.st

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,10 @@ b = BPF(text=bpf_text)
128128
if BPF.get_kprobe_functions(b'blk_start_request'):
129129
b.attach_kprobe(event="blk_start_request", fn_name="disk_io_start")
130130
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")
131+
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")
132135

133136

134137
helper = BCCHelper(b, BCCHelper.ANALYTICS_PRINT_MODE)

0 commit comments

Comments
 (0)