From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7CA1743004; Tue, 8 Aug 2023 03:11:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5BA9C40DFD; Tue, 8 Aug 2023 03:11:15 +0200 (CEST) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by mails.dpdk.org (Postfix) with ESMTP id 4E0B240DDC for ; Tue, 8 Aug 2023 03:11:13 +0200 (CEST) Received: from dggpeml100024.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RKZmZ5WstztRmm; Tue, 8 Aug 2023 09:07:42 +0800 (CST) Received: from [10.67.100.224] (10.67.100.224) by dggpeml100024.china.huawei.com (7.185.36.115) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 8 Aug 2023 09:11:10 +0800 Subject: Re: [PATCH] app/proc-info: remove unnecessary rte_malloc To: Stephen Hemminger , References: <20230807204310.117986-1-stephen@networkplumber.org> From: fengchengwen Message-ID: <8f9434ba-388b-539e-560c-64bf71c7d873@huawei.com> Date: Tue, 8 Aug 2023 09:11:10 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20230807204310.117986-1-stephen@networkplumber.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.100.224] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml100024.china.huawei.com (7.185.36.115) X-CFilter-Loop: Reflected X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Acked-by: Chengwen Feng On 2023/8/8 4:43, Stephen Hemminger wrote: > Better to use malloc() which is faster and has more error > checking, as is done already for statistics. > > Fixes: 077c546704da ("app/proc_info: add metrics displaying") > Signed-off-by: Stephen Hemminger > --- > app/proc-info/main.c | 20 +++++++++----------- > 1 file changed, 9 insertions(+), 11 deletions(-) > ... > >