Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp684023rwb; Sat, 3 Sep 2022 00:12:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR6+EijLUsxxsHejpZp+3oN2MHRdEoW1J2TwO2twQZ1yRluvApAaWR9gGdVwagkoa9iP9gwh X-Received: by 2002:a17:903:481:b0:174:3e68:bd4e with SMTP id jj1-20020a170903048100b001743e68bd4emr36950631plb.146.1662189151056; Sat, 03 Sep 2022 00:12:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662189151; cv=none; d=google.com; s=arc-20160816; b=Clgp3TbToMFSIQ8tcqCuHE7uYHgvMrvxMeoCKiq+eKt+1W8Kaps3gGX1Lh859a31VA iKYhTryu7aFuaeftqAfQsBN7kQfI+mZSap4/hsWLcx5RzueSNUobAlW+akg7UWNotZCb JJSNIfVcPEgzAope1WImYhrc8uhPJjqKzvnNqXrq14TC9h1hIqUaBdv4GyKB32IvepRu WDOjKAPqhtPqBUcMs6nDQXNFM7Na5Q0HTIahfcSixg+0wFkl7fUaECWc95SSWLUIacP/ pllcYWEkSletug5BNsxomPlgSeiUqhb/ugLhH9LjiuUYp4kB33V1E201p/0u/oTQ2Zns 8ObQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=lVT8oNKK/jCJGenS1zJ9qb7lMqMSzAbJogNXEkWbZus=; b=TGW0UXF2dixC2HtYp+kh2fnFkPidsLi0QNRj/cwsIaxla36wnbPCmf2UNfVTY6H9ro bZwVfCUBSPLrKlnkRL7RV79EIdvBF79eEtUuhBUOsFtpfYyff9gg43FkMJ2lBZHWG1Hl JJtaig5iXrIQDd89NKoDllUFrvHaztR5tImnzlwZO/TH8qJ84L0xfxzauETYm1SxrZDG hnKBWSq56OGPjuBgUWhAu3tymujWfUBPctUte18dnku9fCgzWps67Dlxd7QHiyB87g/7 VV/EQ+FVJSgTzAuiUdqvDL2+FbW1JN/z8uIwZZZgvEjRTLr3TL5wvjKyeY+yaz5yBGAs /pSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v1-20020a634801000000b0042c5517ad77si4044747pga.678.2022.09.03.00.12.19; Sat, 03 Sep 2022 00:12:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232553AbiICGu7 (ORCPT + 99 others); Sat, 3 Sep 2022 02:50:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231876AbiICGu4 (ORCPT ); Sat, 3 Sep 2022 02:50:56 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D484173307; Fri, 2 Sep 2022 23:50:55 -0700 (PDT) Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MKQNt29yDzrS2y; Sat, 3 Sep 2022 14:49:02 +0800 (CST) Received: from kwepemm600008.china.huawei.com (7.193.23.88) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 3 Sep 2022 14:50:52 +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; Sat, 3 Sep 2022 14:50:51 +0800 From: Shang XiaoJing To: , , , , , , , , CC: Subject: [PATCH 0/3] perf: Clean up and fix potential mem leak Date: Sat, 3 Sep 2022 15:25:39 +0800 Message-ID: <20220903072542.27678-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: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm600008.china.huawei.com (7.193.23.88) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some clean up in perf.c and builtin-c2c.c. Shang XiaoJing (3): perf clean: Add same_cmd_with_prefix helper perf c2c: Add helpers to get counts of loads or stores perf c2c: Prevent potential memory leak in c2c_he_zalloc tools/perf/builtin-c2c.c | 79 ++++++++++++++++++++-------------------- tools/perf/perf.c | 12 ++++-- 2 files changed, 48 insertions(+), 43 deletions(-) -- 2.17.1