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 AEA75A04B5; Fri, 11 Sep 2020 10:13:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 18F6D1C0D2; Fri, 11 Sep 2020 10:13:37 +0200 (CEST) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80057.outbound.protection.outlook.com [40.107.8.57]) by dpdk.org (Postfix) with ESMTP id 21A351C0D2 for ; Fri, 11 Sep 2020 10:13:36 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a7BeXmbkIkAXEX5PWq8f0qwi/HnGbL6NPT5+BnLbA93U43Cq7msjtBJ1GWkvsiw1c8nYi/1bMfxj2fxT4VfU4RKfNiYNNaNLxAc7PDbibPi2Wi/H9HYwIMC2wmjPUqcn30gVb3v09I8CF3/2xZfEtWYznYp7LXoeT80knPPtTX4i+z1SDgrBpuwituSB6C6PVRkHbW5730AHj1Oei7dwLCeXem3F79KRoGqQTDiwad2qwSpF/4s9xxDFxXYSFLq/QUzvMigbWY7nifAKO03/xCw4TrJnr7YHlI3k9hQqF0EL959Ol99CDU644a5gTgDrg0okmm7fmlv7+pampVpp2g== 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=S9H9IBlze1Rp7eFZW9hlIPD1f7VzAi2z2ZPOOM75O1g=; b=RgFVrrGSLplx3SbydK89sXZMh8aujMgtPjh4Z1MyNxgeUZlIJQpuK98+vnLqfgbxUC/Hz2GmNxvFQj3f7jKbtUHhKlV1Tk1HyU2YOPcIk3iZWcdXkKn7qwIP0rRfl0TLXbj8NFhf5Pax34OvKTk7XkJSAFwVAspS/1+1u/FNKVWi5eVBJrnuH8ZpL3kh+2seoMd0pZNLVJtddC83NGW8eeP7Z4vD2Q4KVfKvzT4PL1rfyRttbWXjDRQz/CvXqfsInC2xbxnlt3HGsj5tAzz0amZHhhng+YjNRy3Qrju5R/+TNe5SD/bEo1VyTtq5uIi8KCNFsM8MS4Y1OrxADeyFsw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=S9H9IBlze1Rp7eFZW9hlIPD1f7VzAi2z2ZPOOM75O1g=; b=OzvdlQv/xtjXRQ619hVaMNQG0OhRb218JFdauD8gniqTR+4cQhQtIe9TWpcRv9PmgN2Zwv1ef+U47nLp92+2ZSP3GD85J3LDP0Dd7pJCDP21ov678WgfEy2xiN8ANZRPNbCc0vl4EGuEU1HKjlxqJ5txhKAn5/7gDtTsCPF3Ck8= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR04MB5837.eurprd04.prod.outlook.com (2603:10a6:803:ec::28) by VI1PR04MB4415.eurprd04.prod.outlook.com (2603:10a6:803:74::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.19; Fri, 11 Sep 2020 08:13:28 +0000 Received: from VI1PR04MB5837.eurprd04.prod.outlook.com ([fe80::cc01:9fe2:2544:8a4b]) by VI1PR04MB5837.eurprd04.prod.outlook.com ([fe80::cc01:9fe2:2544:8a4b%7]) with mapi id 15.20.3348.019; Fri, 11 Sep 2020 08:13:28 +0000 From: "Sachin Saxena (OSS)" To: dev@dpdk.org Cc: thomas@monjalon.net Date: Fri, 11 Sep 2020 13:43:16 +0530 Message-Id: <20200911081316.6278-1-sachin.saxena@oss.nxp.com> X-Mailer: git-send-email 2.28.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SGBP274CA0022.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::34) To VI1PR04MB5837.eurprd04.prod.outlook.com (2603:10a6:803:ec::28) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from lsv03161.swis.in-blr01.nxp.com (14.142.151.118) by SGBP274CA0022.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3370.16 via Frontend Transport; Fri, 11 Sep 2020 08:13:26 +0000 X-Mailer: git-send-email 2.28.0 X-Originating-IP: [14.142.151.118] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: eeaa8206-4fb0-441a-322a-08d8562a901a X-MS-TrafficTypeDiagnostic: VI1PR04MB4415: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:635; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: K9lEjkXrnBA2TYh8t7AzaT73wkHTt6nMqmByaST462ZEMs9NpSCJp2KF5V2nNThH5PV6dlxuVEbZcZDWOOPx+bNgXpKn58V9IhZWZjXT0T6tic1KXcZOf/Azx99CSsaN6N5896INaXmju9m7mhCuQB8MbXo0Jr4Fl2ocreQQZW1smKf15+9gJbhy4nAQ3eJ1TGzHkmvuUyznqZsOQniixKHcjIzr+0VNP8mmSeUpNqraxcfB86tBQTjYa05GoZ7N23+LjH+zGucBTZQlOyi9NXd2nhMY1BxnXjv2hBYYxnTMt+oKLKG6c6FMOds+jvdWA1wce3HYLlENqzeXKyFDgfxKzlCk5VUiaiADprw0n6AHr8T+7G05zrTRxWUgFp6q X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB5837.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(346002)(366004)(396003)(39860400002)(376002)(5660300002)(6486002)(55236004)(4744005)(4326008)(16526019)(6512007)(478600001)(316002)(6506007)(26005)(186003)(6666004)(1006002)(1076003)(2906002)(2616005)(8936002)(6916009)(66946007)(86362001)(66476007)(52116002)(66556008)(956004)(8676002)(110426005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: njEmOekbTblSBzXZgrpkyA1kxYw4U7B5bhlmADLF7gWfQ73JSgAvEefOdd2zHReSZ//YeXRafUb5YixnNqsaSVsPBibKC9lTWvGiTjyXhx8iLz9JUZJxZpiqa/d+u8SsgL3j8xdu8UQLxSp2R2o0tYla1sE2gfWgjIbGWUal+8zhxc3UOI4XxIRp41Cd8QaZJH9pJR6GFPNphHn3SdQfpgHVeUs3nkeY9y7RGgldlWSoLrcTFEAyUnlMfhyu2XO6KjRSE4UMB1rzHHRBe2TFAHHmdtjpvSczN2lBbjlk4RIeelOG5F1XDRsxMTAVoBvTGEIEbe29DjrKcdtficRBegDlaP5kj1fB2BaV8/mqlVmP9z+xsko+DZK4975nmj15xcjrrO7ntsFyl29BZfuDveXkUp9dIcYipKV/eYG3ksHm1vXbo1yr8oO4SbPZvPxTVMkDMyghFoX+yc0KTJBOpq9Y+iFtGubx1byCCnVcnKhKEvaeL4qkbaa7RLXu09Il8vPPK14i6XzIjLj5bo4Blz93kMx6N++CI2t9WD9UIH+K7hLtPDmks4Hf1+aRTSXIMW54BW0JWsoml9gzLSQG3t9vZBJkkqlPF7wwq9v9HCt00hFgIRy2jHyPd7mj4qrrVakDqcuvAGa04yTrGSTgbw== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: eeaa8206-4fb0-441a-322a-08d8562a901a X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5837.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2020 08:13:28.4193 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: LfdDX4knNzy+J8pzBZmGOJtzVUQQrzCLDCGUbR9xuj2raP5++PuyYCsnWP1zoYLQCkXnaukhWqAaiflj+os1cg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4415 Subject: [dpdk-dev] [PATCH v1] mempool: dump socket id attribute 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" From: Sachin Saxena Enhance the dump function to also print socket_id attribute passed at creation time. Signed-off-by: Sachin Saxena --- lib/librte_mempool/rte_mempool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_mempool/rte_mempool.c b/lib/librte_mempool/rte_mempool.c index 7774f0c8d..2d49ecd2b 100644 --- a/lib/librte_mempool/rte_mempool.c +++ b/lib/librte_mempool/rte_mempool.c @@ -1275,6 +1275,7 @@ rte_mempool_dump(FILE *f, struct rte_mempool *mp) fprintf(f, "mempool <%s>@%p\n", mp->name, mp); fprintf(f, " flags=%x\n", mp->flags); + fprintf(f, " socket_id=%d\n", mp->socket_id); fprintf(f, " pool=%p\n", mp->pool_data); fprintf(f, " iova=0x%" PRIx64 "\n", mp->mz->iova); fprintf(f, " nb_mem_chunks=%u\n", mp->nb_mem_chunks); -- 2.28.0