aboutsummaryrefslogtreecommitdiffstats
path: root/sysgen/parser.go
Commit message (Collapse)AuthorAgeFilesLines
* overhaul syscall description generation processDmitry Vyukov2016-08-261-101/+0
| | | | | | | | | | | | | | | | | | | | | | This splits generation process into two phases: 1. Extract values of constants from linux kernel sources. 2. Generate Go code. Constant values are checked in. The advantage is that the second phase is now completely independent from linux source files, kernel version, presence of headers for particular drivers, etc. This allows to change what Go code we generate any time without access to all kernel headers (which in future won't be limited to only upstream headers). Constant extraction process does require proper kernel sources, but this can be done only once by the person who added the driver and has access to the required sources. Then the constant values are checked in for others to use. Consant extraction process is per-file/per-arch. That is, if I am adding a driver that is not present upstream and that works only on a single arch, I will check in constants only for that driver and for that arch.
* sys: change int range to use ':' instead of '~'Dmitry Vyukov2016-08-131-1/+1
| | | | | We can't use '-' because '-' can denote negative numbers. Colon is used is several range notations (e.g. Go, Mathlab, Excel).
* sys/sysgen/prog: support ranged intBaozeng Ding2016-08-101-2/+3
| | | | | | This commit supports inclusive ranged int, like foo int32[-10~10], which will generate random integer between -10 and 10. In future we will support more than one range, like int32[0, -5~10, 50, 100~200]
* add tty-related ioctl'sDmitry Vyukov2015-11-161-14/+22
|
* initial commitDmitry Vyukov2015-10-121-0/+92