tools/vm/slabinfo: limit the number of reported slabs
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>
Fri, 6 Nov 2015 02:45:20 +0000 (18:45 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Nov 2015 03:34:48 +0000 (19:34 -0800)
commit4980a9639b4bf4948f4cba60e3e6c45a635b98ec
tree60657bf18171f02d2288366f55a7d93f6f0b2dfa
parent2b10075539d334b4732a07857672972fe971f7df
tools/vm/slabinfo: limit the number of reported slabs

Introduce opt "-N|--lines=K" to limit the number of slabs
being reported in output_slabs().

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
tools/vm/slabinfo.c