runners: bench: Added BENCH_SIMTIME/SIMRESET/PAUSE/RESUME/etc
- BENCH_SIMTIME() => lfs3_kiwibd_simtime() - BENCH_SIMRESET() => lfs3_kiwibd_simreset() - BENCH_SIMPAUSE() => lfs3_kiwibd_simpause() - BENCH_SIMRESUME() => lfs3_kiwibd_simresume() - BENCH_RESET() => lfs3_kiwibd_simreset() + BENCH_STACK/HEAP_RESET() - BENCH_PAUSE() => lfs3_kiwibd_simpause() + BENCH_STACK/HEAP_PAUSE() - BENCH_RESUME() => lfs3_kiwibd_simresume() + BENCH_STACK/HEAP_RESUME() This does two things: 1. Adds pause/resume counters to bd counters to make it easier to exclude operations from the current bench (potentially useful for seq+disk usage). 2. Exposes bd simtime operations as BENCH_* macros, to make it a bit easier to interact with simtime without tying all the benches to kiwibd. (Not that we'll ever probably not use kiwibd, but still). Also adopted 32-bit counters for stack/heap pause state instead of a 32-bit stack. Not that either are at a risk of overflowing, but better safe than sorry.
This commit is contained in:
@@ -78,6 +78,19 @@ void test_trace(const char *fmt, ...);
|
||||
#undef _STDIO_H
|
||||
|
||||
|
||||
// some common types
|
||||
#ifndef TEST_KIWIBD
|
||||
typedef lfs3_emubd_ns_t test_ns_t;
|
||||
typedef lfs3_emubd_sns_t test_sns_t;
|
||||
typedef lfs3_emubd_powercycles_t test_powercycles_t;
|
||||
typedef lfs3_emubd_spowercycles_t test_spowercycles_t;
|
||||
#else
|
||||
typedef lfs3_kiwibd_ns_t test_ns_t;
|
||||
typedef lfs3_kiwibd_sns_t test_sns_t;
|
||||
typedef void test_powercycles_t;
|
||||
typedef void test_spowercycles_t;
|
||||
#endif
|
||||
|
||||
// generated test configurations
|
||||
struct lfs3_cfg;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user