Skip to content

Commit

Permalink
Update biosnoop.py (iovisor#4124)
Browse files Browse the repository at this point in the history
“blk_start_request” and “blk_mq_start_request” should be chosen between the two.
  • Loading branch information
WuXianChangKuang committed Jul 29, 2022
1 parent 4a8b593 commit 4902819
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/biosnoop.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@
b.attach_kprobe(event="blk_account_io_start", fn_name="trace_pid_start")
if BPF.get_kprobe_functions(b'blk_start_request'):
b.attach_kprobe(event="blk_start_request", fn_name="trace_req_start")
b.attach_kprobe(event="blk_mq_start_request", fn_name="trace_req_start")
else:
b.attach_kprobe(event="blk_mq_start_request", fn_name="trace_req_start")
if BPF.get_kprobe_functions(b'__blk_account_io_done'):
b.attach_kprobe(event="__blk_account_io_done", fn_name="trace_req_completion")
else:
Expand Down

0 comments on commit 4902819

Please sign in to comment.