diff options
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-core.c | 16 | ||||
-rw-r--r-- | block/elevator.c | 8 |
2 files changed, 6 insertions, 18 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 1306de9cce04..9475bf99b891 100644 --- a/block/blk-core.c +++ b/block/blk-core.c | |||
@@ -28,22 +28,14 @@ | |||
28 | #include <linux/task_io_accounting_ops.h> | 28 | #include <linux/task_io_accounting_ops.h> |
29 | #include <linux/blktrace_api.h> | 29 | #include <linux/blktrace_api.h> |
30 | #include <linux/fault-inject.h> | 30 | #include <linux/fault-inject.h> |
31 | #include <trace/block.h> | 31 | |
32 | #define CREATE_TRACE_POINTS | ||
33 | #include <trace/events/block.h> | ||
32 | 34 | ||
33 | #include "blk.h" | 35 | #include "blk.h" |
34 | 36 | ||
35 | DEFINE_TRACE(block_plug); | ||
36 | DEFINE_TRACE(block_unplug_io); | ||
37 | DEFINE_TRACE(block_unplug_timer); | ||
38 | DEFINE_TRACE(block_getrq); | ||
39 | DEFINE_TRACE(block_sleeprq); | ||
40 | DEFINE_TRACE(block_rq_requeue); | ||
41 | DEFINE_TRACE(block_bio_backmerge); | ||
42 | DEFINE_TRACE(block_bio_frontmerge); | ||
43 | DEFINE_TRACE(block_bio_queue); | ||
44 | DEFINE_TRACE(block_rq_complete); | ||
45 | DEFINE_TRACE(block_remap); /* Also used in drivers/md/dm.c */ | ||
46 | EXPORT_TRACEPOINT_SYMBOL_GPL(block_remap); | 37 | EXPORT_TRACEPOINT_SYMBOL_GPL(block_remap); |
38 | EXPORT_TRACEPOINT_SYMBOL_GPL(block_bio_complete); | ||
47 | 39 | ||
48 | static int __make_request(struct request_queue *q, struct bio *bio); | 40 | static int __make_request(struct request_queue *q, struct bio *bio); |
49 | 41 | ||
diff --git a/block/elevator.c b/block/elevator.c index 7073a9072577..e220f0c543e3 100644 --- a/block/elevator.c +++ b/block/elevator.c | |||
@@ -33,17 +33,16 @@ | |||
33 | #include <linux/compiler.h> | 33 | #include <linux/compiler.h> |
34 | #include <linux/delay.h> | 34 | #include <linux/delay.h> |
35 | #include <linux/blktrace_api.h> | 35 | #include <linux/blktrace_api.h> |
36 | #include <trace/block.h> | ||
37 | #include <linux/hash.h> | 36 | #include <linux/hash.h> |
38 | #include <linux/uaccess.h> | 37 | #include <linux/uaccess.h> |
39 | 38 | ||
39 | #include <trace/events/block.h> | ||
40 | |||
40 | #include "blk.h" | 41 | #include "blk.h" |
41 | 42 | ||
42 | static DEFINE_SPINLOCK(elv_list_lock); | 43 | static DEFINE_SPINLOCK(elv_list_lock); |
43 | static LIST_HEAD(elv_list); | 44 | static LIST_HEAD(elv_list); |
44 | 45 | ||
45 | DEFINE_TRACE(block_rq_abort); | ||
46 | |||
47 | /* | 46 | /* |
48 | * Merge hash stuff. | 47 | * Merge hash stuff. |
49 | */ | 48 | */ |
@@ -55,9 +54,6 @@ static const int elv_hash_shift = 6; | |||
55 | #define rq_hash_key(rq) ((rq)->sector + (rq)->nr_sectors) | 54 | #define rq_hash_key(rq) ((rq)->sector + (rq)->nr_sectors) |
56 | #define ELV_ON_HASH(rq) (!hlist_unhashed(&(rq)->hash)) | 55 | #define ELV_ON_HASH(rq) (!hlist_unhashed(&(rq)->hash)) |
57 | 56 | ||
58 | DEFINE_TRACE(block_rq_insert); | ||
59 | DEFINE_TRACE(block_rq_issue); | ||
60 | |||
61 | /* | 57 | /* |
62 | * Query io scheduler to see if the current process issuing bio may be | 58 | * Query io scheduler to see if the current process issuing bio may be |
63 | * merged with rq. | 59 | * merged with rq. |