mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-24 10:38:06 +00:00
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>
22 lines
648 B
Bash
Executable file
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
|