Changeset d17cf8c in mainline for uspace/app/hbench/fs/fileread.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/fileread.c

    re7f9a09 rd17cf8c  
    4545 * corresponding blocks would be cached after first run.
    4646 */
    47 static bool runner(bench_run_t *run, uint64_t size)
     47static bool runner(bench_env_t *env, bench_run_t *run, uint64_t size)
    4848{
    49         const char *path = bench_param_get("filename", "/data/web/helenos.png");
     49        const char *path = bench_env_param_get(env, "filename", "/data/web/helenos.png");
    5050
    5151        char *buf = malloc(BUFFER_SIZE);
Note: See TracChangeset for help on using the changeset viewer.