Skip to content
Branch: master
Find file History
Hongzhi.Song and filbranden numademo: fix incompatible pointer types
a7c4bc7 introduced a error about incompatible pointer types.

test/move_pages.c:35:39: error: passing argument 2 of
'numa_node_size' from incompatible pointer type
[-Werror=incompatible-pointer-types]
    if (numa_node_size(a, &free_node_sizes) > 0)
			     ^^
Unified variable type and fix it.

Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Latest commit 6179276 Sep 23, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README Import numactl 0.9.9 Jul 23, 2014
bind_range Handle cpu-less node for bind_range test Jul 17, 2019
checkaffinity test: make test scripts run from any location. Aug 5, 2014
checktopology numatopology: Add check for cpu-less nodes Jun 17, 2019
distance.c Fix: distance test to include all existing nodes Jun 21, 2018
ftok.c Cleanup whitespace from *.c and *.h files Jun 15, 2018
getnodemask.c Cleanup whitespace from *.c and *.h files Jun 15, 2018
mbind_mig_pages.c Cleanup whitespace from *.c and *.h files Jun 15, 2018
migrate_pages.c Cleanup whitespace from *.c and *.h files Jun 15, 2018
move_pages.c numademo: fix incompatible pointer types Sep 23, 2019
mynode.c Cleanup whitespace from *.c and *.h files Jun 15, 2018
node-parse.c Add IO affinity support to libnuma Jul 23, 2014
nodemap.c Cleanup whitespace from *.c and *.h files Jun 15, 2018
numademo test: run numademo on "make check" Aug 5, 2014
pagesize.c Import numactl 0.6 Jul 23, 2014
prefered.c Cleanup whitespace from *.c and *.h files Jun 15, 2018
printcpu test: mark scripts that need bash as such Aug 6, 2014
randmap.c make MPOL_ macros match linux kernel Oct 4, 2018
realloc_test.c Cleanup whitespace from *.c and *.h files Jun 15, 2018
regress Fix: regress test numastat function and few test fixes Jun 28, 2018
regress-io test: make test scripts run from any location. Aug 5, 2014
regress2 test: make test scripts run from any location. Aug 5, 2014
runltp test: do not set LD_LIBRARY_PATH in test scripts Aug 5, 2014
shmtest test: do not set LD_LIBRARY_PATH in test scripts Aug 5, 2014
tbitmap.c Cleanup whitespace from *.c and *.h files Jun 15, 2018
tshared.c Cleanup whitespace from *.c and *.h files Jun 15, 2018
tshm.c Cleanup whitespace from *.c and *.h files Jun 15, 2018

README

Various simple test scripts to verify some parts of the NUMA API.

To do a full regression test run make test

You should have at least two nodes on a NUMA system for the test suite.

The tests in regress assume that there is enough memory free on nodes 0/1.
They consider PREFERRED/INTERLEAVE not hitting the first choice node an 
error. 

They also require a relatively idle machine to avoid too much
noise from memory allocation from other processes. Without
that regress1 might fail.

You can run the tests under valgrind with VALGRIND=valgrind make test
Older valgrind versions incorrectly report a uninitialized byte error
on set_mempolicy. That is a false positive.

TBD: more detailed unit tests for mbind / shm / {get,set}_mempolicy
Currently everything is tested using numactl only.
You can’t perform that action at this time.