Skip to contentSkip to conversation

Turn on net_dbg_ratelimited() diagnostics in linux-5.10.67 ?

DISCUSSION Templin (US), Fred L 2 participants 2 messages Sep 28, 2021 – Sep 29, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi, it has been a while since I have delved into linux kernel networking internals, and it appears that diagnostics-generation code has been significantly cleaned up over the years since I last checked. I am working in linux-5.10.67, and I see that network diagnostics are now generated by calls to "net_dbg_ratelimited()" but that these seem to be disabled by default.

How can I turn on net_dbg_ratelimited() diagnostics, and once enabled where do I go to see the diagnostics output?

Thanks - Fred

#1 lore raw
Quoted 9 lines · Fred L

Hi, it has been a while since I have delved into linux kernel networking internals, and it appears that diagnostics-generation code has been significantly cleaned up over the years since I last checked. I am working in linux-5.10.67, and I see that network diagnostics are now generated by calls to "net_dbg_ratelimited()" but that these seem to be disabled by default.

How can I turn on net_dbg_ratelimited() diagnostics, and once enabled where do I go to see the diagnostics output?

Please look at how to use dynamic debug:
https://www.kernel.org/doc/html/v5.0/admin-guide/dynamic-debug-howto.html

Thanks.