Changeset d17cf8c in mainline for uspace/app/hbench/fs/dirread.c


Ignore:
Timestamp:
2019-01-21T13:39:37Z (5 years ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
94d52d5
Parents:
e7f9a09
Message:

hbench: remove global state

Move benchmark parameters into a benchmark environment structure that is
passed to each benchmark.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/hbench/fs/dirread.c

    re7f9a09 rd17cf8c  
    4444 * that the corresponding blocks would be cached after first run.
    4545 */
    46 static bool runner(bench_run_t *run, uint64_t size)
     46static bool runner(bench_env_t *env, bench_run_t *run, uint64_t size)
    4747{
    48         const char *path = bench_param_get("dirname", "/");
     48        const char *path = bench_env_param_get(env, "dirname", "/");
    4949
    5050        bench_run_start(run);
Note: See TracChangeset for help on using the changeset viewer.