How to setup tracepoints or Ftrace for Btrfs filesystem
I am trying to learn Btrfs Data/Metadata allocation algorithm and planning to use FTRACE or BTRFS Tracepoints but I don't find any documentation on how to setup FTRACE or tracepoints on the web for Btrfs kernel modules.
I am doing this study on Virtualbox ubuntu on a laptop. I have downloaded latest kernel and trying to understand btrfs modules by adding printk statements but this is very time consuming and so far I am not really confident on how the code flows and how data/metadata allocation is being done in Btrfs.
Any help will be appreciated.