title: How to print function name with function pointer in Linux kernel?
body: <p>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.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>for (fn = initcall_levels[level]; fn &lt; initcall_levels[level+1]; fn++) {
      //printk("xhl -- %pF \n", fn);
      do_one_initcall(*fn);
  }
  </code></pre>