Rename event queue functions [2/2]
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 13 Aug 2015 17:40:47 +0000 (13:40 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 28 Sep 2015 19:14:00 +0000 (15:14 -0400)
commitaadc40b79f120fe09452d8cfff46419f8cb241f9
treecdde3b2e87c5f164160e4ae1e41e2949b9554a9c
parentc8ba0c0cd2c7736b5370fc91744e3a5634c87afc
Rename event queue functions [2/2]

The common event queue is one with a mailbox, even if it is bigger.  So
the slim (no mailbox) is the special case.  Likewise, a raw eventq has a
mailbox, but the mailbox has not been initialized yet (used for UCQs and
later for CEQs).  And finally, the vcpd option remains a special case
(it's slim btw).

Nasty Awk for the function prototypes:

{
gsub(/get_event_q_vcpd/, "get_eventq_vcpd")
gsub(/get_event_q/, "get_eventq_slim")
gsub(/get_big_event_q_raw/, "get_eventq_raw")
gsub(/get_big_event_q/, "get_eventq")
gsub(/put_event_q_vcpd/, "put_eventq_vcpd")
gsub(/put_event_q/, "put_eventq_slim")
gsub(/put_big_event_q_raw/, "put_eventq_raw")
gsub(/put_big_event_q/, "put_eventq")
print
}

And spatch for the function calls.  I couldn't get spatch to change the
prototypes.

@@
@@
-get_event_q
+get_eventq_slim
 (...)

@@
@@
-get_big_event_q
+get_eventq
 (...)

@@
@@
-get_big_event_q_raw
+get_eventq_raw
 (...)

@@
@@
-get_event_q_vcpd
+get_eventq_vcpd
 (...)

@@
@@
-put_event_q
+put_eventq_slim
 (...)

@@
@@
-put_big_event_q
+put_eventq
 (...)

@@
@@
-put_big_event_q_raw
+put_eventq_raw
 (...)

@@
@@
-put_event_q_vcpd
+put_eventq_vcpd
 (...)
13 files changed:
tests/alarm.c
tests/evq_block.c
tests/mhello.c
tests/old/msr_nice_while.c
tests/old/syscall.c
user/benchutil/alarm.c
user/benchutil/pvcalarm.c
user/parlib/event.c
user/parlib/include/event.h
user/parlib/signal.c
user/parlib/thread0_sched.c
user/parlib/uthread.c
user/pthread/pthread.c