1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
Sans instrumentation:
$ ./simple_static
START !
STOP !
res = -1243309312
1000000000 iterations in 2.654223 s (0.002654 µs per iteration)
$ ./simple_dynamic
START !
STOP !
res = -1243309312
1000000000 iterations in 2.650895 s (0.002651 µs per iteration)
avec DynamoRIO:
$ cd /home/trahay/Soft/opt/instrumentation/DynamoRIO-Linux-3.2.0-3
$ bin64/drrun -client samples/bin64/libcountcalls.so 0x1 "" /home/trahay/Documents/recherche/articles/PROPER_2012/programmes/simple/simple_dynamic
Client countcalls is running
START !
STOP !
res = -1243309312
1000000000 iterations in 24.358811 s (0.024359 µs per iteration)
Thread 2792 exited - Instrumentation results:
saw 1000000240 direct calls
saw 43 indirect calls
saw 1000000282 returns
Instrumentation results:
saw 1000000240 direct calls
saw 43 indirect calls
saw 1000000282 returns
|