History log of /external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2c98cbbaf2fe40b4bee6e80f8c57660902c18745 11-Oct-2017 Petr Vorel <pvorel@suse.cz> m4,kernel/lib: Detect libnuma presence in kernel libs

This fixes link problems when NUMA headers are available
but libnuma not (e.g. on 32-bit cross build).

numa_alloc_onnode() and numa_move_pages() do not depend on
linux/mempolicy.h, thus remove the dependency.

Removed HAVE_MPOL_CONSTANTS definition and it's usage as
with dropped NUMA API v1 are these constants always available.

Removed dependency on linux/mempolicy.h (#if HAVE_LINUX_MEMPOLICY_H
check) from C files which do not need it.

Removed unused variable LTP_SYSCALL_NUMA_HEADERS (added in cb805c4aa,
but never used).

Signed-off-by: Petr Vorel <pvorel@suse.cz>
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c
817d8095fbfe5ebe22b29f58b7483f3d8d5e3fcc 24-Jul-2017 Richard Palethorpe <rpalethorpe@suse.com> Rename linux_syscall_numbers.h to lapi/syscalls.h

Move testcases/kernel/include/linux_syscall_numbers.h to lapi/syscalls.h so
that it is easily accessible from the LTP library as well as the tests.

Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
Acked-by: Jan Stancek <jstancek@redhat.com>
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c
dcf361cb4f20afa0bcdff596b5016120d3e747a2 23-May-2017 Cyril Hrubis <chrubis@suse.cz> lib,testcases: Make use of MIN() and MAX()

Produced by variations on coccinelle spatch:

@@
expression E1,E2;
@@

- (E1 > E2 ? E1 : E2)
+ MAX(E1, E2)

@@
expression E1,E2;
identifier V;
@@

- if (E1 < E2)
- V = E1;
- else
- V = E2;
+ V = MIN(E1, E2);

...

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c
6e2495902690294475f64ad0093d4fc05abaea4c 10-Jun-2015 Maninder Singh <maninder1.s@samsung.com> kernel/libcpuset.c: remove explicit NULL check before free

No need of NULL check before free

Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com>
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c
359980f68b19c77c698b121b57a071dfe6e3ca31 15-Feb-2013 Jan Stancek <jstancek@redhat.com> rename syscall() macro to ltp_syscall()

This patch renames syscall() macro defined in linux_syscall_numbers.h
to reduce confusion with syscall(2). It also updates all places
where it was previously in use.

Signed-off-by: Jan Stancek <jstancek@redhat.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c
354ebb48db8e66a853a58379a4808d5dcd1ceac3 07-Dec-2012 Wanlong Gao <gaowanlong@cn.fujitsu.com> cleanup code indent

Cleanup the code indent using:

find . -name *.c -exec Lindent {} \;

It's really a big change, but can fix almost all of
the indent problem in C code, although we can't
ensure all of the changes are right, but the error
changes are really few.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c
12475ee0bd6cc6d4537677b794067898f4e8a182 25-Mar-2011 Peng Haitao <penght@cn.fujitsu.com> libcpuset.c: fix error of undefined reference to 'get_mempolicy'

'HAVE_DECL_MEMPOLICY' is wrong in commit 6c4d1c6.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c
1e6f5a673655551de5734ff31ef48cd63b604e6d 19-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Resolving all compile errors via a script

This may leave dupe calls to tst_exit in main, but those are easier
to deal (and much less) than no-compile scenarios.

As a side-effect, fix all trailing whitespace issues.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c
6c4d1c6d4b3c116ff88f9209b4860940fb8659a8 18-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Fix all warnings.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c
2c28215423293e443469a07ae7011135d058b671 16-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Style and conformance changes.

1. Strip all leading space.
2. Move tst_exit() to main().
3. Remove tst_exit() from cleanup().
4. Remove cluebat comments.
5. Reduce some unnecessary whitespace.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c
397ae83c6395406527786c4afd74b36356670934 19-Jan-2010 yaberauneya <yaberauneya> Effectively neuter all tests that require mempolicy support on systems that don't have mempolicy.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c
618f41a8ad6e4c95f4285ff3af006f5e97fc2c8b 14-Jan-2010 yaberauneya <yaberauneya> Finish this mempolicy crud off for good, after a fair amount of tweaking.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c
8990a20fd4bb09cdbbf3c6037c037712fbc71289 14-Jan-2010 yaberauneya <yaberauneya> Properly resolve mbind stuff... it was actually mempolicy tests... and it was present in more than just mbind01.c

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c
77772ef57f3c92243d1df2064fdb2b321e40227d 17-Oct-2009 yaberauneya <yaberauneya> 1. Fix taskstats.m4 so it no longer punts out warnings.
2. Add ltp-swaponoff.m4 to properly detect when we're running an older kernel and need linux/swap.h (issue found by compiler team at Cisco).
3. Apply fixes according to 2. to testcases/kernel/syscalls/swap*/*.c.
4. Apply Cyril Hrubis's libcpu_set fix to the .in files and cpuset_lib Makefile and .c file.
5. Block off functionality in getdelays.c with proper preprocessor defines, as per issues after encountered after ltp-taskstats.m4 was fixed.
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c
71b936e93aa6de6fa10bd4b5d93a266604409072 25-Apr-2009 subrata_modak <subrata_modak> The attached patch fixes this bug. This is the bug of the kernel. The following patch has fixed the bug.
commit af76aba00fdcfb21535c9f9872245d14097a4561
Author: Rusty Russell <rusty@rustcorp.com.au>
Date: Mon Mar 30 22:05:11 2009 -0600
cpumask: fix seq_bitmap_*() functions.
1) seq_bitmap_list() should take a const.
2) All the seq_bitmap should use cpumask_bits().
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
But after applying this patch, Case 5 and 6 still failed. It is because the max size of CPUSET in the glibc is 1024, but the max size of your kernel is 4096, when we invoke the sched_getaffinity, the kernel will check whether the size of mask passed into the function is >= the size of the mask in the kernel. If not, the function returns -1. So it is not the bug of the tesecase. This patch contains two lib files written by Paul Jackson who is ex-maintainer of cpuset. These two lib files are used for both this bug fix and the testcases that will be added in future. Signed-Off-By: Miao Xie <miaox@cn.fujitsu.com>.
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c