Yang Jihong
fe783eeac4
blktrace: Fix output non-blktrace event when blk_classic option enabled
...
[ Upstream commit f596da3efaf4130ff61cd029558845808df9bf99 ]
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: c71a896154 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-18 11:41:13 +01:00
..
blktrace.c
blktrace: Fix output non-blktrace event when blk_classic option enabled
2023-01-18 11:41:13 +01:00
bpf_trace.c
tracepoint: Add tracepoint_probe_register_may_exist() for BPF tracing
2021-07-14 16:53:08 +02:00
fgraph.c
ftrace.c
ftrace: Fix null pointer dereference in ftrace_add_mod()
2022-11-25 17:42:17 +01:00
ftrace_internal.h
Kconfig
Makefile
power-traces.c
preemptirq_delay_test.c
ring_buffer.c
tracing/ring-buffer: Only do full wait when cpu != RING_BUFFER_ALL_CPUS
2023-01-18 11:40:46 +01:00
ring_buffer_benchmark.c
rpm-traces.c
trace.c
tracing/ring-buffer: Have polling block on watermark
2022-12-08 11:23:05 +01:00
trace.h
tracing: Fix pid filtering when triggers are attached
2021-12-01 09:23:29 +01:00
trace_benchmark.c
trace_benchmark.h
trace_branch.c
trace_clock.c
tracing: Do no increment trace_clock_global() by one
2021-06-23 14:41:28 +02:00
trace_dynevent.c
tracing: Free buffers when a used dynamic event is removed
2022-12-08 11:23:04 +01:00
trace_dynevent.h
trace_entries.h
trace_event_perf.c
trace_events.c
tracing: Free buffers when a used dynamic event is removed
2022-12-08 11:23:04 +01:00
trace_events_filter.c
trace_events_filter_test.h
trace_events_hist.c
tracing/histograms: Fix memory leak problem
2022-07-21 20:59:16 +02:00
trace_events_trigger.c
tracing: Dump stacktrace trigger to the corresponding instance
2022-04-27 13:50:45 +02:00
trace_export.c
trace_functions.c
tracing: Have all levels of checks prevent recursion
2021-10-27 09:54:29 +02:00
trace_functions_graph.c
trace_hwlat.c
trace_irqsoff.c
trace_kdb.c
trace_kprobe.c
tracing: Fix return value of __setup handlers
2022-03-08 19:07:50 +01:00
trace_kprobe_selftest.c
trace_kprobe_selftest.h
trace_mmiotrace.c
trace_nop.c
trace_output.c
trace_output.h
trace_preemptirq.c
tracing: hold caller_addr to hardirq_{enable,disable}_ip
2022-09-28 11:03:57 +02:00
trace_printk.c
trace_probe.c
tracing/probes: Have kprobes and uprobes use $COMM too
2022-08-25 11:18:39 +02:00
trace_probe.h
tracing/probes: Reject events which have the same name of existing one
2021-09-22 12:26:43 +02:00
trace_probe_tmpl.h
trace_sched_switch.c
trace_sched_wakeup.c
trace_selftest.c
trace_selftest_dynamic.c
trace_seq.c
trace_stack.c
trace_stat.c
trace_stat.h
trace_syscalls.c
trace_uprobe.c
tracing/uprobe: Fix uprobe_perf_open probes iteration
2021-12-01 09:23:29 +01:00
tracing_map.c
tracing: Fix a kmemleak false positive in tracing_map
2021-12-17 10:12:24 +01:00
tracing_map.h