callout: ddb: resolve symbol of callout function

In the ddb show callout function try to resolve the symbol of the
callout function to improve debugging.  In my case I went through
various callouts from show ktr to check what they were and this saved
me opening lldb/gdb next to it (and still having the old kernel as
the panic to debug was upon reboot).

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Reviewed by:	rlibby
Differential Revision: https://reviews.freebsd.org/D57521
This commit is contained in:
Bjoern A. Zeeb
2026-06-10 11:57:09 +00:00
parent 84008e34ce
commit b8ec4929e9
+3 -1
View File
@@ -1485,7 +1485,9 @@ _show_callout(struct callout *c)
C_DB_PRINTF("%" PRId64, c_time);
C_DB_PRINTF("%" PRId64, c_precision);
C_DB_PRINTF("%p", c_arg);
C_DB_PRINTF("%p", c_func);
db_printf(" %s = %p (", "c_func", c->c_func);
db_printsym((db_addr_t)c->c_func, DB_STGY_ANY);
db_printf(")\n");
C_DB_PRINTF("%p", c_lock);
C_DB_PRINTF("%#x", c_flags);
C_DB_PRINTF("%#x", c_iflags);