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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7ED5AC433EF for ; Tue, 19 Oct 2021 11:27:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 678EB60EB1 for ; Tue, 19 Oct 2021 11:27:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235285AbhJSL3o (ORCPT ); Tue, 19 Oct 2021 07:29:44 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:4007 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230097AbhJSL3m (ORCPT ); Tue, 19 Oct 2021 07:29:42 -0400 Received: from fraeml713-chm.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4HYWbr6td4z67w09; Tue, 19 Oct 2021 19:24:24 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml713-chm.china.huawei.com (10.206.15.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.15; Tue, 19 Oct 2021 13:27:27 +0200 Received: from [10.47.85.98] (10.47.85.98) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.15; Tue, 19 Oct 2021 12:27:26 +0100 Subject: Re: [PATCH v2 07/21] perf metric: Add metric new and free To: Ian Rogers , Andi Kleen , "Jiri Olsa" , Namhyung Kim , Kajol Jain , "Paul A . Clarke" , "Arnaldo Carvalho de Melo" , Riccardo Mancini , Kan Liang , Peter Zijlstra , "Ingo Molnar" , Mark Rutland , "Alexander Shishkin" , Kees Cook , Sami Tolvanen , "Nick Desaulniers" , Andrew Morton , Jacob Keller , "Zhen Lei" , ToastC , "Joakim Zhang" , Felix Fietkau , Jiapeng Chong , Song Liu , "Fabian Hemmer" , Alexander Antonov , Nicholas Fraser , Adrian Hunter , Denys Zagorui , Wan Jiabing , Thomas Richter , "Sumanth Korikkar" , Heiko Carstens , , , , Andrew Kilroy CC: Stephane Eranian References: <20211015172132.1162559-1-irogers@google.com> <20211015172132.1162559-8-irogers@google.com> From: John Garry Message-ID: <2a4e8994-ebe7-7623-7e72-e3abb2ae8d0f@huawei.com> Date: Tue, 19 Oct 2021 12:30:15 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: <20211015172132.1162559-8-irogers@google.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.85.98] X-ClientProxiedBy: lhreml718-chm.china.huawei.com (10.201.108.69) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/10/2021 18:21, Ian Rogers wrote: > Metrics are complex enough that a new/free reduces the risk of memory > leaks. Move static functions used in new. > > Acked-by: Andi Kleen > Signed-off-by: Ian Rogers Reviewed-by: John Garry