Re: when is populate_rootfs called?
Jiahao XU <[email protected]> Tue, 6 Apr 2021 18:55:52 +1000
| Newsgroups | org.kernel.vger.linux-newbie |
|---|---|
| Message-ID | <CALJHi=9Bu9XWB7VwmddYxffqY71OZ87Ft9PvePc70vsoRPWW2A@mail.gmail.com> |
Hi Hubert Thanks, I'll check it out and try using doxygen to build call graph on x86-6. Regards, Jiahao XU On Tue, Apr 6, 2021 at 6:06 PM Hubert CHAUMETTE <[email protected]> wrote: > > 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