Re: [PATCH v3 1/7] perf list: Sort the output of 'perf list' to view more clearly

2015-02-27 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 27, 2015 at 06:21:25PM +0800, Yunlong Song escreveu: > Sort the output according to ASCII character list (using strcmp), which > supports both number sequence and alphabet sequence. That is a great feature to have, thanks! But you are not calling closedir() if zalloc fails, I am fixin

[PATCH v3 1/7] perf list: Sort the output of 'perf list' to view more clearly

2015-02-27 Thread Yunlong Song
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] instruc