From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "Chen, BoX C" <box.c.chen@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Chen, BoX C" <box.c.chen@intel.com>
Subject: Re: [dts] [PATCH V1] framework: accurate get cpu info
Date: Fri, 24 Apr 2020 06:41:32 +0000 [thread overview]
Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC0F9A2@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <20200424024936.3358-1-box.c.chen@intel.com>
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of ChenBo
> Sent: Friday, April 24, 2020 10:50 AM
> To: dts@dpdk.org
> Cc: Chen, BoX C <box.c.chen@intel.com>
> Subject: [dts] [PATCH V1] framework: accurate get cpu info
>
> From: "ChenBo" <box.c.chen@intel.com>
>
> Accurate get cpu info
>
> Signed-off-by: ChenBo <box.c.chen@intel.com>
> ---
> framework/crb.py | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/framework/crb.py b/framework/crb.py index cf0493f..a47de2c
> 100644
> --- a/framework/crb.py
> +++ b/framework/crb.py
> @@ -644,7 +644,8 @@ class Crb(object):
> "lscpu -p=CPU,CORE,SOCKET,NODE|grep -v \#",
> "#", alt_session=True)
>
> - cpuinfo = cpuinfo.split()
> + #cpuinfo = cpuinfo.split()
> + cpuinfo = [i for i in cpuinfo.split() if re.match("^\d.+", i)]
> # haswell cpu on cottonwood core id not correct
> # need additional coremap for haswell cpu
> core_id = 0
> --
> 2.17.1
prev parent reply other threads:[~2020-04-24 6:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-24 2:49 ChenBo
2020-04-24 3:02 ` Chen, BoX C
2020-04-24 6:41 ` Tu, Lijuan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8CE3E05A3F976642AAB0F4675D0AD20E0BC0F9A2@SHSMSX101.ccr.corp.intel.com \
--to=lijuan.tu@intel.com \
--cc=box.c.chen@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).