fix(iolatency): attach freeze_queue probe on renamed kernel symbol#270
Merged
Conversation
added 2 commits
June 23, 2026 20:00
…ction Pure move so it can be reused by collectors outside cmd/iotracing (which is package main and cannot be imported). Signed-off-by: Li Nan <magiclinan@didiglobal.com>
Commit 1e1a9cecfab3 ("block: force noio scope in blk_mq_freeze_queue")
turned blk_mq_freeze_queue into a static inline wrapper in v6.15; the
attachable symbol is blk_mq_freeze_queue_nomemsave. Pick the one the
kernel exposes via available_filter_functions at runtime.
Signed-off-by: Li Nan <magiclinan@didiglobal.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix error below:
https://github.com/ccfos/huatuo/actions/runs/27772719794/job/82176711814?pr=248#step:6:3131
error message:
time="2026-06-18T16:18:23.194547490Z" level="error" msg="start tracing iolatency: attach kprobe: can't attach kprobe blk_mq_freeze_queue in Kprobe(kprobe_freeze_queue)#220: creating perf_kprobe PMU (arch-specific fallback for "blk_mq_freeze_queue"): token __x64_blk_mq_freeze_queue: not found: no such file or directory" file="tracing.go:88" func="huatuo-bamai/pkg/tracing.(*EventTracing).doStart"