Git Log


Commit Date  
[68d1eb] by Caspar Zhang Caspar Zhang

make mce-test a submodule

cloning mce-test from

git://github.com/andikleen/mce-test.git

and use it as a submodule of git.

Signed-off-by: Caspar Zhang <caspar@casparzhang.com>
Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Reviewed-by: Andi Kleen <andi.kleen@intel.com>
Acked-by: Shubham Goyal <shubham@linux.vnet.ibm.com>

2012-04-06 14:26:28 Tree
[d2a255] by Peng Haitao Peng Haitao , pushed by Wanlong Gao Wanlong Gao

at_deny01: fix a bug of /etc/init.d/atd is nonexistent

/etc/init.d/atd is nonexistent in fedora16, so should use systemctl.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Reviewed-by: Garrett Cooper <yanegomi@gmail.com>

2012-04-05 01:12:33 Tree
[62e3be] by Wanlong Gao Wanlong Gao

pthread_join: skip the detached thread

It's impossible to re-join a thread if it's detached.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2012-04-05 00:04:47 Tree
[d26b6a] by Wanlong Gao Wanlong Gao

pthread_join/6-3: split the do_it switch

If the "creating thread" thread is dead before the "sem_wait"
thread, then the case will hang up on "sem_wait" forever .
So, we split the switch to do_it1 and do_it2, and make sure
that we can stop the "sem_wait" thread before the "creating thread"
thread.

And remove the sleep(10) since we don't need it after splitting
the do_it switch now.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2012-04-05 00:04:46 Tree
[a912de] by Wanlong Gao Wanlong Gao

hugeshmdt: make sure shm_size is not bigger than shmmax

check shm_size to make sure that it's not bigger than shmmax.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Reviewed-by: Caspar Zhang <caspar@casparzhang.com>

2012-04-02 09:53:02 Tree
[6aa1b8] by Wanlong Gao Wanlong Gao

hugeshmctl: make sure shm_size not bigger than shmmax

check shm_size to make sure that it's not bigger that shmmax.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Reviewed-by: Caspar Zhang <caspar@casparzhang.com>

2012-04-02 09:53:02 Tree
[fd4680] by Wanlong Gao Wanlong Gao

hugeshmget: use the new check_shmmax to check shm_size

use the new function check_shmmax to check the shm_size,
make sure that shm_size is not bigger than shmmax.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Reviewed-by: Caspar Zhang <caspar@casparzhang.com>

2012-04-02 09:53:02 Tree
[880e33] by Wanlong Gao Wanlong Gao

hugeshmat: check the shm_size not bigger than shmmax

check shm_size to make sure it's not bigger than shmmax.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Reviewed-by: Caspar Zhang <caspar@casparzhang.com>

2012-04-02 09:53:01 Tree
[892153] by Wanlong Gao Wanlong Gao

memlib: add update_shm_size to check shm_size not bigger than shmmax

add a lib function to check the shm_size, make sure it's not
bigger than shmmax.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Reviewed-by: Caspar Zhang <caspar@casparzhang.com>

2012-04-02 09:53:01 Tree
[994f44] by Wanlong Gao Wanlong Gao

hugetlb: add lib-clean in makefile

make sure we can do lib-clean in hugetlb.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Acked-by: Caspar Zhang <caspar@casparzhang.com>
Reviewed-by: Garrett Cooper <yanegomi@gmail.com>

2012-04-02 09:53:01 Tree
[b4a62c] (20120401) by shubham shubham

LTP 20120401

2012-04-01 10:39:13 Tree
[4f267b] by Zhouping Liu Zhouping Liu , pushed by Caspar Zhang Caspar Zhang

mm/tunable: fix unexpected error log in min_free_kbytes

when overcommit_memory=0, mmap() will be destroyed in two below scenario:
1) MAP_FAILED with ENOMEM,
2) oom_killer kill it.
without the patch, it just catched oom_killer scenario,
the patch fixed it.

Signed-off-by: Zhouping Liu <zliu@redhat.com>

2012-04-01 07:43:52 Tree
[4611a5] by lidan lidan , pushed by Wanlong Gao Wanlong Gao

pthread_join:4-1.c:ignore detached thread

Case pthread_join/4-1.c aims to check the following assertion
"If the thread calling pthread_join is canceled, the joined
thread remains joinable."
It uses array scenarii defined in "threads_scenarii.c" which
sets attribute of some threads as detached.
This patch ignores the detached threads since once
a thread has been detached, it can't be joined with
pthread_join(3) or be made joinable again.

Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>

2012-03-30 06:48:00 Tree
[9bdcec] by Wanlong Gao Wanlong Gao

pthread_join: code cleanups

cleanup the code

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2012-03-30 06:42:13 Tree
[33341a] by Peng Haitao Peng Haitao , pushed by Wanlong Gao Wanlong Gao

cron02: fix a bug of /etc/init.d/crond is nonexistent

/etc/init.d/crond is nonexistent in fedora16, so should use systemctl.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Reviewed-by: Garrett Cooper <yanegomi@gmail.com>

2012-03-30 01:11:44 Tree
[177cee] by lidan lidan , pushed by Wanlong Gao Wanlong Gao

pthread_join:4-1.c: clean up code

sorry for using old version checkpatch.pl.

code cleanup for pthread_join/4-1.c

Reviewed-by: Caspar Zhang <caspar@casparzhang.com>
Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2012-03-29 09:53:25 Tree
[177a98] by Wanlong Gao Wanlong Gao

hugeshmget02: limit the shm_size to shmmax

If shm_size bigger than shmmax, shmget() will fail with
EINTVAL. So, limit the value of shm_size.

Below is the test result:
[root@gaowanlong hugeshmget]# ./hugeshmget02
hugeshmget02 0 TINFO : set nr_hugepages to 128
hugeshmget02 1 TBROK : shmget #setup: errno=EINVAL(22): Invalid argument
hugeshmget02 2 TBROK : Remaining cases broken
hugeshmget02 0 TINFO : set nr_hugepages to 0
[root@gaowanlong hugeshmget]# cat /proc/sys/kernel/shmmax
33554432

After patched,

[root@gaowanlong hugeshmget]# ./hugeshmget02
hugeshmget02 0 TINFO : set nr_hugepages to 128
hugeshmget02 1 TPASS : shmget failed as expected: TEST_ERRNO=EINVAL(22): Invalid argument
hugeshmget02 2 TPASS : shmget failed as expected: TEST_ERRNO=EINVAL(22): Invalid argument
hugeshmget02 3 TPASS : shmget failed as expected: TEST_ERRNO=EEXIST(17): File exists
hugeshmget02 4 TPASS : shmget failed as expected: TEST_ERRNO=ENOENT(2): No such file or directory
hugeshmget02 0 TINFO : set nr_hugepages to 0
[root@gaowanlong hugeshmget]# cat /proc/sys/kernel/shmall
2097152
[root@gaowanlong hugeshmget]# cat /proc/sys/kernel/shmmax
33554432

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Acked-by: Caspar Zhang <caspar@casparzhang.com>

2012-03-27 03:08:35 Tree
[bab395] by Jan Stancek Jan Stancek , pushed by Wanlong Gao Wanlong Gao

mremap: fix dependency on ipc subdir

We need to use MAKE_DEPS to declare the ipc subdir depend otherwise
attempting to do `make mremap01` without building in the ipc subdir
will fail, and we can hit race conditions in the overall `make`.

This is same change as in commit:
commit 7103d3e8e0f9dc1804ba06ee66ee02753e8ce50e
Author: Mike Frysinger <vapier@gentoo.org>
Date: Fri Mar 23 12:27:13 2012 -0400
kill: fix dependency on ipc subdir

Signed-off-by: Jan Stancek <jstancek@redhat.com>
Reviewed-by: Caspar Zhang <caspar@casparzhang.com>

2012-03-27 03:08:35 Tree
[8b7cc6] by Zhouping Liu Zhouping Liu , pushed by Wanlong Gao Wanlong Gao

mm/tunable: add a new testcase min_free_kbytes

The tune is used to control free memory, and system always
reserve > min_free_kbytes memory at least.

Since the tune is not too large or too little, which will
lead to the system hang, so I choose two cases, and test them
on all overcommit_memory policy (0, 1, 2), at the same time,
compare the current free memory with the tunable value
repeatedly.

a) default min_free_kbytes with all overcommit memory policy
b) half of mem_free with all overcommit memory policy

Signed-off-by: Zhouping Liu <zliu@redhat.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2012-03-26 05:28:17 Tree
[7103d3] by Mike Frysinger Mike Frysinger

kill: fix dependency on ipc subdir

We need to use MAKE_DEPS to declare the ipc subdir depend otherwise
attempting to do `make kill01` without building in the ipc subdir
will fail, and we can hit race conditions in the overall `make`.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>

2012-03-23 16:27:13 Tree
[8cd840] by Wanlong Gao Wanlong Gao

mq_timedreceive: fix the bad coding style

code cleanups

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2012-03-22 15:43:45 Tree
[781a61] by Peng Haitao Peng Haitao , pushed by Wanlong Gao Wanlong Gao

aio_read:8-1.c: Forget initializing struct aiocb before using it

There are 2 changes in this patch.
1. Initialize the aiocb struct before using it.
2. If Prioritized Input and Output option is supported, submit the
aiocb with invalid aio_reqprio, else return untested.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2012-03-22 13:03:37 Tree
[33d74b] by lidan lidan , pushed by Wanlong Gao Wanlong Gao

testfrmw:disable thread cancelability while output is running

Function output can be canceled by pthread_cancel(), which,
maybe, leads to a deadlock as it calls pthread_mutex_lock().
That's catched in case "pthread_join/4-1.c".

So,disable thread cancelability until output finishes.

Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2012-03-22 13:03:37 Tree
[d6748f] by Akira Takeuchi Akira Takeuchi , pushed by Wanlong Gao Wanlong Gao

mq_timedreceive: 10-2.c: check timeout error rather than invalid parameter error

10-2.c now passes the invalid parameter to mq_timedreceive by specifying
a negative value to nanoseconds field, and checks whether EINVAL is not
returned when a message can be removed from the queue immediately.

However, this may not be a appropriate testing of mq_timedreceive.
POSIX spec of mq_timedreceive says:
The validity of the abstime parameter need not be checked
if a message can be removed from the message queue immediately.

This is open for interpretation of POSIX spec, and it was argued about in LKML.
https://lkml.org/lkml/2012/3/14/589

The conclusion in LKML was that what POSIX spec says is "you don't *have*
to check validity". That is, it is allowed to check the validity.

On the other hand, actually, timeout error should not be returned when message
can be performed immediately.

Therefore, I modify the testcase to check timeout error rather than invalid
parameter error.

Signed-off-by: Akira Takeuchi <takeuchi.akr@jp.panasonic.com>
Signed-off-by: Kiyoshi Owada <owada.kiyoshi@jp.panasonic.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2012-03-22 13:03:37 Tree
[3f8c00] by Zhouping Liu Zhouping Liu , pushed by Caspar Zhang Caspar Zhang

mem/oom: avoid unexpected error when no memcg swap accounting

Since commit http://git.kernel.org/linus/a42c390cfa0c,
which added an option to control memcg swap, when kernel
neither set CGROUP_MEM_RES_CTLR_SWAP_ENABLED nor add
'swapaccount=1' kernel parameter, that indicates memcg swap
accounting is disabled, it will have no such file:
memory.memsw.*, then oom03 & oom04 cases will fail.

The patch fixed it: removed memsw cases when memcg swap
accounting is disabled, and added a TCONF:
tst_resm(TCONF,"memcg swap accounting is disabled");

Signed-off-by: Zhouping Liu <zliu@redhat.com>
Reviewed-by: Caspar Zhang <czhang@redhat.com>
Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

2012-03-19 11:25:39 Tree
Older >