I'm reading the Linux kernel code. Some functions are called by function pointer. I want to know the call sequence of all these functions, so I've tried to print the function. But I haven't figured out how to make it.
Here is my code:
for (fn = initcall_levels[level]; fn < initcall_levels[level+1]; fn++) {
//printk("xhl -- %pF \n", fn);
do_one_initcall(*fn);
}