Skip to content

Commit 2db270a

Browse files
fweisbecIngo Molnar
authored andcommitted
tracing/blktrace: move the tracing file to kernel/trace
Impact: cleanup Move blktrace.c to kernel/trace, also move its config entry. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com> Acked-by: Jens Axboe <jens.axboe@oracle.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent 44b0635 commit 2db270a

File tree

5 files changed

+25
-26
lines changed

5 files changed

+25
-26
lines changed

block/Kconfig

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -44,30 +44,6 @@ config LBD
4444

4545
If unsure, say N.
4646

47-
config BLK_DEV_IO_TRACE
48-
bool "Support for tracing block io actions"
49-
depends on SYSFS
50-
select RELAY
51-
select DEBUG_FS
52-
select TRACEPOINTS
53-
select TRACING
54-
select STACKTRACE
55-
help
56-
Say Y here if you want to be able to trace the block layer actions
57-
on a given queue. Tracing allows you to see any traffic happening
58-
on a block device queue. For more information (and the userspace
59-
support tools needed), fetch the blktrace tools from:
60-
61-
git://git.kernel.dk/blktrace.git
62-
63-
Tracing also is possible using the ftrace interface, e.g.:
64-
65-
echo 1 > /sys/block/sda/sda1/trace/enable
66-
echo blk > /sys/kernel/debug/tracing/current_tracer
67-
cat /sys/kernel/debug/tracing/trace_pipe
68-
69-
If unsure, say N.
70-
7147
config BLK_DEV_BSG
7248
bool "Block layer SG support v4 (EXPERIMENTAL)"
7349
depends on EXPERIMENTAL

block/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@ obj-$(CONFIG_IOSCHED_AS) += as-iosched.o
1313
obj-$(CONFIG_IOSCHED_DEADLINE)+= deadline-iosched.o
1414
obj-$(CONFIG_IOSCHED_CFQ)+= cfq-iosched.o
1515

16-
obj-$(CONFIG_BLK_DEV_IO_TRACE)+= blktrace.o
1716
obj-$(CONFIG_BLOCK_COMPAT)+= compat_ioctl.o
1817
obj-$(CONFIG_BLK_DEV_INTEGRITY)+= blk-integrity.o

kernel/trace/Kconfig

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,29 @@ config WORKQUEUE_TRACER
302302
For example it can help a developer to decide whether he should
303303
choose a per cpu workqueue instead of a singlethreaded one.
304304

305+
config BLK_DEV_IO_TRACE
306+
bool "Support for tracing block io actions"
307+
depends on SYSFS
308+
select RELAY
309+
select DEBUG_FS
310+
select TRACEPOINTS
311+
select TRACING
312+
select STACKTRACE
313+
help
314+
Say Y here if you want to be able to trace the block layer actions
315+
on a given queue. Tracing allows you to see any traffic happening
316+
on a block device queue. For more information (and the userspace
317+
support tools needed), fetch the blktrace tools from:
318+
319+
git://git.kernel.dk/blktrace.git
320+
321+
Tracing also is possible using the ftrace interface, e.g.:
322+
323+
echo 1 > /sys/block/sda/sda1/trace/enable
324+
echo blk > /sys/kernel/debug/tracing/current_tracer
325+
cat /sys/kernel/debug/tracing/trace_pipe
326+
327+
If unsure, say N.
305328

306329
config DYNAMIC_FTRACE
307330
bool "enable/disable ftrace tracepoints dynamically"

kernel/trace/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@ obj-$(CONFIG_HW_BRANCH_TRACER) += trace_hw_branches.o
3737
obj-$(CONFIG_POWER_TRACER) += trace_power.o
3838
obj-$(CONFIG_KMEMTRACE) += kmemtrace.o
3939
obj-$(CONFIG_WORKQUEUE_TRACER) += trace_workqueue.o
40+
obj-$(CONFIG_BLK_DEV_IO_TRACE)+= blktrace.o
4041

4142
libftrace-y := ftrace.o
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <linux/time.h>
2626
#include <trace/block.h>
2727
#include <linux/uaccess.h>
28-
#include <../kernel/trace/trace_output.h>
28+
#include "trace_output.h"
2929

3030
static unsigned int blktrace_seq __read_mostly = 1;
3131

0 commit comments

Comments
 (0)