Changeset 94d52d5 in mainline


Ignore:
Timestamp:
2019-01-21T13:45:29Z (6 years ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
be30e74
Parents:
d17cf8c
Message:

hbench: do not force inlining

These functions are not performance critical.

Location:
uspace/app/hbench
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/hbench/Makefile

    rd17cf8c r94d52d5  
    3838        env.c \
    3939        main.c \
     40        utils.c \
    4041        fs/dirread.c \
    4142        fs/fileread.c \
  • uspace/app/hbench/hbench.h

    rd17cf8c r94d52d5  
    3939#include <adt/hash_table.h>
    4040#include <errno.h>
    41 #include <stdarg.h>
    4241#include <stdbool.h>
    43 #include <stdio.h>
    4442#include <perf.h>
    4543
     
    7977} benchmark_t;
    8078
    81 static inline void bench_run_init(bench_run_t *run, char *error_buffer,
    82     size_t error_buffer_size)
    83 {
    84         stopwatch_init(&run->stopwatch);
    85         run->error_buffer = error_buffer;
    86         run->error_buffer_size = error_buffer_size;
    87 }
     79extern void bench_run_init(bench_run_t *, char *, size_t);
     80extern bool bench_run_fail(bench_run_t *, const char *, ...);
    8881
    8982static inline void bench_run_start(bench_run_t *run)
     
    9588{
    9689        stopwatch_stop(&run->stopwatch);
    97 }
    98 
    99 static inline bool bench_run_fail(bench_run_t *run, const char *fmt, ...)
    100 {
    101         va_list args;
    102         va_start(args, fmt);
    103         vsnprintf(run->error_buffer, run->error_buffer_size, fmt, args);
    104         va_end(args);
    105 
    106         return false;
    10790}
    10891
Note: See TracChangeset for help on using the changeset viewer.