[PATCH v6 0/4] perf: Refactor the block info implementation

From: Jin Yao
Date: Sun Feb 02 2020 - 09:17:31 EST


This patch series refactors the block info functionalities to let them
be used by other builtins and allow setting the output fmts flexibly.

It also supports the 'Sampled Cycles%' and 'Avg Cycles%' printed in
colors.

v6:
---
Use __block_info__cmp to replace block_pair_cmp according to Arnaldo's
suggestions. Fix some issues found in block_info__cmp.

New patches:
------------
perf util: Fix wrong block address comparison in block_info__cmp
perf util: Use __block_info__cmp to replace block_pair_cmp

Unchanged patches:
------------------
perf util: Flexible to set block info output formats
perf util: Support color ops to print block percents in color

v5:
---
Only change the patch "perf util: Flexible to set block info output formats".
Other patches are not changed.

Jin Yao (4):
perf util: Fix wrong block address comparison in block_info__cmp
perf util: Use __block_info__cmp to replace block_pair_cmp
perf util: Flexible to set block info output formats
perf util: Support color ops to print block percents in color

tools/perf/builtin-diff.c | 21 +------
tools/perf/builtin-report.c | 21 ++++++-
tools/perf/util/block-info.c | 106 +++++++++++++++++++++--------------
tools/perf/util/block-info.h | 9 ++-
4 files changed, 91 insertions(+), 66 deletions(-)

--
2.17.1