Changeset d5caf79 in mainline for uspace/app/perf/ipc/ns_ping.c


Ignore:
Timestamp:
2018-12-28T13:56:05Z (6 years ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
980611d5
Parents:
c7de81b
git-author:
Vojtech Horky <vojtech.horky@…> (2018-12-28 13:54:23)
git-committer:
Vojtech Horky <vojtech.horky@…> (2018-12-28 13:56:05)
Message:

perf: hide more benchmark implementation

It is much easier to maintain the benchmark if all the definitions etc.
are in a single file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/perf/ipc/ns_ping.c

    rc7de81b rd5caf79  
    3232#include <errno.h>
    3333#include <str_error.h>
     34#include "../benchlist.h"
    3435#include "../perf.h"
    3536
    36 bool bench_ns_ping(stopwatch_t *stopwatch, uint64_t niter,
     37static bool runner(stopwatch_t *stopwatch, uint64_t niter,
    3738    char *error, size_t error_size)
    3839{
     
    5455        return true;
    5556}
     57
     58benchmark_t bench_ns_ping = {
     59        .name = "ns_ping",
     60        .desc = "Name service IPC ping-pong benchmark",
     61        .entry = &runner,
     62        .setup = NULL,
     63        .teardown = NULL
     64};
Note: See TracChangeset for help on using the changeset viewer.