criu/flog/tests/test00
prakritigoyal19 532944695f Add flog to CRIU
Change made through this commit:
- Include copy of flog as a seperate tree.
- Modify the makefile to add and compile flog code.

Signed-off-by: prakritigoyal19 <prakritigoyal19@gmail.com>
2020-11-08 01:55:25 -08:00

22 lines
648 B
Bash
Executable file

#!/bin/sh
set -e -x
echo Map a log file into memory
time ./flog run -i 1000000 -o /tmp/flog.raw.map
echo Write into a log file
time ./flog run -i 1000000 > /tmp/flog.raw
echo Use fprintf
time ./flog run -m fprintf -i 1000000 -o /tmp/flog.fprintf.txt
echo Use dprintf
time ./flog run -m dprintf -i 1000000 -o /tmp/flog.dprintf.txt
echo Use sprintf
time ./flog run -m sprintf -i 1000000
time ./flog run -d < /tmp/flog.raw > /tmp/flog.raw.txt
cmp /tmp/flog.raw.txt /tmp/flog.fprintf.txt
time ./flog run -d < /tmp/flog.raw.map > /tmp/flog.raw.map.txt
cmp /tmp/flog.raw.map.txt /tmp/flog.fprintf.txt
cmp /tmp/flog.dprintf.txt /tmp/flog.fprintf.txt