Link: BFD documentation
I've played around with it before to print function names referenced by pointer:
Code:
typedef void (*timer_handler)(uint32_t timer_id, void *data);
struct timer
{
uint32_t timer_id; // Hopefully unique timer id
struct timeval when; // Absolute time when handler is called
timer_handler what; // Handler callback
enum timer_type type; // TT_ONCE or TT_RECUR
struct timeval period; // Period for recurring timers
void *data; // User data passed to callback
struct timer *next;
};
Code:
+timer
timer_id sec usec handler data
-------- ----------- ----------- ------------------- ----------
28 0 242331 sc_finish_wait 0x08ddb3ae
1 0 345609 do_sleep_regen 0x00000000
0 0 446213 dispatch 0x00000000
22 1 123240 sc_finish_wait 0x08dd8ade
23 1 123386 sc_finish_wait 0x08dd996e
5 7 120665 sc_finish_wait 0x08dc52d6
1E 7 204551 sc_finish_wait 0x08ddcc9e
2 16 342762 trig_poison 0x00000000
9 477 206423 sc_finish_wait 0x08ddd786
6 1177 120668 sc_finish_wait 0x08dc5aae
A 3577 238362 sc_finish_wait 0x08ddd92e
B 604777 238367 sc_finish_wait 0x08ddddde