blktrace: support per-partition tracing for ftrace plugin
authorLi Zefan <lizf@cn.fujitsu.com>
Tue, 14 Apr 2009 05:59:34 +0000 (13:59 +0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Apr 2009 08:10:58 +0000 (10:10 +0200)
commit9908c30997b8a73c95f836170b9998dae9aa3f4a
treed44d6d663a150c26b5d7be6edebb1abbb88ecc94
parentd0deef5b14af7d5bbd0003a0a2a1a32326e20a6d
blktrace: support per-partition tracing for ftrace plugin

The previous patch adds support to trace a single partition for
relay+ioctl blktrace, and this patch is for ftrace plugin blktrace:

  # echo 1 > /sys/block/sda/sda7/enable
  # cat start_lba
  102398373
  # cat end_lba
  102703545

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Shawn Du <duyuyang@gmail.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
LKML-Reference: <49E42646.4060608@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/blktrace.c