Page MenuHomeFreeBSD

routing: improve debug logging
ClosedPublic

Authored by melifaro on Jun 19 2022, 8:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 11 2024, 9:09 PM
Unknown Object (File)
Dec 23 2023, 8:48 AM
Unknown Object (File)
Dec 5 2023, 5:21 PM
Unknown Object (File)
Nov 4 2023, 4:14 AM
Unknown Object (File)
Oct 31 2023, 4:06 PM
Unknown Object (File)
Oct 3 2023, 4:09 AM
Unknown Object (File)
Sep 29 2023, 4:06 PM
Unknown Object (File)
Sep 20 2023, 1:53 PM
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.