Le 04/04/2021 16:11, Jiahao XU a écrit :
I am still totally confused at when is `populate_rootfs` called.
Hi Jiahao,
Have you tried enabling tracing (ftrace IIRC) in the kernel to figure
that out?
Another possibility is to use Doxygen's call graphs, make sure you
restrict the
analysis to minimum set of files you need (just remove all irrelevant
architecures and driver directories from doxygen's input, or extract
them from
your kernel image. I did some experiments on the topic some time ago, it
might
prove useful:
https://bitbucket.org/hchaumette/linux_doxygen/src/master/.
Anyone interested can ask for access.)
Hubert