Page MenuHomeFreeBSD

routing: improve debug logging
ClosedPublic

Authored by melifaro on Jun 19 2022, 8:13 PM.
Tags
None
Referenced Files
F154279966: D35525.id.diff
Mon, Apr 27, 1:56 PM
Unknown Object (File)
Sat, Apr 25, 5:03 PM
Unknown Object (File)
Thu, Apr 23, 2:37 PM
Unknown Object (File)
Tue, Apr 7, 9:57 AM
Unknown Object (File)
Fri, Apr 3, 5:23 AM
Unknown Object (File)
Thu, Apr 2, 11:38 AM
Unknown Object (File)
Mar 18 2026, 6:50 PM
Unknown Object (File)
Feb 15 2026, 4:49 AM
Subscribers

Details

Summary

Use standard logging (FIB_XX_LOG) across nhg code instead of using old-style DPRINTFs.
Add debug object printer for nhgs (nhgrp_print_buf).

Example:

Jun 19 20:17:09 devel2 kernel: [nhgrp] inet.0 nhgrp_ctl_alloc_default: multipath init done
Jun 19 20:17:09 devel2 kernel: [nhg_ctl] inet.0 alloc_nhgrp: num_nhops: 2, compiled_nhop: 2

Jun 19 20:17:26 devel2 kernel: [nhg_ctl] inet.0 alloc_nhgrp: num_nhops: 3, compiled_nhop: 3
Jun 19 20:17:26 devel2 kernel: [nhg_ctl] inet.0 destroy_nhgrp: destroying nhg#0/sz=2:[#6:1,#5:1]

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46031
Build 42920: arc lint + arc unit

Event Timeline

melifaro retitled this revision from routing: add fancy nhg printer; use standard debug logging across routing code to routing: improve debug logging.Jun 19 2022, 8:19 PM
melifaro edited the summary of this revision. (Show Details)
melifaro added a reviewer: network.
This revision was not accepted when it landed; it landed in state Needs Review.Jun 22 2022, 3:59 PM
This revision was automatically updated to reflect the committed changes.