Commit 47436330 authored by Florian Fischer's avatar Florian Fischer
Browse files

fix dataref generation

parent c448cd72
Pipeline #66526 passed with stage
in 1 minute and 29 seconds
BENCH_MAIN := bench.c
SYSCALLS := blocking io-uring io-uring-sqpoll io-uring-no-syscall epoll paio-sig paio-thrd
SYSCALLS := blocking io_uring io_uring_sqpoll io_uring_no_syscall epoll paio_sig paio_thrd
OBJ := $(addprefix bench-,$(SYSCALLS))
......@@ -13,11 +13,11 @@ CFLAGS := -Werror -Wall -g -O3
eval: all
@for syscall in $(SYSCALLS); do echo -n "$$syscall "; ./bench-$$syscall; done
stats:
stats: all
@for syscall in $(SYSCALLS); do echo "$$syscall:"; ./bench-$$syscall --stats; done
dataref:
@$(MAKE) eval-stats | tools/yaml2dataref.sh
@$(MAKE) stats | tools/yaml2dataref.sh
docker-eval:
./docker.sh make eval
......
......@@ -13,6 +13,7 @@ awk -F"$fs" '{
for (i in vname) {if (i > indent) {delete vname[i]}}
if (length($3) > 0) {
vn=""; for (i=0; i<indent; i++) {vn=(vn)(vname[i])("/")}
printf("\\setdref{%s%s}{%s}\n", vn, $2, $3);
printf("\\drefset{%s%s}{%s}\n", vn, $2, $3);
}
}'
}' |
sed -e "s/_/-/g"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment