numam-spdk/test/unit/lib/util
Jim Harris 150339cc59 cpuset: fix parse_mask
The loop here was counting the bytes in the cpus array,
but the lcores are represented by bits.

While here, add a unit test that exposes this bug and
demonstrates it is now fixed with this patch.

Fixes #1570.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I3a1fc48a8085254f41587e3b3d5d732154b90134

Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3931
Community-CI: Mellanox Build Bot
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Ziye Yang <ziye.yang@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2020-08-27 08:34:07 +00:00
..
base64.c ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
bit_array.c ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
cpuset.c cpuset: fix parse_mask 2020-08-27 08:34:07 +00:00
crc16.c ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
crc32_ieee.c ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
crc32c.c ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
dif.c ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
iov.c ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
math.c ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
pipe.c ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
string.c ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
Makefile lib/util: Add spdk_sn32_lt/gt() to compare two numbers based on serial number arithmetic 2020-03-19 08:51:31 +00:00