"gee it would be nice if i could see every time a given kernel function gets called... too bad i'd have to recompile the kernel and reboot to insert a print"
well guess what. you don't need to, because ftrace exists, and it can do that and also a bunch of other stuff.
it apparently existed since 2008
i just watched a 15 minute demo of what it can do and... wait, why didn't i know about this sooner? https://www.brendangregg.com/blog/2016-12-27/linux-tracing-in-15-minutes.html
well guess what. you don't need to, because ftrace exists, and it can do that and also a bunch of other stuff.
it apparently existed since 2008
i just watched a 15 minute demo of what it can do and... wait, why didn't i know about this sooner? https://www.brendangregg.com/blog/2016-12-27/linux-tracing-in-15-minutes.html