Add a regression device.
authorRonald G. Minnich <rminnich@gmail.com>
Tue, 9 Dec 2014 22:20:12 +0000 (22:20 +0000)
committerRonald G. Minnich <rminnich@gmail.com>
Tue, 9 Dec 2014 22:20:12 +0000 (22:20 +0000)
commita42e390d306fc04a9492bb9ae98f141be0e974e0
treec256d18bfe1f5363185a43df92da74cb4dd81e45
parent0d359de78b39e35bb717ac75c2578d082fd86f85
Add a regression device.

The regression device is used for regression tests. It is '#Z'
and provides mondata and monctl.

monctl is currently not useful.

mondata on the write side takes monitor commands.

Currently on the read side it returns nothing, but soon
it will return the output of the monitor for that command.

Sample usage:
/ $ echo ps > '#Z/mondata'
     PID Name                 State      Parent
-------------------------------------------------
       1 busybox              WAITING         0
       2 echo                 RUNNING_S       1

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
kern/drivers/Kconfig
kern/drivers/dev/Kbuild
kern/drivers/dev/Kconfig [new file with mode: 0644]
kern/drivers/dev/regress.c [new file with mode: 0644]
kern/include/console.h
kern/src/monitor.c