Yunlong Song
ab0e48002d
perf list: Sort the output of 'perf list' to view more clearly
Sort the output according to ASCII character list (using strcmp), which
supports both number sequence and alphabet sequence.
Example:
Before this patch:
$ perf list
List of pre-defined events (to be used in -e):
cpu-cycles OR cycles [Hardware event]
instructions [Hardware event]
cache-references [Hardware event]
cache-misses [Hardware event]
branch-instructions OR branches [Hardware event]
branch-misses [Hardware event]
bus-cycles [Hardware event]
... ...
jbd2:jbd2_start_commit [Tracepoint event]
jbd2:jbd2_commit_locking [Tracepoint event]
jbd2:jbd2_run_stats [Tracepoint event]
block:block_rq_issue [Tracepoint event]
block:block_bio_complete [Tracepoint event]
block:block_bio_backmerge [Tracepoint event]
block:block_getrq [Tracepoint event]
... ...
After this patch:
$ perf list
List of pre-defined events (to be used in -e):
branch-instructions OR branches [Hardware event]
branch-misses [Hardware event]
bus-cycles [Hardware event]
cache-misses [Hardware event]
cache-references [Hardware event]
cpu-cycles OR cycles [Hardware event]
instructions [Hardware event]
... ...
block:block_bio_backmerge [Tracepoint event]
block:block_bio_complete [Tracepoint event]
block:block_getrq [Tracepoint event]
block:block_rq_issue [Tracepoint event]
jbd2:jbd2_commit_locking [Tracepoint event]
jbd2:jbd2_run_stats [Tracepoint event]
jbd2:jbd2_start_commit [Tracepoint event]
... ...
Signed-off-by: Yunlong Song <yunlong.song@huawei.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/1425032491-20224-2-git-send-email-yunlong.song@huawei.com
[ Don't forget closedir({sys,evt}_dir) when handling errors ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-02-27 15:51:44 -03:00
..
2015-02-12 13:22:01 -03:00
2015-02-12 11:32:32 -03:00
2015-02-25 16:13:12 -03:00
2015-02-27 10:08:38 -03:00
2013-08-07 17:35:25 -03:00
2015-02-12 11:49:53 -03:00
2015-02-12 11:40:32 -03:00
2015-02-12 11:49:12 -03:00
2015-02-27 15:51:44 -03:00
2014-11-19 12:34:24 -03:00
2015-02-25 12:42:25 -03:00
2014-12-23 12:01:37 -03:00
2014-06-19 16:13:15 -03:00
2015-02-27 10:08:37 -03:00
2013-10-21 17:33:25 -03:00
2015-02-27 10:43:18 -03:00
2015-01-21 13:24:35 -03:00
2014-09-26 12:32:58 -03:00
2014-08-15 13:08:26 -03:00
2015-01-29 16:58:24 -03:00
2014-09-26 12:32:58 -03:00
2014-12-10 12:08:59 -03:00
2015-02-13 11:57:50 -03:00
2014-09-26 12:32:58 -03:00
2015-01-21 13:24:31 -03:00
2014-10-29 10:32:49 -02:00
2015-02-25 12:42:23 -03:00
2015-02-18 17:16:17 +01:00
2015-02-22 22:22:57 -03:00
2014-10-29 10:32:47 -02:00
2015-01-21 13:24:31 -03:00
2014-10-29 10:32:47 -02:00
2015-02-22 22:22:57 -03:00
2015-02-26 11:59:04 -03:00
2015-02-25 12:42:25 -03:00
2015-02-25 12:42:25 -03:00
2014-03-18 18:17:06 -03:00
2014-01-16 16:26:26 -03:00
2015-02-25 12:42:24 -03:00
2015-02-11 18:30:03 -03:00
2012-09-17 13:10:42 -03:00
2014-04-16 17:16:05 +02:00
2014-10-29 10:32:48 -02:00
2015-01-16 17:49:29 -03:00
2014-09-17 17:08:08 -03:00
2015-02-25 12:42:25 -03:00
2015-02-25 12:42:23 -03:00