Git Log


Commit Date  
[e2ecf2] by Cyril Hrubis Cyril Hrubis

syscalls: mount: Simplify the -T param handling.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>

2013-10-15 12:33:58 Tree
[9ca963] by Cyril Hrubis Cyril Hrubis

openposix: Remove unreachable code.

Change all occurences of:

int main(void)
{
...

if (failed) {
printf("Test FAILED\n");
return PTS_FAIL;
} else {
printf("Test PASSED\n");
return PTS_PASS;
}

printf("This code should not be executed\n");
return PTS_UNRESOLVED;
}

And similar for:

int main(void)
{
...

if (failed) {
printf("Test FAILED\n");
return PTS_FAIL;
}

printf("Test PASSED\n");
return PTS_PASS;
}

To remove unreachable code.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>

2013-10-14 15:06:47 Tree
[6f3147] by Riku Voipio Riku Voipio , pushed by Wanlong Gao Wanlong Gao

power_management: add TCID

get_sched_values.c uses interfaces provided by -lltp which need
TCID defined. Not sure how this built successfully before.

[v2] correct TCID to an unique one

Cc: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2013-10-14 08:50:28 Tree
[e5c18e] by Riku Voipio Riku Voipio , pushed by Mike Frysinger Mike Frysinger

Remove bogus Aarch64 system call numbers

Aarch64 build fails with:

cacheflush01.c:52:26: fatal error: asm/cachectl.h: No such file or directory
#include <asm/cachectl.h>

This is caused by bogus definitions of cacheflush and set_tls, which are
private 32bit ARM system calls. These should not be used on native
Aarch64 binaries. If they need to be tested, it is better done using ltp
compiled for 32bit ARM.

Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>

2013-10-11 09:09:08 Tree
[b217b3] by Stanislav Kholmanskikh Stanislav Kholmanskikh , pushed by Mike Frysinger Mike Frysinger

tst_kvercmp2: Criteria for Oracle Linux UEK kernels

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
Acked-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>

2013-10-09 13:11:09 Tree
[2a63f6] by Maxim Uvarov Maxim Uvarov , pushed by Mike Frysinger Mike Frysinger

syslog-lib.sh bash posix compliance

/opt/ltp/testcases/bin/syslog02: 69: [: syslog-ng: unexpected operator
+ [ syslog-ng == syslog-ng ]

Accoding to:
http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_01.html
[ STRING1 == STRING2 ] True if the strings are equal. "=" may be
used instead of "==" for strict POSIX compliance.

Because of busybox and other bash like shells look for posix syntax
make it so.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.com>
Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>

2013-10-09 14:11:05 Tree
[858757] by Cyril Hrubis Cyril Hrubis

kernel/firmware: Make use of modules.mk

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>

2013-10-02 10:36:28 Tree
[427cbb] by Alexey Kodanev Alexey Kodanev , pushed by Cyril Hrubis Cyril Hrubis

device-drivers: block: enable build and run

Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>

2013-09-11 10:55:27 Tree
[4970a2] by Alexey Kodanev Alexey Kodanev , pushed by Cyril Hrubis Cyril Hrubis

device-drivers: block: fixes

Fixed test-cases behavior: major number greater than 255 is valid,
empty device name is valid.
Added test-cases results and sysfs files.
Added user-space program which checks each test-case result.
Added command line parameter 'a': run all test-cases.

Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>

2013-10-02 09:23:50 Tree
[e04703] by Alexey Kodanev Alexey Kodanev , pushed by Cyril Hrubis Cyril Hrubis

device-drivers: block: rename test files and remove run.sh

Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>

2013-09-11 10:31:47 Tree
[971bcd] by Stanislav Kholmanskikh Stanislav Kholmanskikh , pushed by Cyril Hrubis Cyril Hrubis

cpuset/cpuset_load_balance_test: fixes

Fixed lack of '#include "config.h"', perform some cleanup
and set nr_cpus, nr_mems based on environment.

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>

2013-10-01 13:44:54 Tree
[8ddc6c] by Stanislav Kholmanskikh Stanislav Kholmanskikh , pushed by Cyril Hrubis Cyril Hrubis

cpuset_memory_spread_test: number of nodes and sync

For unification number of nodes is set based on environment.

OS caches were not reliably dropped after execution of 'dd'
on DATAFILE. And since 'dd' was executed in root cpuset the
caches were spread among all available memory nodes. Because on
consecutive reading of DATAFILE in cpuset_mem_hog didn't increase
memory consumption. This situation caused random failures of
the testcase.

In accordance to Documentation/sysctl/vm.txt to reliably drop caches
we should invoke 'sync' before 'echo N > /proc/sys/vm/drop_caches'.

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>

2013-10-01 13:44:53 Tree
[b5077c] by Stanislav Kholmanskikh Stanislav Kholmanskikh , pushed by Cyril Hrubis Cyril Hrubis

cpuset/cpuset_memory_test: fixes

cpuset_memory_test.c:
* lack of "config.h"
* incorrect use of HAVE_LINUX_MEMPOLICY macro
* modification to make use of sigwaitinfo
* some cleanup

cpuset_memory_testset.sh:
* number of cpu and memory nodes are set based on environment
* we send second SIGUSR1 signal to make the child free its resources
* setting nr_hugepages to a value of 2 is not sufficient. Because there
is no guarantee that these hugepages will be allocated on the specified
node
* cleanup and several typos are fixed

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>

2013-10-01 13:44:52 Tree
[aeafd8] by Stanislav Kholmanskikh Stanislav Kholmanskikh , pushed by Cyril Hrubis Cyril Hrubis

cpuset/cpuset_lib: cpuinfo.c compiled incorrectly

Because of lack of '#include "config.h"' cpuinfo.c file
was compiled incorrectly (i.e. final lib libcpu_set.a didn't contain
the functions/variables from cpuinfo.c)

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>

2013-10-01 13:44:51 Tree
[87156a] by Stanislav Kholmanskikh Stanislav Kholmanskikh , pushed by Cyril Hrubis Cyril Hrubis

cpuset/cpuset_syscall_test: fixes

cpuset_syscall_test.c:
I suppose that now there is no need in many '#if' and explicit
definition of functions get_mempolicy, set_mempolicy, mbind.
Including numa.h and numaif.h (as we do in the other testcases)
should be sufficient.

cpuset_syscall_testset.sh:
Since linux kernel 3.8.0 (commit 5606e3877ad8baea42f3a71ebde0a03622bbb551
"mm: numa: Migrate on reference policy") default task memory policy and
its output in /proc/<pid>/numa_maps changed.

For example in 3.7.10 for stack vma /proc/<pid>/numa_maps show:
7fff81e01000 default stack anon=3 dirty=3 N3=3
but in 3.8.0:
7fff08950000 prefer:3 stack anon=5 dirty=5 N2=4 N3=1

So modified a check in test 10 and removed unnessesary checks for "default"
memory policy from tests 14, 15, 16.

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>

2013-10-01 13:44:50 Tree
[08f878] by Stanislav Kholmanskikh Stanislav Kholmanskikh , pushed by Cyril Hrubis Cyril Hrubis

cpuset/cpuset_base_ops_test: fix expected error

At least since kernel 3.0.0 writing '0-' to
$CPUSET/N/{cpus, mems} files doesn't raise an error.
Reading content of these files after writing gives '0'.

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>

2013-10-01 13:44:49 Tree
[27f2cc] by Stanislav Kholmanskikh Stanislav Kholmanskikh , pushed by Cyril Hrubis Cyril Hrubis

controllers/cpuset: removed bash sweetnesses

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>

2013-10-01 13:44:48 Tree
[8b458d] by Cyril Hrubis Cyril Hrubis

ltpapicmd.c: Fix the printf() format warnings.

* Fixes printf format warnings

* Remove useless allocations and strcpy()

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>

2013-10-01 14:23:34 Tree
[2b515b] by Stanislav Kholmanskikh Stanislav Kholmanskikh , pushed by Cyril Hrubis Cyril Hrubis

ltpapicmd.c: split main into separate functions

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>

2013-10-01 11:35:59 Tree
[f2f464] by Stanislav Kholmanskikh Stanislav Kholmanskikh , pushed by Cyril Hrubis Cyril Hrubis

tools: added tst_kvercmp2 binary

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>

2013-10-01 11:35:58 Tree
[f3b989] by Cyril Hrubis Cyril Hrubis

doc: Add documentation for module.mk

The example Makefile is taken from commit message from the previous
commit by Alexey Kodanev.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>

2013-10-01 13:37:02 Tree
[e05a5d] by Alexey Kodanev Alexey Kodanev , pushed by Cyril Hrubis Cyril Hrubis

mk/module.mk: add Makefile to build kernel modules

Makefile example:

ifneq ($(KERNELRELEASE),)

obj-m := module01.o

else

top_srcdir ?= ../../../..
include $(top_srcdir)/include/mk/testcases.mk

REQ_VERSION_MAJOR := 2
REQ_VERSION_PATCH := 6
MAKE_TARGETS := test01 test02 module01.ko

include $(top_srcdir)/include/mk/module.mk
include $(top_srcdir)/include/mk/generic_leaf_target.mk

endif

Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>

2013-10-01 11:32:25 Tree
[7f5bfb] by MaShimiao MaShimiao , pushed by Cyril Hrubis Cyril Hrubis

setuid/setuid04.c: Fix a double cleanup() error

The cleanup() may be called twice by both the parent and child process
in this testcase leading to a failure.

This patch makes sure cleanup() is called only once by parent process.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>

2013-09-26 09:42:02 Tree
[5cdeb8] by Cyril Hrubis Cyril Hrubis

syscalls: syslog: Fix daemon restart on SUSE.

Some distributions (at least SUSE) names the service 'syslog' even if
the syslog binary is named syslog-ng or rsyslog.

This patch adds codepath that tries restart "syslog" service if previous
attempt has failed.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>

2013-09-17 13:55:53 Tree
[15f730] by Stanislav Kholmanskikh Stanislav Kholmanskikh , pushed by Cyril Hrubis Cyril Hrubis

syscalls/getgroups: use TCID_DEFINE

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>

2013-09-17 10:55:01 Tree
Older >

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks