How to convert function pointer to function name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux