perf kmem: Add --sort hit and --sort frag
authorPekka Enberg <penberg@cs.helsinki.fi>
Sun, 22 Nov 2009 09:58:00 +0000 (11:58 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 22 Nov 2009 10:21:37 +0000 (11:21 +0100)
commitf3ced7cdb24e7968a353d828955fa2daf4167e72
treeb7dad79eda3ca8a779ce1c5e467855ea67934335
parent96b02d78a7e47cd189f6b307c5513fec6b2155dc
perf kmem: Add --sort hit and --sort frag

This patch adds support for "--sort hit" and "--sort frag" to
the "perf kmem" tool. The former was already mentioned in the
help text and the latter is useful for finding call-sites that
exhibit worst case behavior for SLAB allocators.

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
Cc: linux-mm@kvack.org <linux-mm@kvack.org>
LKML-Reference: <1258883880-7149-1-git-send-email-penberg@cs.helsinki.fi>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-kmem.c