Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

searcing for the function calls submit_bio

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

like image 543
Ygandelsman Avatar asked Jul 11 '26 01:07

Ygandelsman


1 Answers

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

like image 133
Stephan Roslen Avatar answered Jul 13 '26 16:07

Stephan Roslen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!