I am trying to intercept the submission of io requests in the submit_bio for a project I do in Linux.
I want to find the main function that calls submit_bio, to submit blocks.
I believe that there is a function that takes a page and submits the blocks in it.
I am searching for such a function in Linux kernel that takes a page to submit and submits the blocks in it using submit_bio.
Can anyone help me?
Thanks
You could either look at https://elixir.bootlin.com/linux/latest/A/ident/submit_bio and read the code around the references to submit_bio or use a tool like perf ( $(KERNEL_SRC_DIR)/tools/perf ) to get statistics on stacktraces. A simple tutorial to perf can be found here: https://perf.wiki.kernel.org/index.php/Tutorial
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With