From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id ED324A0597; Wed, 8 Apr 2020 08:45:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 014C41BF90; Wed, 8 Apr 2020 08:45:52 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140084.outbound.protection.outlook.com [40.107.14.84]) by dpdk.org (Postfix) with ESMTP id 423E51BF7B for ; Wed, 8 Apr 2020 08:45:51 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JWL7dVGuFloMCqtULAyDq0nx5OuF5pT0M4FRcc+5gGmqXGWrzIp9Rxvu1onew8vfzxnBLpG4ZIKdv991VvN0EdyLwQlnVmwTLFEFEevAZ05qifXlseyyPLl038ABXQNy7EOVmPSrg7ygSGNPOVMIhGpyTviEFBOinALPFAa4Pbh6crlRO6zFCACqv8u5xxN2sc2nT/KBT+kbBBoErr53F8dteoDtcz+iJp8VvcV/thH/aSLeOYp4OIjX4bIiJeuVMKpKtyb313n3kb/m3GCCIWG5FOuftBKci0WkFOpj4Vzqqhr1/ZAu3TmyUzxEt7avGxoAJKfFgi11agK1sbbUzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IQ537ZAuWIUWleePYXxnT0wowUPI3xy2rvBo1UyGrl4=; b=BNOHY1r2bjpGe9p3SF6GzWWraZfQMKWbib2lF9HXIfQXe7NxgKlosZRws2GKwnTrd93HvRE2lvDNr37T2/6TbLezIdmu5GNh/TitUy8SIv6pdL21SHM+0DpfdhLoWSBv4yh3TA4OtX1oz0ewqsgCM/RwGGdr9vd9e5niMJwpoe8xIPm85gJJhiIKPcnJa4lezYkNwMBIQQoUQr1z6r+jF35dc18xKBBVD5rtWYo6UCzKJZRCyMnpmhGk8C100IuMxMzXExqtq/K3+ghpAkng6KCsPLq/XyqtVO31grtE3coDv5SN9TeAsBl07c+r0uvHPoKnNA5Y2iI29WzxP9+QWA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IQ537ZAuWIUWleePYXxnT0wowUPI3xy2rvBo1UyGrl4=; b=XTB64GtLjBBqqjlqTr5pLZaXG0SyKPJV/xaj65blUGRANndr1zw0NnXbjbWXO01T23G9d43bIAvJmXYBoCwiMfpQzBAcUMIRpYbKI+e+BDKwfNH0HEWdOi4wgx5Tq4XI5RyQ3CyVK1aFVlr/V5Pm397Zk+6dZ5VcDEpF8/qI7Ks= Received: from DB6PR05MB3190.eurprd05.prod.outlook.com (2603:10a6:6:21::17) by DB6PR05MB3477.eurprd05.prod.outlook.com (2603:10a6:6:18::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.21; Wed, 8 Apr 2020 06:45:50 +0000 Received: from DB6PR05MB3190.eurprd05.prod.outlook.com ([fe80::9af:8c62:51e1:fc1d]) by DB6PR05MB3190.eurprd05.prod.outlook.com ([fe80::9af:8c62:51e1:fc1d%4]) with mapi id 15.20.2878.018; Wed, 8 Apr 2020 06:45:49 +0000 From: "Xueming(Steven) Li" To: Stephen Hemminger CC: Anatoly Burakov , Ferruh Yigit , "dev@dpdk.org" , Asaf Penso Thread-Topic: [dpdk-dev] [PATCH v1 1/2] malloc: support malloc and free tracking log Thread-Index: AQHWDWQ46OaimM/MyEapfberokuih6hux8Jg Date: Wed, 8 Apr 2020 06:45:49 +0000 Message-ID: References: <1586318694-31358-1-git-send-email-xuemingl@mellanox.com> <1586318694-31358-2-git-send-email-xuemingl@mellanox.com> <20200407221146.386a8006@hermes.lan> In-Reply-To: <20200407221146.386a8006@hermes.lan> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=xuemingl@mellanox.com; x-originating-ip: [240e:e0:cf28:1600:1c24:6f87:db1b:d360] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 803bc4b9-90f9-4650-8bd1-08d7db88796d x-ms-traffictypediagnostic: DB6PR05MB3477:|DB6PR05MB3477: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3383; x-forefront-prvs: 0367A50BB1 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR05MB3190.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(396003)(376002)(136003)(39850400004)(346002)(366004)(55016002)(86362001)(4744005)(4326008)(316002)(54906003)(186003)(7696005)(81166007)(6916009)(2906002)(107886003)(478600001)(71200400001)(9686003)(33656002)(66476007)(64756008)(8676002)(52536014)(66556008)(81156014)(8936002)(66446008)(53546011)(5660300002)(76116006)(6506007)(66946007); DIR:OUT; SFP:1101; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: vAgDioQ70M1Jt59SFRD26fUTQUIikLhao4XnlxP4DzAa7FTIQR7Re0dk4E3I2ZpLFVsBwEQHWzr/XIwY2rNeQrNXCpkVEiuA170GvgkjTjeIUI0pFNX/iZ/yzQFRja/m0wENCj8af37CYGlffYzxaZFfHO1R+oHW8PyOo6Yqd8NgyYY6VXSXkf7Z4loaklCfyyWGa66WzI1UWMoCfjc5lpMQCc7ny11SH4rjOd7csI+36/rOH7dEc1KFX69D3nv9FChTFQ+nwKE5OPmrkEFpEWVghn4QPZd40eK2ZzKGN+25V3ysylz30uGNUz/OJGKLABUP2D2yK6gduSJJFosusdPQNgYzmjfpjXy4u8iN555d8qWYx7e+VpaLTiTCqAk49t1B8mQrko75vTrsKN7c1gIX78ivdhhcgW8ygAdbh/NQIPb/J8Q8ZrpYgdMn5eHy x-ms-exchange-antispam-messagedata: EX2BznhDqjEfvfJo9Bo9jiPeDjLhglqduyTCpBtovcOOdQO3pTsyL54m57MDA7kjlBH2ytFOlXfhD8YUqBqY2uIUxKoMQV0hProkdihCEXEaHN9pmaK/NblyIDopMMNTbtQ98bKydEuOoUKuoiataxPP4R82s2Jh62h48xNrETx9syfsFg5eISbJnwPzr6c7FLfeV6OwTfn5hXrFNUeU2Q== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 803bc4b9-90f9-4650-8bd1-08d7db88796d X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Apr 2020 06:45:49.4272 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Kl51dGxoOSK2yyOBykxy4PfWUE6rNlGk2907oep+/moKEMLguu+Cqp56MnWbB8tNrGmwyIOJJ6Eds0+XIUV2uQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR05MB3477 Subject: Re: [dpdk-dev] [PATCH v1 1/2] malloc: support malloc and free tracking log X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Thanks for your suggestion, will include them in next version. > -----Original Message----- > From: Stephen Hemminger > Sent: Wednesday, April 8, 2020 1:12 PM > To: Xueming(Steven) Li > Cc: Anatoly Burakov ; Ferruh Yigit > ; dev@dpdk.org; Asaf Penso > Subject: Re: [dpdk-dev] [PATCH v1 1/2] malloc: support malloc and free > tracking log >=20 > On Wed, 8 Apr 2020 04:04:53 +0000 > Xueming Li wrote: >=20 > > * Dump contents of all malloc heaps to a file. > > diff --git a/lib/librte_eal/rte_eal_version.map > b/lib/librte_eal/rte_eal_version.map > > index f9ede5b..25c4b13 100644 > > --- a/lib/librte_eal/rte_eal_version.map > > +++ b/lib/librte_eal/rte_eal_version.map > > @@ -338,4 +338,7 @@ EXPERIMENTAL { > > > > # added in 20.05 > > rte_log_can_log; > > + rte_malloc_log_init; > > + rte_malloc_log_dump; > > + rte_malloc_log_stop; > > }; >=20 > Looks like other entries were indented with tabs and you used spaces?