Kconfig.debug 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. config NET_DEV_REFCNT_TRACKER
  3. bool "Enable net device refcount tracking"
  4. depends on DEBUG_KERNEL && STACKTRACE_SUPPORT && NET
  5. select REF_TRACKER
  6. default n
  7. help
  8. Enable debugging feature to track device references.
  9. This adds memory and cpu costs.
  10. config NET_NS_REFCNT_TRACKER
  11. bool "Enable networking namespace refcount tracking"
  12. depends on DEBUG_KERNEL && STACKTRACE_SUPPORT && NET
  13. select REF_TRACKER
  14. default n
  15. help
  16. Enable debugging feature to track netns references.
  17. This adds memory and cpu costs.
  18. config DEBUG_NET
  19. bool "Add generic networking debug"
  20. depends on DEBUG_KERNEL && NET
  21. help
  22. Enable extra sanity checks in networking.
  23. This is mostly used by fuzzers, but is safe to select.
  24. config DEBUG_NET_SMALL_RTNL
  25. bool "Add extra per-netns mutex inside RTNL"
  26. depends on DEBUG_KERNEL && NET && LOCK_DEBUGGING_SUPPORT
  27. select PROVE_LOCKING
  28. default n
  29. help
  30. rtnl_lock() is being replaced with rtnl_net_lock() that
  31. acquires the global RTNL and a small per-netns RTNL mutex.
  32. During the conversion, rtnl_net_lock() just adds an extra
  33. mutex in every RTNL scope and slows down the operations.
  34. Once the conversion completes, rtnl_lock() will be removed
  35. and rtnetlink will gain per-netns scalability.