linux/tools/perf
Li Zefan 29b3e15289 perf kmem: Default to sort by fragmentation
Make the output sort by fragmentation by default.

Also make the usage of "--sort" option consistent with other
perf tools. That is, we support multi keys: "--sort
key1[,key2]...".

 # ./perf kmem --stat caller
 ------------------------------------------------------------------------------
 Callsite                    |Total_alloc/Per | Total_req/Per | Hit  | Frag
 ------------------------------------------------------------------------------
 __netdev_alloc_skb+23       |    5048/1682   |    4564/1521  |     3|   9.588%
 perf_event_alloc.clone.0+0  |    7504/682    |    7128/648   |    11|   5.011%
 tracepoint_add_probe+32e    |     157/31     |     154/30    |     5|   1.911%
 alloc_buffer_head+16        |     456/57     |     448/56    |     8|   1.754%
 radix_tree_preload+51       |     584/292    |     576/288   |     2|   1.370%
 ...

TODO:
- Extract duplicate code in builtin-kmem.c and builtin-sched.c
  into util/sort.c.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: linux-mm@kvack.org <linux-mm@kvack.org>
LKML-Reference: <4B0B6E72.7010200@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-11-24 08:49:49 +01:00
..
Documentation perf tools: Add support for breakpoint events in perf tools 2009-11-23 18:18:31 +01:00
bench perf bench: Improve sched-message.c with more comfortable output 2009-11-10 19:56:46 +01:00
util perf tools: Fix compilation on powerpc 2009-11-24 08:35:10 +01:00
.gitignore perf tools: .gitignore += perf*.html 2009-09-24 14:01:22 +02:00
CREDITS perf_counter tools: Add CREDITS file for Git contributors 2009-06-24 19:54:29 +02:00
Makefile perf: Use default compiler mode by default 2009-11-23 07:55:57 +01:00
builtin-annotate.c perf symbols: Look for vmlinux in more places 2009-11-23 19:51:48 +01:00
builtin-bench.c perf bench: Improve builtin-bench.c for more friendly output 2009-11-10 19:56:44 +01:00
builtin-buildid-list.c perf buildid-list: Always show the DSO name 2009-11-17 07:19:54 +01:00
builtin-help.c perf: Clean up trivial style issues in builtin-help.c 2009-11-03 18:37:29 +01:00
builtin-kmem.c perf kmem: Default to sort by fragmentation 2009-11-24 08:49:49 +01:00
builtin-list.c perf list: Fix large list output by using the pager 2009-08-13 09:05:48 +02:00
builtin-probe.c perf/probes: Rename perf probe events group name 2009-11-04 13:02:47 +01:00
builtin-record.c perf record, x86: Print more intelligent error message when sampling fails 2009-11-23 09:40:13 +01:00
builtin-report.c perf symbols: Look for vmlinux in more places 2009-11-23 19:51:48 +01:00
builtin-sched.c perf symbols: Look for vmlinux in more places 2009-11-23 19:51:48 +01:00
builtin-stat.c perf stat: Do not print ratio when task-clock event is not counted 2009-11-15 15:25:50 +01:00
builtin-timechart.c perf tools: perf_header__read() shouldn't die() 2009-11-19 18:47:17 +01:00
builtin-top.c perf tools: Move graph_line and graph_dotted_line from top 2009-11-23 21:55:20 +01:00
builtin-trace.c perf symbols: Look for vmlinux in more places 2009-11-23 19:51:48 +01:00
builtin.h perf: Add 'perf kmem' tool 2009-11-20 09:51:41 +01:00
command-list.txt Merge branch 'perf/core' into perf/probes 2009-11-17 10:17:47 +01:00
design.txt perf_event: Add alignment-faults and emulation-faults software events 2009-10-28 16:13:03 +11:00
perf.c perf: Add 'perf kmem' tool 2009-11-20 09:51:41 +01:00
perf.h perf tools: Add ia64 support for tools/perf/ 2009-11-19 06:03:33 +01:00