diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-09-30 10:57:24 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-09-30 12:43:02 +0200 |
commit | c4a758c9894e710a2dfb02a972eea6b00c3589bd (patch) | |
tree | 5ffbfe89452e5de0bc93e0ce5c1c17474aff6521 /spec/rtems/timer/val/mem-after.yml | |
parent | spec: Move GRLIB group (diff) | |
download | rtems-central-c4a758c9894e710a2dfb02a972eea6b00c3589bd.tar.bz2 |
generate_membench.py: Add benchmarks
Diffstat (limited to 'spec/rtems/timer/val/mem-after.yml')
-rw-r--r-- | spec/rtems/timer/val/mem-after.yml | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/spec/rtems/timer/val/mem-after.yml b/spec/rtems/timer/val/mem-after.yml new file mode 100644 index 00000000..6c45393c --- /dev/null +++ b/spec/rtems/timer/val/mem-after.yml @@ -0,0 +1,55 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +copyrights: +- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de) +enabled-by: true +links: +- role: validation + uid: ../req/mem-after +test-brief: | + This static memory usage benchmark program facilitates a basic application + configuration with calls to ${../if/create:/name} and + ${../if/fire-after:/name}. +test-code: | + static void Init( rtems_task_argument arg ) + { + (void) arg; + + (void) rtems_timer_create( 0, NULL ); + (void) rtems_timer_fire_after( 0, 0, NULL, NULL ); + } + + #define TASK_ATTRIBUTES RTEMS_DEFAULT_ATTRIBUTES + + #define TASK_STORAGE_SIZE \ + RTEMS_TASK_STORAGE_SIZE( \ + RTEMS_MINIMUM_STACK_SIZE, \ + TASK_ATTRIBUTES ) + + #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER + + #define CONFIGURE_MAXIMUM_FILE_DESCRIPTORS 0 + + #define CONFIGURE_DISABLE_NEWLIB_REENTRANCY + + #define CONFIGURE_APPLICATION_DISABLE_FILESYSTEM + + #define CONFIGURE_MAXIMUM_TASKS 1 + + #define CONFIGURE_RTEMS_INIT_TASKS_TABLE + + #define CONFIGURE_INIT_TASK_ATTRIBUTES TASK_ATTRIBUTES + + #define CONFIGURE_INIT_TASK_INITIAL_MODES RTEMS_DEFAULT_MODES + + #define CONFIGURE_INIT_TASK_CONSTRUCT_STORAGE_SIZE TASK_STORAGE_SIZE + + #define CONFIGURE_INIT + + #include <rtems/confdefs.h> +test-description: null +test-includes: +- rtems.h +test-local-includes: [] +test-suite-name: MemAfter +test-target: testsuites/membench/mem-timer-after.c +type: test-suite |