[PATCH 0/4] perf: Clean up by adding helpers

From: Shang XiaoJing
Date: Wed Sep 07 2022 - 21:37:08 EST


Some clean up in builtin-lock.c, builtin-timechart.c, and
builtin-trace.c.

Shang XiaoJing (4):
perf trace: Use zalloc to save initialization of syscall_stats
perf lock: Add get_key_by_aggr_mode helper
perf timechart: Add create_pidcomm helper
perf timechart: Add p_state_end helper

tools/perf/builtin-lock.c | 129 ++++++++++++++-------------------
tools/perf/builtin-timechart.c | 65 +++++++++--------
tools/perf/builtin-trace.c | 5 +-
3 files changed, 88 insertions(+), 111 deletions(-)

--
2.17.1