slub: extend slub debug to handle multiple slabs
authorAaron Tomlin <[email protected]>
Fri, 26 Oct 2018 22:03:15 +0000 (15:03 -0700)
committerLinus Torvalds <[email protected]>
Fri, 26 Oct 2018 23:25:19 +0000 (16:25 -0700)
commitc5fd3ca06b4699e251b4a1fb808c2d5124494101
tree0007bbcd929bd6350d72e3954545ec05e941094e
parent61448479a9f2c954cde0cfe778cb6bec5d0a748d
slub: extend slub debug to handle multiple slabs

Extend the slub_debug syntax to "slub_debug=<flags>[,<slub>]*", where
<slub> may contain an asterisk at the end.  For example, the following
would poison all kmalloc slabs:

slub_debug=P,kmalloc*

and the following would apply the default flags to all kmalloc and all
block IO slabs:

slub_debug=,bio*,kmalloc*

Please note that a similar patch was posted by Iliyan Malchev some time
ago but was never merged:

https://marc.info/?l=linux-mm&m=131283905330474&w=2

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Aaron Tomlin <[email protected]>
Acked-by: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Cc: Iliyan Malchev <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Documentation/vm/slub.rst
mm/slub.c