Troubleshooting tools "Tracing and Troubleshooting Open Source Systems" - probably applies to all BSDs.