summaryrefslogtreecommitdiffstats
path: root/modules/spl/spl-proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/spl/spl-proc.c')
-rw-r--r--modules/spl/spl-proc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/spl/spl-proc.c b/modules/spl/spl-proc.c
index 07e18102a..a8d3485a6 100644
--- a/modules/spl/spl-proc.c
+++ b/modules/spl/spl-proc.c
@@ -60,6 +60,7 @@ enum {
CTL_KMEM_KMEMMAX, /* Max alloc'd by kmem bytes */
CTL_KMEM_VMEMUSED, /* Currently alloc'd vmem bytes */
CTL_KMEM_VMEMMAX, /* Max alloc'd by vmem bytes */
+ CTL_KMEM_ALLOC_FAILED, /* Cache allocation failed */
#endif
CTL_MUTEX_STATS, /* Global mutex statistics */
@@ -660,6 +661,14 @@ static struct ctl_table spl_kmem_table[] = {
.mode = 0444,
.proc_handler = &proc_doulongvec_minmax,
},
+ {
+ .ctl_name = CTL_KMEM_ALLOC_FAILED,
+ .procname = "kmem_alloc_failed",
+ .data = &kmem_cache_alloc_failed,
+ .maxlen = sizeof(atomic64_t),
+ .mode = 0444,
+ .proc_handler = &proc_doatomic64,
+ },
{0},
};
#endif /* DEBUG_KMEM */