make ktapio default output to stderr instead of stdout

This commit fix the problem when fork workload like below:

./ktap scripts/syscalls.kp -c ls > /dev/null

we want above command redirect ls output into /dev/null, not
ktap output to /dev/null.

To make ktap output isolate with workload completly, we still
need -o option in ktap command, implement it in future.

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>
simply workload exec code

Now workload process calling pause() to wait ktapvm send signal.

we need to recheck this design in future, possibly this design
is not quite safely.

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>
Rewrite ktap option parse code

kill old option parsing code doesn't fit ktap specific
option handling, for example workload cmd option, so use
a hand-write option parser instead.

Now invoke workload should be like:

ktap scripts/syscalls.kp -- ls -a

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>
add doc/references.txt for Linux tracing related links

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>
add load target in Makefile: make load

"make load" will rmmod and insmod ktapvm

also update README.md

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>
update ktap usage ouput

add file as arguments in ktap usage help output

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>
support -o option: redirect ktap output into file

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>
fix oops when run test/looping

change Instruction as int, not unsigned int.

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>
update test/bench/test.sh

Since ktap already support command tracing, so make test.sh
based on this, then without let ktap run in background anymore.

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>
add more testcase into test/runtest.sh

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>
only allow one ktap thread allow to run

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>
add two ktap thread running check testcase

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>
lock table in table_histogram

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>
add scripts/sctop.kp

Inspired by perf/scripts/python/sctop.py

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>
fix compile Error on Ubuntu with Linux-3.11.0-rc6+

"open" call missed third argument when O_CREAT is given.
(according man 2 open)

Reported-and-fix-by: gokulnatha
(https://github.com/gokulnatha)

Signed-off-by: gokulnatha
Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>
add dtrace.org/blogs into references.txt

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>
rename Instruction to ktap_instruction

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>
rename ktap_Number to ktap_number

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>
rename LexState to ktap_lexstate

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>
rename FuncState to ktap_funcstate

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>