Commit Graph
351 Commits
Author SHA1 Message Date
NAKAMURA Gou 011ef60c4b support decimal numbers at MCKERNEL_RLIMIT_STACK 2013-10-30 14:28:32 +09:00
NAKAMURA Gou d557ba84d6 exclude interpreter's segment from data region
When an interpreter is located on the lower address (e.g. 0x0),
the text region is included in data region.
A fix to avoid this.
2013-10-30 14:28:32 +09:00
NAKAMURA Gou 603ef85454 mcexec: add a upper limit of the stack size
- When the stack size is greater than 1 GiB, reduced to 10 MiB.
- To achieve a reduction of the stack, restart itself using the exec().
- By using the environment variable MCKERNEL_RLIMIT_STACK,
  tell to McKernel the stack size of the original.
2013-10-11 22:36:16 +09:00
NAKAMURA Gou 3d32350be0 mcexec: add use of MCKERNEL_RLIMIT_STACK
MCKERNEL_RLIMIT_STACK is a environment variable which
specify RLIMIT_STACK value on McKernel.

syntax: MCKERNEL_RLIMIT_STACK=<cur>,<max>

example: MCKERNEL_RLIMIT_STACK=0x800000,-1
cur=8MiB, max=unlimited
2013-10-11 22:36:16 +09:00
NAKAMURA Gou 4fb6620f3a sys_getrlimit: modified to return mcexec's RLIMIT_STACK 2013-10-11 22:36:16 +09:00
NAKAMURA Gou bc173baf13 mcexec: add a path prefix for interpreter search
- When the interpreter is not found,
  add a prefix to the path and retry search.
- the prefix is specified by a environment variable MCEXEC_ALT_ROOT.
- If the MCEXEC_ALT_ROOT does not exist,
  /usr/linux-k1om-4.7/linux-k1om is used as a prefix.
2013-10-11 22:23:22 +09:00
NAKAMURA Gou 413fe7b54a mcexec: add a interpreter invocation
When start a program which have a PT_INTERP segment
(dynamic linkaged program have a PT_INTERP segment),
start the interpreter indicated by the PT_INTERP segment.
2013-10-11 22:23:22 +09:00
NAKAMURA Gou a171da1015 add a AT_ENTRY entry to the auxiliary vector 2013-10-11 22:23:22 +09:00
Tomoki Shirasawa 040fb64b22 add terminate thread 2013-09-02 00:39:22 +09:00
Tomoki Shirasawa 1d69225532 mcexec forward signal to MIC process. 2013-08-19 12:17:23 +09:00
NAKAMURA Gou 591f398768 add page fault forwarding 2013-08-08 12:43:15 +09:00
NAKAMURA Gou 78d9d3fcd2 Revert "trial implementation of private file mapping"
This reverts commit abe57218c4.
2013-07-26 16:44:39 +09:00
NAKAMURA Gou abe57218c4 trial implementation of private file mapping
for review only.  will soon be reverted.
2013-07-26 14:40:12 +09:00
Tomoki Shirasawa 70e46dcd4b mcexec print signum or exit status 2013-07-26 13:14:39 +09:00
NAKAMURA Gou b6d25861e5 create more mcexec thread so that all cpu to be serviced. 2013-07-18 09:25:58 +09:00
NAKAMURA Gou 2aa5194958 rewrite sys_mmap() as sys_new_mmap() 2013-07-10 13:11:19 +09:00
NAKAMURA Gou 5369864551 fix warnings 2013-06-19 16:47:02 +09:00
NAKAMURA Gou 32b8cc4651 delete unused codes 2013-06-17 18:07:26 +09:00
NAKAMURA Gou 8a7429d872 delete SYSCALL_DECLARE(gettimeofday) 2013-06-17 18:07:26 +09:00
NAKAMURA Gou 329dd42c32 add gettimeofday by physical buffer. used by futex() 2013-06-17 18:07:26 +09:00
NAKAMURA Gou 3d11115491 delete SYSCALL_DECLARE(readlink) 2013-06-17 18:07:26 +09:00
NAKAMURA Gou 1167ea7fb6 delete SYSCALL_DECLARE(getdents64) 2013-06-17 18:07:26 +09:00
NAKAMURA Gou b463f39344 delete SYSCALL_DECLARE(access) 2013-06-17 18:07:26 +09:00
NAKAMURA Gou 628793225f delete SYSCALL_DECLARE(getcwd) 2013-06-17 18:07:26 +09:00
NAKAMURA Gou d6f6e4d6d7 delete SYSCALL_DECLARE(uname) 2013-06-17 18:07:26 +09:00
NAKAMURA Gou 4494e54d38 delete SYSCALL_DECLARE(lseek) 2013-06-17 18:07:26 +09:00
NAKAMURA Gou 58c5a45aad delete SYSCALL_DECLARE(close) 2013-06-17 18:07:26 +09:00
NAKAMURA Gou 43792fbce9 delete SYSCALL_DECLARE(pwrite) 2013-06-17 18:07:25 +09:00
NAKAMURA Gou f7d9ad966c delete SYSCALL_DECLARE(write) 2013-06-17 18:07:25 +09:00
NAKAMURA Gou 887295a189 delete SYSCALL_DECLARE(pread) 2013-06-17 18:07:25 +09:00
NAKAMURA Gou 2ba7170ce1 delete SYSCALL_DECLARE(read) 2013-06-17 18:07:25 +09:00
NAKAMURA Gou 5d0062c204 delete SYSCALL_DECLARE(time) 2013-06-17 18:07:25 +09:00
NAKAMURA Gou e6bea799aa delete SYSCALL_DECLARE(stat) 2013-06-17 18:07:25 +09:00
NAKAMURA Gou 9810c9c0de delete SYSCALL_DECLARE(fstat) 2013-06-17 18:07:25 +09:00
NAKAMURA Gou 1fe6b5fb7b delete sys_getxid() 2013-06-17 18:07:25 +09:00
NAKAMURA Gou 5206ae7d57 delete old? ioctl(2) delegation codes 2013-06-07 21:21:22 +09:00
NAKAMURA Gou 08b881b530 delete old fcntl(2) delegation codes 2013-06-07 21:21:22 +09:00
simin 9354c82ee7 Merge branch 'master' of postpeta.pccluster.org:mckernel 2013-05-21 03:53:18 +09:00
simin 0bdc047515 exchange the dcfa stuff init/exit order in mcexec 2013-05-20 13:52:17 -05:00
Masamichi Takagi m-takagi@ab.jp.nec.com d3764f0417 revert compile option of $(EXTRA_CFLAGS) and compiled objects of $(EXTRA_OBJS)
in executer/user/Makefile.in, which builds mcexec, because DCFA in
comm-ib repository passes these variables to combine additional binaries to
create custom mcexec
2013-05-14 10:20:09 +09:00
Tomoki Shirasawa 4ab5aaf8cf SC12 OpenMP 実行環境の取り込み (/proc/cpuinfo, /proc/meminfo, /sys/devices/system/cpu/online) 2013-05-09 12:40:17 +09:00
Tomoki Shirasawa fcd5d65f65 remove configure generated files 2013-05-02 10:57:10 +09:00
NAKAMURA Gou e09160cce7 add generic system call forwarding 2013-04-17 20:32:33 +09:00
simin af7ad56263 Merge branch 'master' of postpeta.pccluster.org:mckernel 2013-04-10 17:38:24 +09:00
simin 93e1f112f8 structure format(both user/kernel mode of dcfa and dcfampi enabled) 2013-04-10 17:38:02 +09:00
Tomoki Shirasawa ed305e096b Merge branch 'master' of postpeta.pccluster.org:mckernel 2013-02-18 12:11:16 +09:00
Tomoki Shirasawa 161b3faefe support configure/make 2013-02-18 12:07:32 +09:00
simin 15b7256738 change dcfampi contents for aal->ihk 2013-02-15 19:58:03 +09:00
shirasawa 9818e199f6 support builtin-x86 and builtin-mic 2013-01-06 15:45:17 +09:00
Tomoki Shirasawa 0a808057eb modify include lines and Makefiles 2012-12-17 16:10:56 +09:00