xref: /linux/drivers/md/bcache/trace.c (revision 8c994eff8fcfe8ecb1f1dbebed25b4d7bb75be12)
1 // SPDX-License-Identifier: GPL-2.0
2 #include "bcache.h"
3 #include "btree.h"
4 
5 #include <linux/blktrace_api.h>
6 #include <linux/module.h>
7 
8 #define CREATE_TRACE_POINTS
9 #include <trace/events/bcache.h>
10 
11 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_request_start);
12 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_request_end);
13 
14 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_bypass_sequential);
15 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_bypass_congested);
16 
17 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_read);
18 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_write);
19 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_read_retry);
20 
21 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_cache_insert);
22 
23 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_journal_replay_key);
24 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_journal_write);
25 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_journal_full);
26 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_journal_entry_full);
27 
28 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_cache_cannibalize);
29 
30 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_read);
31 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_write);
32 
33 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_node_alloc);
34 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_node_alloc_fail);
35 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_node_free);
36 
37 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_gc_coalesce);
38 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_gc_start);
39 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_gc_end);
40 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_gc_copy);
41 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_gc_copy_collision);
42 
43 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_insert_key);
44 
45 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_node_split);
46 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_node_compact);
47 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_set_root);
48 
49 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_invalidate);
50 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_alloc_fail);
51 
52 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_writeback);
53 EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_writeback_collision);
54