Li Zefan
1d54ad6da9
blktrace: add trace/ to /sys/block/sda
Impact: allow ftrace-plugin blktrace to trace device-mapper devices
To trace a single partition:
# echo 1 > /sys/block/sda/sda1/enable
To trace the whole sda instead:
# echo 1 > /sys/block/sda/enable
Thus we also fix an issue reported by Ted, that ftrace-plugin blktrace
can't be used to trace device-mapper devices.
Now:
# echo 1 > /sys/block/dm-0/trace/enable
echo: write error: No such device or address
# mount -t ext4 /dev/dm-0 /mnt
# echo 1 > /sys/block/dm-0/trace/enable
# echo blk > /debug/tracing/current_tracer
Reported-by: Theodore Tso <tytso@mit.edu>
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: <49E42665.6020506@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-04-16 10:10:59 +02:00
..
2008-12-29 08:29:50 +01:00
2009-01-30 12:34:37 +01:00
2009-04-07 14:10:10 -07:00
2008-10-09 08:56:03 +02:00
2009-01-30 12:34:36 +01:00
2008-05-07 09:28:57 +02:00
2009-01-02 11:10:35 -06:00
2009-04-07 08:12:38 +02:00
2009-04-06 20:00:29 -04:00
2009-02-25 14:13:44 +01:00
2009-04-16 10:10:59 +02:00
2008-12-29 08:28:43 +01:00
2009-02-18 10:34:16 +01:00
2009-04-07 08:12:38 +02:00
2009-03-26 11:01:25 +01:00
2009-04-07 11:38:31 +02:00
2009-03-12 12:58:13 -05:00
2009-04-16 10:10:57 +02:00
2008-12-29 08:29:50 +01:00
2009-04-07 08:12:38 +02:00
2009-02-26 10:45:48 +01:00
2008-12-29 08:28:43 +01:00
2009-02-09 10:51:02 +01:00
2007-02-17 20:08:22 +01:00
2009-02-09 10:51:02 +01:00
2008-12-29 08:29:50 +01:00
2009-03-26 11:01:23 +01:00