diff options
author | Yang Jihong <yangjihong1@huawei.com> | 2022-11-22 05:04:10 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-12-08 17:26:11 +0100 |
commit | f596da3efaf4130ff61cd029558845808df9bf99 (patch) | |
tree | 1f99c0ed81d9e3a9738ca899c7f0d54da19e1eb5 /io_uring | |
parent | block: sed-opal: Don't include <linux/kernel.h> (diff) | |
download | linux-f596da3efaf4130ff61cd029558845808df9bf99.tar.xz linux-f596da3efaf4130ff61cd029558845808df9bf99.zip |
blktrace: Fix output non-blktrace event when blk_classic option enabled
When the blk_classic option is enabled, non-blktrace events must be
filtered out. Otherwise, events of other types are output in the blktrace
classic format, which is unexpected.
The problem can be triggered in the following ways:
# echo 1 > /sys/kernel/debug/tracing/options/blk_classic
# echo 1 > /sys/kernel/debug/tracing/events/enable
# echo blk > /sys/kernel/debug/tracing/current_tracer
# cat /sys/kernel/debug/tracing/trace_pipe
Fixes: c71a89615411 ("blktrace: add ftrace plugin")
Signed-off-by: Yang Jihong <yangjihong1@huawei.com>
Link: https://lore.kernel.org/r/20221122040410.85113-1-yangjihong1@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring')
0 files changed, 0 insertions, 0 deletions