Tomoki Shirasawa
8aaf0f8551
test: Add test programs for #1166
...
refs: #1166
Change-Id: I9b6dd8628e8a3dcb2281e31f4b8d116e9c7852d8
2019-01-08 15:15:34 +09:00
Shiratori, Takehiro
cd5cb469eb
Fix "Test "Error handling improvement" on arm64"
...
Change-Id: Ie3c835dfe65a9754628ca221f3f563b67b0eb1a0
Refs: #727
Refs: #873
Refs: #1011
Refs: #1232
Refs: #1233
2018-12-10 19:58:15 +09:00
Masamichi Takagi
7a8f5043c5
mcstat: Fix test description
...
Change-Id: I942b351146cabd259eb164b73375a547d0fd0c30
2018-12-10 09:27:28 +00:00
Masamichi Takagi
cf6514def9
test: Add descriptions to "user_space" test
...
Change-Id: Ic14ddbfbf6bfc12d40d3284ec08e040597356963
2018-12-10 12:59:20 +09:00
Shiratori, Takehiro
8a2f4be443
Test "user_space" on arm64
...
Test: Architecture dependent separation of user space access code.
Add arm64 result files.
Change-Id: I651992c0c8bcd1da8313a35eda03612405b55b89
2018-12-07 07:46:09 +00:00
Masamichi Takagi
8a684587fa
Fix "Test "Error handling improvement" on arm64"
...
* Fix test to make mcexec fail to fork()
Change-Id: I9a696787b5d4ce44541a4651622e5be60f9ef355
2018-12-07 07:40:14 +00:00
Shiratori, Takehiro
05c315857c
Test "Add mcstat tool" on arm64
...
Change-Id: I4bf1260e999c16fe7b9c339af3833ea007277889
2018-12-07 06:24:18 +00:00
Shiratori, Takehiro
ed3c138e1f
test: Fix user_space, process_vm_writev01 expected value file.
...
Fix to check only TPASS. (Delete pagesize)
test: pvw_003, pvw_012
Change-Id: I4f9c3c42b855d419f3db457fbb5e7865da85eee8
2018-12-05 15:51:52 +09:00
Shiratori, Takehiro
60c97d0e60
Test "mbind support" on arm64
...
Add arm64 result files.
Change-Id: I32e8d4e1346076683e7d55e8e928d168e439eaca
2018-12-05 11:27:03 +09:00
Shiratori, Takehiro
95e90c727e
Test "Error handling improvement" on arm64
...
The following test set:
execve: fix memory leak
add: NULL check for master_channel at IKC interrupt_handler.
Fix the check routine for elf sections (Fujitsu: POSTK_TEMP_FIX_77)
Change-Id: I16c2a341c48f6df10a4839be08b93ea16bda8fbe
Refs: #727
Refs: #873
Refs: #1011
2018-12-05 02:01:29 +00:00
Shiratori, Takehiro
ec844bb6e3
Test "fix: Bug for getrusage" on arm64
...
The following test set:
fix: Bug for getrusage return incorrect ru_maxrss
fix: Bug for getrusage(RUSAGE_CHILDREN) return parent info (POSTK_DEBUG_TEMP_FIX_72)
fix: Bug for getrusage often return incorrect ru_stime
Change-Id: I6734b1e34565d5d2715f9901a04ba5b6f0278032
Refs: #1032
Refs: #1033
Refs: #1034
2018-12-05 01:58:44 +00:00
Shiratori, Takehiro
a11d4d7a9d
Test "mcexec_destroy_per_process_data: System calls delegation can not be terminated in error when the last process that closed /dev/mcos0 is a child process." on arm64
...
Change-Id: I6bc3023c1fa6089bc2ca6365b59bbab384b3e1d7
Refs: #882
2018-12-05 01:43:31 +00:00
Shiratori, Takehiro
0ee446923a
Test "make sure to context-switch to idle thread when therad's status is PS_EXITED" on arm64
...
Change-Id: I757d529e49655e9010022f10414e4d6c9eb4c059
Refs: #1029
2018-12-05 01:21:48 +00:00
Dominique Martinet
01b2a1d213
Tests: dust off x86_64 mem_dest_prev
...
Change-Id: I445ea0e8ae2cd631c775718a86a64fd2ecb90f35
Refs: #1228
2018-12-04 10:05:39 +00:00
Masamichi Takagi
bbc39480d2
Fix test programs for "execve: fix memory leak"
...
* Fix README
Change-Id: I90fe1fbb26569bbab5a34638b5f357d7000eda5d
Refs: #727
2018-12-04 10:02:42 +00:00
Masamichi Takagi
dbe5e99cf9
Fix test of "make sure to context-switch to idle thread when therad's status is PS_EXITED"
...
Change-Id: I62ea813656805b6250b0465853e8fa2918b0c86b
Refs: #1029
Refs: #1227
2018-12-04 08:17:54 +00:00
Masamichi Takagi
6b293409e5
mbind: Fix test programs
...
Refs: #1226
Change-Id: I12bf807812d93b7eca8f452e70e70e7c4e32f6a3
2018-12-04 08:17:13 +00:00
Shiratori, Takehiro
b94247c478
Test "signal: When the process receives a termination signal, it first terminates mcexec." on arm64
...
Change-Id: I1be32b991a45f0892146d93a9e6d6be9199faf59
Refs: #870
2018-12-04 05:07:32 +00:00
Shiratori, Takehiro
556a64ac5e
Test "signal: When the process receives a termination signal, it first terminates mcexec." on arm64
...
Change-Id: I5c8ab90ffd5c5da30162d606f4d86dca9d387b5a
Refs: #863
2018-12-04 05:06:07 +00:00
Shiratori, Takehiro
3f11c1aee5
Test "Wait for LWK to run at shutdown." on arm64
...
Change-Id: I96785dda7a1a7eb36ceeb31401d71b4e40efb185
Refs: #898
Refs: #928
2018-12-03 20:06:37 +09:00
Masamichi Takagi
2b1b82b242
qlmpi: Refactor test programs
...
Change-Id: I3dd74eda1b77aea529f9cc044177b6c29185b6df
2018-11-29 10:33:11 +00:00
Masamichi Takagi
502463ed9e
test: Fix user_space, testing use of copy_from_user / copy_to_user
...
Change-Id: I2caef1ba6597f693dc4f773ef8fedbd837c45ce6
2018-11-29 19:32:04 +09:00
Masamichi Takagi
82a57d5f55
test: Add MCK_DIR to mck_test_config.sample.in
...
Change-Id: I9ed1b0433fc6b8eeb1cb024be2d33263e3283ab7
2018-11-29 12:50:29 +09:00
Masamichi Takagi
56abe988f3
test: Fix user_space, testing use of copy_from_user / copy_to_user
...
Change-Id: I2caef1ba6597f693dc4f773ef8fedbd837c45ce6
2018-11-29 11:32:42 +09:00
Masamichi Takagi
68c581f721
test: Fix 898 and 928
...
1. Catch up with the interface change in
ihk_os_destroy_pseudofs() and ihk_os_create_pseudofs()
2. Expect ihk_os_shutdown() to return zero when the OS had been shut
down
Refs: #898
Refs: #928
Change-Id: Ic430550ebfd5cd21164eefaed155fe769adf8395
2018-11-28 02:19:37 +00:00
Shiratori, Takehiro
b2a58ce3e3
Test "Confirm build ID of mcexec, ihk, mckernel" on arm64
...
Change-Id: Ia5fa6d6d062e8d845c7fedca1b6cc50fbeab1860
2018-11-27 08:12:28 +00:00
Shiratori, Takehiro
cfcf0137eb
Test "Exclude areas not assigned to Mckernel from direct map of all phys." on arm64
...
Change-Id: Ida0d1f13f4a14c2ee219325aaa4b2cac1476c991
2018-11-27 05:29:15 +00:00
Shiratori, Takehiro
00395d68d4
Test "mcexec additional options (h, m, n, O, stack-premap)" on arm64
...
Change-Id: I85d5deb0433cc1208e4b6837dcc6d6dc2a7b7b52
2018-11-27 05:12:43 +00:00
Shiratori, Takehiro
ddde519263
Test "rus_vm_fault: If page fault occurs in a thread that has not processed system call offloading, incorrectly return to normal." on arm64
...
Change-Id: I3dc98d8994228ad27cfdf9ca96a0a76e544bc947
Refs: #923
2018-11-22 05:27:56 +00:00
Shiratori, Takehiro
f240671fc8
Test "ptrace: support for attaching child_process to parent" on arm64
...
Change-Id: I752542b6bfbf023d22e91f909518660afbff813c
Refs: #885
2018-11-22 04:54:29 +00:00
Shiratori, Takehiro
cf113d392a
Test "/proc/PID/maps support add" on arm64.
...
Change-Id: I0585ae6257b5c0269760dd7f23ba75b83dd7ac2c
2018-11-22 04:53:04 +00:00
Shiratori, Takehiro
9e57db5427
Test "sigaction: support for SA_RESETHAND on x86_64" on arm64
...
Change-Id: I6154134d53d1ee0344e4bc344f302ffaf810c618
Refs: #1031
2018-11-22 04:51:36 +00:00
Shiratori, Takehiro
739472bd86
Test "xpmem: support for fork()" on arm64
...
Change-Id: I12c628312157f35e239d3c5e67fa38adf156406b
Refs #925
2018-11-22 04:50:58 +00:00
Ken Sato
6f9fef2b13
procfs: Make /proc/<PID>/mem unwritable
...
refs: #1177
Change-Id: Ibb319221155547febf9126e05a9e322bd9f140cc
2018-10-26 08:58:31 +00:00
Dominique Martinet
39f9d7fdff
Handle hugetlbfs file mapping
...
Hugetlbfs file mappings are handled differently than regular files:
- pager_req_create will tell us the file is in a hugetlbfs
- allocate memory upfront, we need to fail if not enough memory
- the memory needs to be given again if another process maps the same
file
This implementation still has some hacks, in particular, the memory
needs to be freed when all mappings are done and the file has been
deleted/closed by all processes.
We cannot know when the file is closed/unlinked easily, so clean up
memory when all processes have exited.
To test, install libhugetlbfs and link a program with the additional
LDFLAGS += -B /usr/share/libhugetlbfs -Wl,--hugetlbfs-align
Then run with HUGETLB_ELFMAP=RW set, you can check this works with
HUGETLB_DEBUG=1 HUGETLB_VERBOSE=2
Change-Id: I327920ff06efd82e91b319b27319f41912169af1
2018-10-11 08:54:13 +00:00
Tomoki Shirasawa
ed1edb152b
ptrace supports threads
...
Fujitsu: POSTK_DEBUG_TEMP_FIX_53, POSTK_DEBUG_ARCH_DEP_44
Refs: #771 , #1179 , #1143
Change-Id: Ie17ece6864f0eeb0c0e550f4e369abb77980a0d0
2018-10-01 03:57:16 +00:00
Masamichi Takagi
28c434a230
test: Fix test for 898 and 928
...
Change-Id: If939dda7ccdcf568abfa42ccab7ff6be2b983cc2
2018-09-28 02:55:55 +00:00
Ken Sato
e803698618
test: Refactor test programs
...
Change-Id: I77fec2f5f30f6fda3bda6f85ce00f1c2e7f7a9b3
2018-09-25 12:45:20 +09:00
Ken Sato
c862b29d65
sched_setaffinity: Check migration after decrementing in_interrupt
...
refs: #1180
Change-Id: I2b3fb03066812ecc802406297084977e757092fe
2018-09-25 01:52:54 +00:00
Ken Sato
dd58d366c3
procfs: Fix pread/pwrite to procfs fail when specified size is bigger than 4MB
...
Fujitsu: POSTK_DEBUG_TEMP_FIX_43
Refs: #1018
Change-Id: I736ac69885695ef8eeababc3fcfe69a6258b4e16
2018-09-20 02:06:17 +00:00
Ken Sato
ab284b0531
test: Add test programs for #1158
...
refs: #1158
Change-Id: I853dd84f5433a01da510813e9fb1276e5477f73f
2018-09-20 02:05:55 +00:00
Ken Sato
a269d96978
coredump: Exclude special areas
...
Fujitsu: POSTK_DEBUG_TEMP_FIX_38
Refs: #1005
Change-Id: I8934d2aecf06a09469afe131347e42b48b6f67f6
2018-09-20 01:48:17 +00:00
Masamichi Takagi
3df82d61ce
test: Fix tests of "user_space"
...
user_space/swapout/swapout_copy_to_01.sh:
* Use ~/.mck_test_config
* Fix checking if McKernel version is written in swap-file
user_space/futex/futex_test.sh:
* Use ~/.mck_test_config
user_space/perf_event_open/perf_event_open_test.sh
* Use ~/.mck_test_config
Change-Id: Id93b207ed0e3e9ebf307073db81b40335bc5b140
2018-09-19 08:54:08 +00:00
Masamichi Takagi
159092c58e
rusage: Refactor test programs
...
Change-Id: I846a6416acf903f7fa19db98d4d937c51c10b4af
2018-09-18 18:42:19 +09:00
Dominique Martinet
60011718d2
add common test framework
...
Add new file with common functions for tests to use.
- loads config file
- checks for mcexec etc
- checks for LTP and OSTEST if required
- handle mcstop / mcreboot if required, and provide function for it
At the same time, make a few changes to mck_test_config:
- move to ~/.mck_test_config
- add boot params to the config, tests the require specific params can
overwite it
- make the config "set-if-variable-is-empty", so someone can overwrite
any param by setting the environment value e.g. LTP=.... ./test.sh
will use the value given
Change-Id: Ib04112043e3eb89615dc7afaa8842a98571fab93
2018-09-14 03:30:06 +00:00
Tomoki Shirasawa
7e342751a2
do_syscall: Delegate system calls to the mcexec with the same pid
...
This includes the following fix:
send_syscall, do_syscall: remove argument pid
Fujitsu: POSTK_TEMP_FIX_26
Refs: #1165
Change-Id: I702362c07a28f507a5e43dd751949aefa24bc8c0
2018-09-13 16:59:47 +09:00
Ken Sato
c23bc8d401
syscall_time: Handle by McKernel
...
refs: #1036
Change-Id: Ifa81b613c7ee8d95ae7cdf3dd54643f60526fa73
2018-09-13 07:44:02 +00:00
Tomoki Shirasawa
5e760db417
syscall: the signal received during system call processing is not processed.
...
Refs: #1176
Fujitsu: POSTK_DEBUG_TEMP_FIX_56
Change-Id: I410160ccbcef3ef49a0e37611a608bc87c97e63b
2018-09-13 07:04:11 +00:00
Tomoki Shirasawa
e4da71010c
check_signal: system call restart is done only once
...
Fujitsu: POSTK_TEMP_FIX_66
Refs: #1009
Change-Id: Ic0f04ac6b7f6c6bb01b55fb389bf9befd56b1dd9
2018-09-13 07:00:49 +00:00
Masamichi Takagi
4438f994dc
uti: Add/Modify test programs
...
Change-Id: I27a39d6b11af5243f93d07c31c2ef80f6727dd53
2018-09-04 19:52:11 +09:00