diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2008-10-30 03:34:33 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-26 06:13:34 -0500 |
commit | 5f3ea37c7716db4e894a480e0c18b24399595b6b (patch) | |
tree | db6784635d024894f641b340dcd7c5060c446077 /mm | |
parent | 509dceef6470442d8c7b8a43ec34125205840b3c (diff) |
blktrace: port to tracepoints
This was a forward port of work done by Mathieu Desnoyers, I changed it to
encode the 'what' parameter on the tracepoint name, so that one can register
interest in specific events and not on classes of events to then check the
'what' parameter.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/bounce.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/bounce.c b/mm/bounce.c index 06722c403058..bd1caaa582b8 100644 --- a/mm/bounce.c +++ b/mm/bounce.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/hash.h> | 14 | #include <linux/hash.h> |
15 | #include <linux/highmem.h> | 15 | #include <linux/highmem.h> |
16 | #include <linux/blktrace_api.h> | 16 | #include <linux/blktrace_api.h> |
17 | #include <trace/block.h> | ||
17 | #include <asm/tlbflush.h> | 18 | #include <asm/tlbflush.h> |
18 | 19 | ||
19 | #define POOL_SIZE 64 | 20 | #define POOL_SIZE 64 |
@@ -222,7 +223,7 @@ static void __blk_queue_bounce(struct request_queue *q, struct bio **bio_orig, | |||
222 | if (!bio) | 223 | if (!bio) |
223 | return; | 224 | return; |
224 | 225 | ||
225 | blk_add_trace_bio(q, *bio_orig, BLK_TA_BOUNCE); | 226 | trace_block_bio_bounce(q, *bio_orig); |
226 | 227 | ||
227 | /* | 228 | /* |
228 | * at least one page was bounced, fill in possible non-highmem | 229 | * at least one page was bounced, fill in possible non-highmem |