Commit Graph

161 Commits

Author SHA1 Message Date
Takayuki Okamoto
3bd0137c25 Fix some race condition on arm64
* move barrier() to architecture depended region
* add barrier() in issue_ipi, kprintf, map_virtual
* enable the workaround for cavium thunderx
2017-10-18 09:20:51 +09:00
Tomoki Shirasawa
df3f388e09 syscall: set -ENOSYS to syscall_return before calling ptrace_syscall_enter
refs #943
2017-09-26 14:25:49 +09:00
Masamichi Takagi
daa7526127 rusage and ihklib: Fix out-of-memory reporting and cleanup
1. Fix OOM: Count memory usage only when allocation succeeded
2. Fix OOM: Make user allocation fail when memory is running out
3. Fix OOM: Move rusage_init() before numa_init()
4. Cleanup: Rename ihkconfig/ihkosctl functions
5. Cleanup: Pass event type to eventfd()
6. Cleanup: arch/.../rusage.h --> arch/.../arch_rusage.h
2017-09-20 15:11:57 +09:00
Masamichi Takagi
aa7cb970c4 ihk_os_getrusage(): Compile LWK-specific results in mcctrl
1. User asks mcctrl for the result via ihk_os_getrusage() with passing void *
2. mcctrl compiles the results and passes them to the user
3. User interprets it by using the type defined in the LWK-specific header
2017-09-20 15:03:45 +09:00
Takayuki Okamoto
9a550b310c Add hwcap.h for x86 2017-09-06 11:10:32 +09:00
Takayuki Okamoto
9989f41fd3 add arm64 support
- add arm64 dependent codes with GICv3 and SVE support
- fix bugs based on architecture separation requests
2017-09-05 15:06:27 +09:00
Yutaka Ishikawa
236a072311 Add qlmpi and swap to mckernel (This is rebase commit for merging to development) 2017-08-29 15:04:58 +09:00
Masamichi Takagi
74f15783d2 ihk_os_getrusage(): Add per-page-size memory usage accounting 2017-08-17 12:49:34 +09:00
Balazs Gerofi
06f824c829 pte_update_phys(): update physical address of a PTE 2017-07-08 18:36:05 +09:00
Balazs Gerofi
2189c55d99 x86: ASM fast memset() 2017-07-08 18:26:51 +09:00
Masamichi Takagi
e64bd49d9e Add comment for x86_sregs 2017-07-03 10:43:36 +09:00
Tomoki Shirasawa
07efb3ab9a support to utility thread offloading 2017-06-27 13:27:09 +09:00
Balazs Gerofi
5758dba7cf use spinlocks in MCS rwlock 2017-06-08 14:16:29 +09:00
Balazs Gerofi
e3e0f6a174 mcexec: introduction of --profile 2017-05-23 02:42:06 +09:00
Ken Sato
8daffa939e IKC: distribute IKC-interrupt to Linux cpus. 2017-05-19 10:26:29 +09:00
Katsukura
3fe2257929 create rusage branch. 2017-03-15 23:22:51 +09:00
Balazs Gerofi
5cc420a6c3 syscall/offload tracker: clean-up and support process-wise aggregation 2017-01-30 07:24:09 +09:00
Balazs Gerofi
91cdb16158 MCS lock: separate IRQ disable/enable versions 2016-12-18 21:12:37 +09:00
Yoichi Umezawa
f410af1cfc xpmem: porting xpmem v2.6.3
implement xpmem_make, xpmem_remove
2016-12-16 17:00:09 +09:00
Balazs Gerofi
f78d031e64 syscall and offload tracking (disabled by default) 2016-12-05 18:10:20 +09:00
Balazs Gerofi
2f8cca2d6d memcpy(): faster version using ASM rep; movsl 2016-11-23 08:51:22 +09:00
Balazs Gerofi
994b9a19ac NUMA: expose CPU and memory info in /proc/self/status 2016-10-14 21:34:32 +09:00
Balazs Gerofi
2929fbb803 NUMA: support multiple physical allocators 2016-10-14 21:34:30 +09:00
Balazs Gerofi
0884e3d543 IHK-IKC: map queue in McKernel as cacheable 2016-08-14 11:16:40 +09:00
Ken Sato
dd37443fc7 PAPI support: performance counter's overflow.
and support mckfd fcntl.
2016-06-24 13:50:12 +09:00
NAKAMURA Gou
d4a0b32f06 support large pages 2016-04-21 23:22:55 +09:00
NAKAMURA Gou
328175547f Revert "fix REQ-37: remap_one_page: remove to check page size"
This reverts commit 6790126a23.

- reverted commit should remove a 'pgsize' check in remap_one_page()
  instead of a 'pgsize' check in pte_make_fileoff().
- In IA-32e, PTE format varies with page size. Therefore 'pgsize'
  parameter of pte_make_fileoff() is preferable.
2016-04-21 23:22:54 +09:00
NAKAMURA Gou
41bb2ab5e6 support vdso which borrows clocksource from linux 2016-03-28 22:57:44 +09:00
NAKAMURA Gou
a587c8f5e5 x86: encode cpu# in IA32_TSC_AUX and size of GDTe#15 2016-03-28 22:57:44 +09:00
NAKAMURA Gou
c760a01a79 add pte_get_attr() 2016-03-28 22:57:44 +09:00
Tomoki Shirasawa
6790126a23 fix REQ-37: remap_one_page: remove to check page size 2016-03-27 14:05:00 +09:00
Tomoki Shirasawa
b0096a2740 fix REQ-51 2016-03-26 12:23:51 +09:00
Tomoki Shirasawa
12eaea401e fix REQ-46 2016-03-25 12:59:18 +09:00
Tomoki Shirasawa
31595b7409 fix REQ-43 2016-03-25 12:57:31 +09:00
Tomoki Shirasawa
932a287437 fix REQ-40 2016-03-24 13:46:13 +09:00
NAKAMURA Gou
48167d3223 shmget: add "shmflg" checks for SHM_HUGE* 2016-03-23 19:14:27 +09:00
NAKAMURA Gou
d4d93df032 mmap: add "flags" checks for MAP_HUGE* 2016-03-23 19:04:32 +09:00
Tomoki Shirasawa
14b868907b fix REQ-27 2016-03-07 18:52:08 +09:00
Tomoki Shirasawa
dbc778e4fa support getrusage (work in progress) 2016-03-07 17:06:44 +09:00
Tomoki Shirasawa
26c0180374 rwlock_reader_lock: fix lock list jammed up 2016-03-03 22:47:48 +09:00
Tomoki Shirasawa
f1f1ba9c8c mcs_rwlock_reader_lock: temporary fix 2016-03-01 19:11:42 +09:00
Tomoki Shirasawa
863a5c5e5f fix REQ-2, REQ-6, REQ-8 2016-02-23 16:32:17 +09:00
Tomoki Shirasawa
2c50b716fd support setitimer/getitimer 2016-02-19 15:25:05 +09:00
Tomoki Shirasawa
eba2be8a35 support times 2016-02-18 13:14:18 +09:00
Tomoki Shirasawa
a997af71be support tkill
refs #664
2016-02-17 12:48:12 +09:00
Ken Sato
c0cc6ac6db Add skeleton for perf_event_open. 2016-02-09 14:54:53 +09:00
Balazs Gerofi
828a3ea57a futex(): support for cross address-space futexes 2015-11-24 14:58:04 +09:00
NAKAMURA Gou
c25f8c7a39 support settimeofday() 2015-10-27 19:21:50 +09:00
NAKAMURA Gou
9e53ae20d4 add memory barriers
- rmb()
- wmb()
2015-10-27 19:21:50 +09:00
NAKAMURA Gou
09c9ee58d1 add 64bit atomic operations
- ihk_atomic64_t
- IHK_ATOMIC64_INIT()
- ihk_atomic64_read()
- ihk_atomic64_inc()
2015-10-27 19:21:50 +09:00