Page MenuHomeFreeBSD

routing: improve debug logging
ClosedPublic

Authored by melifaro on Jun 19 2022, 8:13 PM.
Tags
None
Referenced Files
F103893963: D35525.diff
Sat, Nov 30, 8:36 PM
Unknown Object (File)
Tue, Nov 19, 2:24 AM
Unknown Object (File)
Tue, Nov 19, 12:21 AM
Unknown Object (File)
Fri, Nov 15, 2:58 PM
Unknown Object (File)
Thu, Nov 7, 2:12 AM
Unknown Object (File)
Fri, Nov 1, 7:08 AM
Unknown Object (File)
Oct 18 2024, 2:31 AM
Unknown Object (File)
Oct 2 2024, 6:35 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.