commit | df7deb2cceef0546ab2115702da3421b7c61a8c0 | [log] [tgz] |
---|---|---|
author | Jin Yao <[email protected]> | Wed Mar 25 06:07:10 2020 +0800 |
committer | Arnaldo Carvalho de Melo <[email protected]> | Fri Apr 03 09:37:55 2020 -0300 |
tree | 446701849d2dbd215e7463e62ffe4e43bda1ad38 | |
parent | 78886f3ed37e89a06c76b95be873573e27900979 [diff] |
perf top: Support --group-sort-idx to change the sort order 'perf report' supports the option --group-sort-idx, which sorts the output by the event at the index n in event group. For example: perf record -e cycles,instructions,cache-misses perf report --group --group-sort-idx 2 --stdio The perf-report output is sorted by cache-misses. This patch supports --group-sort-idx in perf-top. For example: perf top --group -e cycles,instructions,cache-misses --group-sort-idx 2 The perf-top output is sorted by cache-misses. Signed-off-by: Jin Yao <[email protected]> Suggested-by: Arnaldo Carvalho de Melo <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Jin Yao <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>