trace.c 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #include "bcache.h"
  2. #include "btree.h"
  3. #include <linux/blktrace_api.h>
  4. #include <linux/module.h>
  5. #define CREATE_TRACE_POINTS
  6. #include <trace/events/bcache.h>
  7. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_request_start);
  8. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_request_end);
  9. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_bypass_sequential);
  10. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_bypass_congested);
  11. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_read);
  12. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_write);
  13. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_read_retry);
  14. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_cache_insert);
  15. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_journal_replay_key);
  16. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_journal_write);
  17. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_journal_full);
  18. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_journal_entry_full);
  19. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_cache_cannibalize);
  20. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_read);
  21. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_write);
  22. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_node_alloc);
  23. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_node_alloc_fail);
  24. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_node_free);
  25. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_gc_coalesce);
  26. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_gc_start);
  27. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_gc_end);
  28. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_gc_copy);
  29. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_gc_copy_collision);
  30. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_insert_key);
  31. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_node_split);
  32. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_node_compact);
  33. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_btree_set_root);
  34. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_invalidate);
  35. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_alloc_fail);
  36. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_writeback);
  37. EXPORT_TRACEPOINT_SYMBOL_GPL(bcache_writeback_collision);