Skip to contentSkip to conversation

Help with Btrfs TracePoints and FTrace

DISCUSSION ygovind 2 participants 2 messages Nov 24, 2014 Btrfs file system

lore
Share & tools
lore

ygovind

author
#0 lore raw

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

#1 lore raw
Quoted 14 lines · ygovind

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.

Quoted 6 lines

Best Regards,
Yash
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected]
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