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

    re7f9a09 rd17cf8c  
    4040static ipc_test_t *test = NULL;
    4141
    42 static bool setup(bench_run_t *run)
     42static bool setup(bench_env_t *env, bench_run_t *run)
    4343{
    4444        errno_t rc = ipc_test_create(&test);
     
    5252}
    5353
    54 static bool teardown(bench_run_t *run)
     54static bool teardown(bench_env_t *env, bench_run_t *run)
    5555{
    5656        ipc_test_destroy(test);
     
    5858}
    5959
    60 static bool runner(bench_run_t *run, uint64_t niter)
     60static bool runner(bench_env_t *env, bench_run_t *run, uint64_t niter)
    6161{
    6262        bench_run_start(run);
Note: See TracChangeset for help on using the changeset viewer.