Commit Graph

66 Commits

Author SHA1 Message Date
jiangjianfeng d35888c817 Add uevent_err test 2025-06-06 11:33:09 +08:00
Wang Siyuan 58e4f45bb1 Add per-CPU counters and track RSS for each `Vmar` 2025-06-03 23:24:32 +08:00
Ruihan Li 63daf69e17 Fix incorrect types in `sys_getcpu` 2025-05-29 10:33:02 +08:00
Ruihan Li d5c7a8bae3 Allow non-leaders to operate jobs 2025-05-12 16:09:43 +08:00
Ruihan Li da82ca619f Add job control regression tests 2025-05-09 17:12:31 +08:00
Ruihan Li 50ba735e96 Handle negative P(G)IDs via `cast_(un)signed` 2025-05-09 11:38:01 +08:00
Ruihan Li a993264265 Refactor and test `get{pgid,sid}` 2025-05-06 18:47:10 +08:00
Ruihan Li 7e4509df9c Refactor and test `set{pgid,sid}` 2025-05-06 18:47:10 +08:00
Shaowei Song 764e3afa7c Add a simple test case for OverlayFS 2025-04-24 20:07:06 +08:00
Ruihan Li 17e5108c17 Add regression tests 2025-04-23 20:37:40 +08:00
jiangjianfeng 5e9f537222 Add netlink regression test and gVisor test 2025-04-15 17:20:12 +08:00
Ruihan Li f8429b2735 Add a regression test 2025-04-14 21:13:11 +08:00
Ruihan Li d40d452e9d Receive RST packets as `ECONNRESET` errors 2025-03-10 18:08:08 +08:00
Ruihan Li aa29640ed7 Send RST packets when appropriate 2025-03-10 18:08:08 +08:00
jiangjianfeng 388eec449a Add ip level socket option 2025-03-07 13:38:02 +08:00
js2xxx c1dde01fc3 Add `sched_attr` system call series 2025-03-06 21:29:40 +08:00
Ruihan Li d37e60d082 Report socket errors in `send`/`recv` 2025-03-05 19:48:28 +08:00
Ruihan Li 68cf99993e Remove socket errors from `SocketOptionSet` 2025-03-05 19:48:28 +08:00
Chen Chengjun 65f9363d7c Add a test for reaper functionality 2025-03-03 19:31:50 +08:00
wheatfox 6d42a07e95 Implement `getcpu` syscall and add corresponding test application 2025-02-27 11:41:26 +08:00
jiangjianfeng 3f951e0c0c Enable gVisor tcp_socket_test 2025-02-11 10:50:20 +08:00
jiangjianfeng 39cc0dca26 Add socket hash table 2024-12-30 09:46:14 +08:00
jiangjianfeng 72cb160539 Add keepidle tcp option 2024-12-18 13:19:34 +08:00
Shaowei Song 547c92d2ff Add a simple test for POSIX shared memory 2024-12-18 12:26:33 +08:00
Ruihan Li 1ab63c7bcb Add regression tests for `exit()` 2024-12-17 19:36:38 +08:00
jiangjianfeng 8b07a68e9e Add regression test for keepalive and tcp nodelay 2024-12-15 16:50:43 +08:00
jiangjianfeng 74a59206d7 Refactor sockoption.c with test framework 2024-12-15 16:50:43 +08:00
Ruize Tang 065a3bd1c3 Avoid inline comments in variable assignments in Makefile 2024-12-11 19:37:45 +08:00
Ruihan Li fbe7734a5c Fix CI failures in network tests 2024-12-11 16:47:13 +08:00
Ruize Tang 6c4f56723c Fix futex lost wakeup 2024-11-27 10:27:22 +08:00
Ruize Tang 05ff441577 Clear `DF` flag during signal handling to conform to x86-64 calling convention 2024-11-26 10:50:58 +08:00
Ruihan Li 827c15aa03 Add self-connecting regression tests 2024-11-08 10:49:02 +08:00
Ruihan Li 19b13d88e2 Fix `clone_exit_signal` test 2024-11-06 21:53:55 +08:00
Jianfeng Jiang 00ffc5266d Add tcp poll test program 2024-10-28 22:47:50 +08:00
Ruihan Li b5610f3034 Report `POLLNVAL` in `poll` for invalid FDs 2024-10-28 14:33:32 +08:00
Zhang Junyang c38455f9f6 Add tests for system call `sched_get/set_affinity` 2024-10-26 22:06:41 +08:00
Carlos López 0a36760f7a Respect user-defined exit signal in clone() and clone3()
When calling clone() and clone3(), the user is allowed to specify a
signal to be sent to the parent process on exit. Respect this value by
storing it in the Process struct and sending the signal on exit.

Add a test as well to verify that the signal is properly delivered to
the parent.
2024-09-26 20:07:43 +08:00
Ruihan Li 179705a3fc Fix RamFS readahead 2024-09-24 20:34:19 +08:00
Jianfeng Jiang c5009e38f1 Add pipe/short_rw test
Co-authored-by: Ruihan Li <lrh2000@pku.edu.cn>
2024-09-20 10:37:20 +08:00
Jianfeng Jiang ea8327af0f Add regression test for sendmsg/recvmsg 2024-09-20 10:37:20 +08:00
Ruihan Li 320092eda2 Implement blocking `connect` properly 2024-09-13 22:09:46 +08:00
Ruihan Li 6f915133b5 Fix error codes in `bind` 2024-09-13 22:09:46 +08:00
Ruihan Li a345e11b96 Fix error codes in `send`, `recv`, `accept` 2024-09-13 22:09:46 +08:00
Ruihan Li a8592a16ea Fix I/O events related to shutdown 2024-09-13 22:09:46 +08:00
Ruihan Li 421f6b8e5b Fix I/O events cross different states 2024-09-13 22:09:46 +08:00
Ruihan Li f831f5685f Fix I/O events for UNIX connected sockets 2024-09-13 22:09:46 +08:00
Ruihan Li 7a13c0dff6 Fix behavior related to EPOLLONESHOT 2024-09-13 21:02:06 +08:00
Ruihan Li 6151d65cf5 Fix poll behavior 2024-09-13 21:02:06 +08:00
Ruihan Li 479d98c8b9 Use `(fd, file)` as the key 2024-09-13 21:02:06 +08:00
Ruihan Li 21a1041d27 Clean up files generated by UNIX regression tests 2024-08-28 19:54:36 +08:00