blob: a9a73f560c044243e2ad9357d22725576ea5bbcc [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Kent Overstreetcafe5632013-03-23 16:11:31 -07002#include "bcache.h"
3#include "btree.h"
Kent Overstreetcafe5632013-03-23 16:11:31 -07004
Kent Overstreetc37511b2013-04-26 15:39:55 -07005#include <linux/blktrace_api.h>
Kent Overstreetcafe5632013-03-23 16:11:31 -07006#include <linux/module.h>
7
8#define CREATE_TRACE_POINTS
9#include <trace/events/bcache.h>
10
11EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_request_start);
12EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_request_end);
Kent Overstreetc37511b2013-04-26 15:39:55 -070013
14EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_bypass_sequential);
15EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_bypass_congested);
16
17EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_read);
18EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_write);
Kent Overstreetcafe5632013-03-23 16:11:31 -070019EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_read_retry);
Kent Overstreetc37511b2013-04-26 15:39:55 -070020
21EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_cache_insert);
22
23EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_journal_replay_key);
24EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_journal_write);
25EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_journal_full);
26EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_journal_entry_full);
27
28EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_cache_cannibalize);
29
Kent Overstreetcafe5632013-03-23 16:11:31 -070030EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_read);
31EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_write);
Kent Overstreetc37511b2013-04-26 15:39:55 -070032
33EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_node_alloc);
34EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_node_alloc_fail);
35EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_node_free);
36
37EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_gc_coalesce);
Kent Overstreetcafe5632013-03-23 16:11:31 -070038EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_gc_start);
39EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_gc_end);
Kent Overstreetc37511b2013-04-26 15:39:55 -070040EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_gc_copy);
41EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_gc_copy_collision);
42
Kent Overstreet85b14922013-05-14 20:33:16 -070043EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_insert_key);
44
Kent Overstreetc37511b2013-04-26 15:39:55 -070045EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_node_split);
46EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_node_compact);
47EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_set_root);
48
Kent Overstreet7159b1a2014-02-12 18:43:32 -080049EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_invalidate);
Kent Overstreetc37511b2013-04-26 15:39:55 -070050EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_alloc_fail);
51
52EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_writeback);
53EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_writeback_collision);