Changeset 94d52d5 in mainline
- Timestamp:
- 2019-01-21T13:45:29Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- be30e74
- Parents:
- d17cf8c
- Location:
- uspace/app/hbench
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/hbench/Makefile
rd17cf8c r94d52d5 38 38 env.c \ 39 39 main.c \ 40 utils.c \ 40 41 fs/dirread.c \ 41 42 fs/fileread.c \ -
uspace/app/hbench/hbench.h
rd17cf8c r94d52d5 39 39 #include <adt/hash_table.h> 40 40 #include <errno.h> 41 #include <stdarg.h>42 41 #include <stdbool.h> 43 #include <stdio.h>44 42 #include <perf.h> 45 43 … … 79 77 } benchmark_t; 80 78 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 } 79 extern void bench_run_init(bench_run_t *, char *, size_t); 80 extern bool bench_run_fail(bench_run_t *, const char *, ...); 88 81 89 82 static inline void bench_run_start(bench_run_t *run) … … 95 88 { 96 89 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;107 90 } 108 91
Note:
See TracChangeset
for help on using the changeset viewer.