2008/11/7 J.H.Kim <frog1120@xxxxxxxxx>: > Hi, everyone > > How can I convert function pointer to function symbol to print out the name > of the function? > > For example, in console_init(), I'd like to print out the function name of > (*call)() using printk(). > > call = __con_initcall_start; > > while (call < __con_initcall_end) { > (*call)(); > call++; > } > > Is it only way to find out the function symbol > that compare the address of call with those in System.map? > > If there is other methods to do it, please let me know them. > > Thanks in advance. > > Regards, > J.H.Kim Hi. Just use the %pF format: printk("%pF\n", my_addr); If this address is in a function, it will print its plus the offset of the code inside. -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ