This patch series is for several minor code refactoring, which is extracted from the patch series "perf c2c: Sort cacheline with all loads" [1].
There has a known issue for Arm SPE store operations and Arm SPE is the only consumer for soring with all loads, this is the reason in this series drops the changes for dimensions and sorting, and only extracts the patches related with code refactoring. So this series doesn't introduce any functionality change. The patches have been tested on x86_64 and compared the result before and after applying the patches, and confirmed no difference for the output result. Changes from v2: * Changed to use static functions to replace macros (Namhyung); * Added Jiri's Ack tags in the unchanged patches; * Minor improvement in the commit logs. [1] https://lore.kernel.org/patchwork/cover/1353064/ Leo Yan (5): perf c2c: Rename for shared cache line stats perf c2c: Refactor hist entry validation perf c2c: Refactor display filter perf c2c: Refactor node display perf c2c: Add local variables for output metrics tools/perf/builtin-c2c.c | 173 ++++++++++++++++++++++++--------------- 1 file changed, 105 insertions(+), 68 deletions(-) -- 2.25.1