110 Commits

Author SHA1 Message Date
Geoffrey Challen
b0649d1fd0 Better lock tests. 2017-02-20 10:40:49 -05:00
Geoffrey Challen
1a5b9cd54b Trying new lock tests. 2017-02-20 10:28:28 -05:00
Geoffrey Challen
4c9b617140 New lock tests. 2017-02-20 10:23:19 -05:00
Scott Haseley
dbb57b2826 Added snsecprintf function that writes the secprintf message into the
buffer provided.
2017-02-18 22:58:35 -05:00
Zachary Moore
4298d0634f alignment 2017-02-16 18:30:51 -05:00
Zachary Moore
7f40aaa461 alignment 2017-02-16 18:30:16 -05:00
Zachary Moore
2be98d540e Formatted code to align tabs 2017-02-16 18:18:00 -05:00
zsmoore
434a8856c6 Added more functionality to lock test 4 to also make sure release functions properly 2017-02-16 18:15:14 -05:00
Zachary Moore
694062537d switched string from lt1 to lt4 2017-02-16 12:32:34 -05:00
Zachary Moore
b8b57b14a6 Changed spaces to tabs in menu.c 2017-02-16 12:20:47 -05:00
Zachary Moore
8eb6dc55df Changed spaces to tabs on synch.c 2017-02-16 12:19:53 -05:00
zsmoore
b51f2a88de added new lock test to check do i hold functionality. tested on incorrect implementation, fails. tested on correct implementation, passed. 2017-02-16 01:41:05 -05:00
Geoffrey Challen
4de65867c5 Disable hangman option by default. 2017-02-09 10:29:35 -05:00
Geoffrey Challen
a662851491 Initial fix of upstream merge. 2017-02-09 10:09:30 -05:00
Geoffrey Challen
15abe49f09 Minor kernel changes. 2017-02-09 09:53:00 -05:00
Geoffrey Challen
0f0c5fcfc7 New GDB script. 2017-02-09 09:52:39 -05:00
Geoffrey Challen
a0ecc1e7e5 Changes to use deadlock detection. 2017-02-09 09:52:18 -05:00
Geoffrey Challen
52d122b854 Minor test changes. 2017-02-09 09:50:07 -05:00
Geoffrey Challen
e809face5f New debugging commands. 2017-02-09 09:49:42 -05:00
Geoffrey Challen
8af1edae0e Hang detection additions. 2017-02-09 09:49:03 -05:00
Geoffrey Challen
8435ba6436 New debug options. 2017-02-09 09:48:06 -05:00
Geoffrey Challen
5f8b9f7ff4 Low-level stack frame changes. 2017-02-09 09:47:06 -05:00
Geoffrey Challen
93cc12e3f2 Merge branch 'upstream' 2017-01-09 22:59:46 -05:00
Geoffrey Challen
08a300d1a6 Merge in 2.0.2. 2017-01-09 22:58:21 -05:00
Geoffrey Challen
e318e3171e Revert "Merging in 1.0.2."
This reverts commit 50cf3276e747c545b4ae53853d9b911731dc463e.
2017-01-09 22:52:13 -05:00
Geoffrey Challen
50cf3276e7 Merging in 2.0.2. 2017-01-09 22:40:23 -05:00
Scott Haseley
6d0d7c9230 Fixed unused label in change to kmalloctest 2016-04-11 17:02:51 -04:00
Scott Haseley
ec1c1de132 km1 and km2 need to panic on failure, not print just print failed. 2016-04-08 16:04:11 -04:00
Scott Haseley
388e6388a9 Added thread_wait_for_count() which allows the menu to wait for all (new) threads to
exit before continuing. We need this for khu testing because we have to make sure
cleanup is done before getting the used byte count.
2016-04-07 14:35:09 -04:00
Scott Haseley
e0fc622e00 Added progress functions that print '.'. There are versions that are always loud or
only loud during automated testing.
2016-04-06 13:26:05 -04:00
Scott Haseley
eede850f54 The km4 thread was checking the correct magic value, but printing the one on the first page.
The test result is correct, but might look like it is failing when it shouldn't.
2016-03-30 16:09:24 -04:00
Scott Haseley
7f3f686b1a Updated km4 to write to, and check, each page allocated in the multi-page allocation.
This should find cases where students ignore npages and just allocate one page, which
would previously work.
2016-03-28 15:43:39 -04:00
Scott Haseley
8380115efa Added new kmalloc test (km5) that tests various coremap properties. Also, km1-km4 were
cleaned up for test161.
2016-03-25 11:12:09 -04:00
Scott Haseley
501773f90e Added a global variable for the number of cpus 2016-03-25 11:11:08 -04:00
Scott Haseley
25a1d7debc Changed kheap_getused so that it doesn't double-count the pages it's using for
subpage allocation. We run into problems in determining memory leaks due to
kmalloc framgmentation, which can happen because of delayed thread cleanup.
2016-03-25 11:09:15 -04:00
Guru Prasad Srinivasa
03f484ff21 Merge branch 'master' of gitlab.ops-class.org:staff/os161 2016-03-10 17:30:37 -05:00
Guru Prasad Srinivasa
c9c9e50155 Updated forkbomb to better detect success
Previously, we were relying on subpage allocator failing to signal
that forkbomb was succeeding. However, there are cases where the
subpage allocator never fails but the test is still progressing fine.

This commit moves the secure print into forkbomb itself and changes
the test constraints to ensure that forkbomb runs for a certain amount
of time without crashing
2016-03-10 17:28:47 -05:00
Geoffrey Challen
d322a01342 Adding function to get used bytes. 2016-03-10 11:29:38 -05:00
Scott Haseley
196bb3b684 Now using static buffers (and protecting with a semaphore) for kernel secprintf.
We have to do this because we need secure output in kmalloc.
2016-03-07 15:05:58 -05:00
Geoffrey Challen
a07a4b75c1 Change free to used in new coremap function. 2016-03-05 11:00:48 -05:00
Geoffrey Challen
a367007689 Add function to track free bytes in the coremap. 2016-03-05 09:55:44 -05:00
Geoffrey Challen
a7526befe4 New comments about thread allocation and deallocation. 2016-03-05 09:35:55 -05:00
Geoffrey Challen
e19a872c2b Static thread names. 2016-03-05 08:46:00 -05:00
Geoffrey Challen
7fa97457a1 Working on ASST2 targets. 2016-03-01 11:44:44 -05:00
Guru Prasad Srinivasa
f141875f20 Updated kmalloc secprintf to satisfy forkbomb 2016-02-29 20:12:01 -05:00
Guru Prasad Srinivasa
f0e1d8722c Updated libtest161 2016-02-29 20:11:50 -05:00
Scott Haseley
0cda18234c Undefine secret testing 2016-02-23 15:43:57 -05:00
Scott Haseley
1b99c0e18f Refactored ksecprintf -> secprintf. Secure code is now all in common libtest161.
This library gets linked in by default in userland, and the common files are
included in the kernel.
2016-02-23 15:31:37 -05:00
Geoffrey Challen
2e74764d49 Be better about creating the compile directory. 2016-02-22 13:33:36 -05:00
Geoffrey Challen
02c12c4256 Change to the synchronization problem drivers. 2016-02-18 16:36:11 -05:00