hbench: remove global state
commitd17cf8c8d11e7ff1d0ec369af3ba9a1d6addc90c
authorVojtech Horky <vojtech.horky@gmail.com>
Mon, 21 Jan 2019 13:39:37 +0000 (21 14:39 +0100)
committerVojtech Horky <vojtech.horky@gmail.com>
Mon, 21 Jan 2019 13:39:37 +0000 (21 14:39 +0100)
tree74082159804a8e6de51a08d1e0a27498c35cd3a5
parente7f9a093b00a54747dbfa7e288153beb04d93009
hbench: remove global state

Move benchmark parameters into a benchmark environment structure that is
passed to each benchmark.
12 files changed:
uspace/app/hbench/Makefile
uspace/app/hbench/doc/doxygroups.h
uspace/app/hbench/env.c [moved from uspace/app/hbench/params.c with 84% similarity]
uspace/app/hbench/fs/dirread.c
uspace/app/hbench/fs/fileread.c
uspace/app/hbench/hbench.h
uspace/app/hbench/ipc/ns_ping.c
uspace/app/hbench/ipc/ping_pong.c
uspace/app/hbench/main.c
uspace/app/hbench/malloc/malloc1.c
uspace/app/hbench/malloc/malloc2.c
uspace/app/hbench/synch/fibril_mutex.c