mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-21 07:15:49 +00:00
netinet: default mib counter probe points off
Disable the IP/IP6/ICMP/... counter probe points by default. They are kept enabled in debug builds, and can be enabled with 'options KDTRACE_MIB_SDT'. Requested by: glebius Reviewed by: glebius Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D47657
This commit is contained in:
parent
9229236fb9
commit
438ca68cef
@ -143,7 +143,7 @@ GEOM_ZERO opt_geom.h
|
||||
IFLIB opt_iflib.h
|
||||
KDTRACE_HOOKS opt_global.h
|
||||
KDTRACE_FRAME opt_kdtrace.h
|
||||
KDTRACE_NO_MIB_SDT opt_global.h
|
||||
KDTRACE_MIB_SDT opt_global.h
|
||||
KN_HASHSIZE opt_kqueue.h
|
||||
KSTACK_MAX_PAGES
|
||||
KSTACK_PAGES
|
||||
|
@ -15,3 +15,4 @@ options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed
|
||||
options MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones
|
||||
options VERBOSE_SYSINIT=0 # Support debug.verbose_sysinit, off by default
|
||||
options ALT_BREAK_TO_DEBUGGER # Enter debugger on keyboard escape sequence
|
||||
options KDTRACE_MIB_SDT # Add SDT probes to network counters
|
||||
|
@ -15,6 +15,7 @@ nooptions COVERAGE
|
||||
nooptions KCOV
|
||||
nooptions MALLOC_DEBUG_MAXZONES
|
||||
nooptions QUEUE_MACRO_DEBUG_TRASH
|
||||
nooptions KDTRACE_MIB_SDT
|
||||
|
||||
# Net80211 debugging
|
||||
nooptions IEEE80211_DEBUG
|
||||
|
@ -36,7 +36,7 @@ SDT_PROVIDER_DEFINE(tcp);
|
||||
SDT_PROVIDER_DEFINE(udp);
|
||||
SDT_PROVIDER_DEFINE(udplite);
|
||||
|
||||
#ifndef KDTRACE_NO_MIB_SDT
|
||||
#ifdef KDTRACE_MIB_SDT
|
||||
#define MIB_PROBE_IP(name) \
|
||||
SDT_PROBE_DEFINE1(mib, ip, count, name, \
|
||||
"int")
|
||||
|
@ -54,7 +54,7 @@ SDT_PROVIDER_DECLARE(tcp);
|
||||
SDT_PROVIDER_DECLARE(udp);
|
||||
SDT_PROVIDER_DECLARE(udplite);
|
||||
|
||||
#ifndef KDTRACE_NO_MIB_SDT
|
||||
#ifdef KDTRACE_MIB_SDT
|
||||
SDT_PROVIDER_DECLARE(mib);
|
||||
|
||||
SDT_PROBE_DECLARE(mib, ip, count, ips_total);
|
||||
|
@ -357,7 +357,7 @@ __sdt_probe##uniq:; \
|
||||
(uintptr_t)arg0, (uintptr_t)arg1, (uintptr_t)arg2, \
|
||||
(uintptr_t)arg3, (uintptr_t)arg4, (uintptr_t)arg5)
|
||||
|
||||
#ifndef KDTRACE_NO_MIB_SDT
|
||||
#ifdef KDTRACE_MIB_SDT
|
||||
#define MIB_SDT_PROBE1(...) SDT_PROBE1(mib, __VA_ARGS__)
|
||||
#define MIB_SDT_PROBE2(...) SDT_PROBE2(mib, __VA_ARGS__)
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user