Skip to content

fix(iolatency): attach freeze_queue probe on renamed kernel symbol#270

Merged
hao022 merged 2 commits into
ccfos:mainfrom
lanenson:freeze_fix
Jun 24, 2026
Merged

fix(iolatency): attach freeze_queue probe on renamed kernel symbol#270
hao022 merged 2 commits into
ccfos:mainfrom
lanenson:freeze_fix

Conversation

@lanenson

Copy link
Copy Markdown

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"

Li Nan 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>
@hao022 hao022 merged commit fe90566 into ccfos:main Jun 24, 2026
1 of 6 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