Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples/tracing/disksnoop.py: Fix kprobe attaching failure #5209

Merged
merged 1 commit into from
Feb 9, 2025

Conversation

we3i
Copy link
Contributor

@we3i we3i commented Feb 7, 2025

Fix issue #5124 "Exception:Failed to attach BPF program ..." by attaching the function blk_mq_end_request

blk_account_io_done became inline function since kernel v5.16 and blk_account_io_done has been taken off since v6.4. With this change, only when the code runs on a legacy kernel these *_io_done functions will be attached, otherwise it goes for blk_mq_end_request.

Fix issues/5124: "Exception:Failed to attach BPF program ..." by
attaching the function blk_mq_end_request

blk_account_io_done became inline function since kernel v5.16 and
blk_account_io_done has been taken off since v6.4. With this change,
only when the code runs on a legacy kernel these *_io_done functions
will be attached, otherwise it goes for blk_mq_end_request.
@yonghong-song yonghong-song merged commit cccb26e into iovisor:master Feb 9, 2025
1 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants