[PATCH tip 1/1] blktrace: the ftrace interface needs CONFIG_TRACING



Resend, the first time I forgot to add [PATCH tip 1/1].

Ingo, this fix that problem you reported me, where a .config didn't had
CONFIG_TRACING selected.

Impact: Fix Kconfig selection for blktrace

Also mention in the help text that blktrace now can be used using
the ftrace interface.

Cc: Jens Axboe <jens.axboe@xxxxxxxxxx>
Reported-by: Ingo Molnar <mingo@xxxxxxx>
Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>

diff --git a/block/Kconfig b/block/Kconfig
index 0cbb3b8..7cdaa1d 100644
--- a/block/Kconfig
+++ b/block/Kconfig
@@ -50,6 +50,8 @@ config BLK_DEV_IO_TRACE
select RELAY
select DEBUG_FS
select TRACEPOINTS
+ select TRACING
+ select STACKTRACE
help
Say Y here if you want to be able to trace the block layer actions
on a given queue. Tracing allows you to see any traffic happening
@@ -58,6 +60,12 @@ config BLK_DEV_IO_TRACE

git://git.kernel.dk/blktrace.git

+ Tracing also is possible using the ftrace interface, e.g.:
+
+ echo 1 > /sys/block/sda/sda1/trace/enable
+ echo blk > /sys/kernel/debug/tracing/current_tracer
+ cat /sys/kernel/debug/tracing/trace_pipe
+
If unsure, say N.

config BLK_DEV_BSG
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Linux 2.6.26-rc1
    ... fix for modular builds" patch on lkml. ... stkwebcam patch can be re-done without forcing suport to the legacy V4L1 API. ... config USB_STKWEBCAM ... +#warning You need to configure some hardware for this driver ...
    (Linux-Kernel)
  • Please pull git390 for-linus branch
    ... to receive the following updates: ... idle: Fix machine check handling in idle loop. ... Fix IPL from NSS. ... +config FORCE_MAX_ZONEORDER ...
    (Linux-Kernel)
  • [GIT PULL] kbuild fixes
    ... patch-kernel fix ... a better way to generate cscope database change ... config MODULE_FORCE_LOAD ... bool "Forced module loading" ...
    (Linux-Kernel)
  • Re: [PATCH] sparseirq: fix numa_migrate_irq_desc dependency and comments
    ... Bartlomiej Zolnierkiewicz pointed out config and comments ... update it depend to NUMA, ... Subject: sparseirq: fix numa_migrate_irq_desc dependency and comments ... Bartlomiej pointed out that the config dependencies and comments are not right. ...
    (Linux-Kernel)
  • [2.6.25 - stable] Fix Kconfig dependencies to prevent CONFIG_X86_VSMP from vanishing
    ... There was a Kconfig bug found sometime back which made CONFIG_X86_VSMP ... disappear from the .config. ... The fixes consisted of 3 patches, but the first one is sufficient to fix the ... bool "Support for ScaleMP vSMP" ...
    (Linux-Kernel)