On Mon, Nov 24, 2014 at 7:03 AM, ygovind <ygov...@cs.wisc.edu> wrote: > Hi - I have taken minor project on Btrfs file system as my independent study > and trying to understand data/metadata allocation algorithm used in Btrfs > file system. I would like to know how can I use Btrfs Tracepoints and Ftrace > to debug. I was trying to find documents on web but wasn't able to find any > document which can guide me through step by step process on using Btrfs > Tracepoints or Ftrace on Btrfs. > > All the study so far is happening on a laptop with virtual box Ubuntu. I > have downloaded latest kernel and trying to understand the flow by putting > printk statements and compiling that module. In this setup - if you can > guide me through the process of setting up tracepoints or Ftrace - that will > really help me. Also, if you have any other suggestions on understanding > allocation algorithms for data/metadata - I am open to learn. > > Best Regards, > Yash > -- > To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Yash, Go through the design documents available online. btrfs makes use of COW B-tree. You can get some papers related to this. For tracing, you can also make use of systemtap. - Rohan -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html