debugobjects: Track number of kmem_cache_alloc/kmem_cache_free done
authorWaiman Long <longman@redhat.com>
Thu, 5 Jan 2017 20:17:03 +0000 (15:17 -0500)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 4 Feb 2017 08:01:54 +0000 (09:01 +0100)
commitc4b73aabd0989d93b82894417ae501690bd1db5e
tree1f652ea5b9e58b83e86f299e321bb6e6b5732113
parent566cf877a1fcb6d6dc0126b076aad062054c2637
debugobjects: Track number of kmem_cache_alloc/kmem_cache_free done

New debugfs stat counters are added to track the numbers of
kmem_cache_alloc() and kmem_cache_free() function calls to get a
sense of how the internal debug objects cache management is performing.

Signed-off-by: Waiman Long <longman@redhat.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: "Du Changbin" <changbin.du@intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jan Stancek <jstancek@redhat.com>
Link: http://lkml.kernel.org/r/1483647425-4135-2-git-send-email-longman@redhat.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
lib/debugobjects.c