Page MenuHomeFreeBSD

callout: ddb: resolve symbol of callout function
ClosedPublic

Authored by bz on Jun 10 2026, 12:05 PM.
Tags
None
Referenced Files
F167929938: D57521.diff
Tue, Aug 25, 11:51 AM
F167842794: D57521.id179556.diff
Mon, Aug 24, 10:50 PM
Unknown Object (File)
Mon, Aug 24, 8:29 AM
Unknown Object (File)
Sun, Aug 23, 12:05 PM
Unknown Object (File)
Sun, Aug 23, 2:00 AM
Unknown Object (File)
Fri, Aug 21, 2:59 PM
Unknown Object (File)
Tue, Aug 18, 12:05 PM
Unknown Object (File)
Sat, Aug 15, 5:32 AM
Subscribers

Details

Summary

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz requested review of this revision.Jun 10 2026, 12:05 PM

Looks good. I presume you've tested it?

Just noting two points of consistency, though neither really matters:

  • You cast to db_addr_t, but the type of db_printsym off is db_expr_t, and _show_last_callout casts to db_expr_t. However I note that all other casts for db_printsym besides _show_last_callout cast to db_expr_t.
  • _show_last_callout doesn't add the parens like you do now for _show_callout. I prefer the parens.
This revision is now accepted and ready to land.Jun 10 2026, 3:35 PM
This revision was automatically updated to reflect the committed changes.