Shawn Du d0deef5b14 blktrace: support per-partition tracing
Though one can specify '-d /dev/sda1' when using blktrace, it still
traces the whole sda.

To support per-partition tracing, when we start tracing, we initialize
bt->start_lba and bt->end_lba to the start and end sector of that
partition.

Note some actions are per device, thus we don't filter 0-sector events.

The original patch and discussion can be found here:
	http://marc.info/?l=linux-btrace&m=122949374214540&w=2

Signed-off-by: Shawn Du <duyuyang@gmail.com>
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: Jens Axboe <jens.axboe@oracle.com>
LKML-Reference: <49E42620.4050701@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-04-16 10:10:57 +02:00
..
2009-04-13 04:22:04 -04:00
2009-04-07 08:31:03 -07:00
2009-04-05 02:14:15 -04:00
2009-04-08 14:13:04 +02:00
2009-04-08 00:00:33 -07:00
2009-03-30 21:55:25 +10:30
2009-04-09 00:27:17 +01:00
2009-04-05 00:32:25 +02:00
2009-04-01 08:59:23 -07:00
2009-04-02 00:40:41 +00:00
2009-04-02 11:19:57 +09:00
2009-03-27 20:13:20 -04:00
2009-04-05 00:32:22 +02:00