blob: 5eaded784a84eb7002e12e8bc834013890d139b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
This is a benchmark program for the SystemTap Runtime.
It works by instrumenting sys_read() and sys_write(). It calls each a million
times and times that. Then it puts an empty kprobe on one and jprobe on the
other and times that. Subtracting the difference between the two runs gives
the kprobe and jprobe overhead. The process is then repeated for more
complicated probes.
Any system has some background activity going on that will generate sys_read
and sys_write calls. However, unless some major activity is going on, it
should be statistically insignificant.
To Start:
1. Build the test program.
> gcc -O3 -o time time.c
2. Run the benchmarks
> ./run_bench
|