From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 638E33990 for ; Thu, 14 Jul 2016 15:44:50 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP; 14 Jul 2016 06:44:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,362,1464678000"; d="scan'208";a="139165999" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga004.fm.intel.com with ESMTP; 14 Jul 2016 06:44:49 -0700 Received: from fmsmsx102.amr.corp.intel.com (10.18.124.200) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 14 Jul 2016 06:44:49 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX102.amr.corp.intel.com (10.18.124.200) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 14 Jul 2016 06:44:48 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.181]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.150]) with mapi id 14.03.0248.002; Thu, 14 Jul 2016 21:44:46 +0800 From: "Liu, Yong" To: "Gu, YongjieX" , "dts@dpdk.org" CC: "Gu, YongjieX" Thread-Topic: [dts] [PATCH] modify the initialization of core list on linux Thread-Index: AQHR3Xs3gm9wzbVNiEak0ptVhSGOZqAX8KMQ Date: Thu, 14 Jul 2016 13:44:46 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E222573E5@SHSMSX103.ccr.corp.intel.com> References: <1468464642-45496-1-git-send-email-yongjiex.gu@intel.com> In-Reply-To: <1468464642-45496-1-git-send-email-yongjiex.gu@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZGZjM2EyYTgtOGJiNi00ODI1LWE3ODEtNGMxNmZiMTNhNGI1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IkFLclwvckpoeitqSkpQdmE0VzJWNWE2bE4zNG5HZzFEYXNQQjZTNlwvd2FIbz0ifQ== x-ctpclassification: CTP_IC x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH] modify the initialization of core list on linux X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2016 13:44:51 -0000 Applied, thanks. Please check on other linux distribution. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of yongjie > Sent: Thursday, July 14, 2016 10:51 AM > To: dts@dpdk.org > Cc: Gu, YongjieX > Subject: [dts] [PATCH] modify the initialization of core list on linux >=20 > Change the order to obtain socket info by "lscpu -p" > Output of "lscpu -p" on Ubuntu14.04: > # The following is the parsable format, which can be fed to other > # programs. Each different item in every column has an unique ID > # starting from zero. > # CPU,Core,Socket,Node,,L1d,L1i,L2,L3 > 0,0,0,0,,0,0,0,0 > 1,1,0,1,,1,1,1,0 > 2,2,0,0,,2,2,2,0 > 3,3,0,0,,3,3,3,0 > 4,4,0,0,,4,4,4,0 > 5,5,0,0,,5,5,5,0 > 6,6,0,81,,6,6,6,0 > 7,7,0,0,,7,7,7,0 > 8,8,0,1920169263,,8,8,8,0 > 9,9,0,1634235183,,9,9,9,0 > 10,10,1,1815045490,,10,10,10,1 > ... > 37,17,1,0,,17,17,17,1 > 38,18,1,20778128,,18,18,18,1 > 39,19,1,0,,19,19,19,1 >=20 >=20 > Signed-off-by: yongjie > --- > framework/crb.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/framework/crb.py b/framework/crb.py > index b302a76..066bb3f 100644 > --- a/framework/crb.py > +++ b/framework/crb.py > @@ -505,7 +505,7 @@ class Crb(object): > core_id =3D 0 > coremap =3D {} > for line in cpuinfo: > - (thread, core, unused, socket) =3D line.split(',')[0:4] > + (thread, core, socket, unused) =3D line.split(',')[0:4] >=20 > if core not in coremap.keys(): > coremap[core] =3D core_id > -- > 2.1.4