diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2003-03-26 20:44:29 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2003-03-26 20:44:29 +0000 |
| commit | f2538508f681873a842023c4967216d04abd6d26 (patch) | |
| tree | 41fc20af29b6435702bc0ff79a592d4537ff0d4b | |
| parent | c26adbe32267405872aab9b05823c1e00c85c182 (diff) | |
Notes
| -rw-r--r-- | sys/kern/kern_malloc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c index 048c4b34d095..996b1109886a 100644 --- a/sys/kern/kern_malloc.c +++ b/sys/kern/kern_malloc.c @@ -151,6 +151,7 @@ static int malloc_nowait_count; static int malloc_failure_count; SYSCTL_INT(_debug_malloc, OID_AUTO, failure_rate, CTLFLAG_RW, &malloc_failure_rate, 0, "Every (n) mallocs with M_NOWAIT will fail"); +TUNABLE_INT("debug.malloc.failure_rate", &malloc_failure_rate); SYSCTL_INT(_debug_malloc, OID_AUTO, failure_count, CTLFLAG_RD, &malloc_failure_count, 0, "Number of imposed M_NOWAIT malloc failures"); #endif |
