From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8227CC6FA86 for ; Thu, 8 Sep 2022 01:37:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229845AbiIHBhG (ORCPT ); Wed, 7 Sep 2022 21:37:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbiIHBhE (ORCPT ); Wed, 7 Sep 2022 21:37:04 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC3B4C6CF5; Wed, 7 Sep 2022 18:37:02 -0700 (PDT) Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MNM870B20zkWvl; Thu, 8 Sep 2022 09:33:11 +0800 (CST) Received: from kwepemm600008.china.huawei.com (7.193.23.88) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 8 Sep 2022 09:37:00 +0800 Received: from huawei.com (10.175.100.227) by kwepemm600008.china.huawei.com (7.193.23.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 8 Sep 2022 09:36:59 +0800 From: Shang XiaoJing To: , , , , , , , , CC: Subject: [PATCH 0/4] perf: Clean up by adding helpers Date: Thu, 8 Sep 2022 10:11:37 +0800 Message-ID: <20220908021141.27134-1-shangxiaojing@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.100.227] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm600008.china.huawei.com (7.193.23.88) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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