test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] framework: accurate get cpu info
@ 2020-04-24  2:49 ChenBo
  2020-04-24  3:02 ` Chen, BoX C
  2020-04-24  6:41 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: ChenBo @ 2020-04-24  2:49 UTC (permalink / raw)
  To: dts; +Cc: ChenBo

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V1] framework: accurate get cpu info
  2020-04-24  2:49 [dts] [PATCH V1] framework: accurate get cpu info ChenBo
@ 2020-04-24  3:02 ` Chen, BoX C
  2020-04-24  6:41 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Chen, BoX C @ 2020-04-24  3:02 UTC (permalink / raw)
  To: dts; +Cc: Chen, BoX C

[-- Attachment #1: Type: text/plain, Size: 1091 bytes --]

Tested-by: Chen, BoX C <box.c.chen@intel.com>

Regards,
Chen Bo


> -----Original Message-----
> From: Chen, BoX C
> Sent: April 24, 2020 10:50
> 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


[-- Attachment #2: TestChecksumOffload.log --]
[-- Type: application/octet-stream, Size: 116917 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V1] framework: accurate get cpu info
  2020-04-24  2:49 [dts] [PATCH V1] framework: accurate get cpu info ChenBo
  2020-04-24  3:02 ` Chen, BoX C
@ 2020-04-24  6:41 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-04-24  6:41 UTC (permalink / raw)
  To: Chen, BoX C, dts; +Cc: Chen, BoX C

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-24  6:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-24  2:49 [dts] [PATCH V1] framework: accurate get cpu info ChenBo
2020-04-24  3:02 ` Chen, BoX C
2020-04-24  6:41 ` Tu, Lijuan

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).