blob: b7820b0d2621a1d34aa971c84601e884b33fc023 [file] [log] [blame]
Kent Overstreetcafe5632013-03-23 16:11:31 -07001#include "bcache.h"
2#include "btree.h"
Kent Overstreetcafe5632013-03-23 16:11:31 -07003
Kent Overstreetc37511b2013-04-26 15:39:55 -07004#include <linux/blktrace_api.h>
Kent Overstreetcafe5632013-03-23 16:11:31 -07005#include <linux/module.h>
6
7#define CREATE_TRACE_POINTS
8#include <trace/events/bcache.h>
9
10EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_request_start);
11EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_request_end);
Kent Overstreetc37511b2013-04-26 15:39:55 -070012
13EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_bypass_sequential);
14EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_bypass_congested);
15
16EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_read);
17EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_write);
Kent Overstreetcafe5632013-03-23 16:11:31 -070018EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_read_retry);
Kent Overstreetc37511b2013-04-26 15:39:55 -070019
20EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_cache_insert);
21
22EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_journal_replay_key);
23EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_journal_write);
24EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_journal_full);
25EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_journal_entry_full);
26
27EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_cache_cannibalize);
28
Kent Overstreetcafe5632013-03-23 16:11:31 -070029EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_read);
30EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_write);
Kent Overstreetc37511b2013-04-26 15:39:55 -070031
32EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_node_alloc);
33EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_node_alloc_fail);
34EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_node_free);
35
36EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_gc_coalesce);
Kent Overstreetcafe5632013-03-23 16:11:31 -070037EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_gc_start);
38EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_gc_end);
Kent Overstreetc37511b2013-04-26 15:39:55 -070039EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_gc_copy);
40EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_gc_copy_collision);
41
Kent Overstreet85b14922013-05-14 20:33:16 -070042EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_insert_key);
43
Kent Overstreetc37511b2013-04-26 15:39:55 -070044EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_node_split);
45EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_node_compact);
46EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_set_root);
47
Kent Overstreet7159b1a2014-02-12 18:43:32 -080048EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_invalidate);
Kent Overstreetc37511b2013-04-26 15:39:55 -070049EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_alloc_fail);
50
51EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_writeback);
52EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_writeback_collision);