[rtems-central commit] validation: Add optional begin/end time point
Sebastian Huber
sebh at rtems.org
Thu Nov 25 08:20:27 UTC 2021
Module: rtems-central
Branch: master
Commit: c0d8670b2e3fdc3e867545049cf4946b9939b3b3
Changeset: http://git.rtems.org/rtems-central/commit/?id=c0d8670b2e3fdc3e867545049cf4946b9939b3b3
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Nov 24 14:11:58 2021 +0100
validation: Add optional begin/end time point
---
rtemsspec/tests/test_validation.py | 10 ++++++++++
rtemsspec/validation.py | 8 ++++++++
2 files changed, 18 insertions(+)
diff --git a/rtemsspec/tests/test_validation.py b/rtemsspec/tests/test_validation.py
index fc1bdc4..b7a37a5 100644
--- a/rtemsspec/tests/test_validation.py
+++ b/rtemsspec/tests/test_validation.py
@@ -1035,6 +1035,16 @@ typedef struct {
* @brief This member provides the measure runtime request.
*/
T_measure_runtime_request request;
+
+ /**
+ * @brief This member provides an optional measurement begin time point.
+ */
+ T_ticks begin;
+
+ /**
+ * @brief This member provides an optional measurement end time point.
+ */
+ T_ticks end;
} Rtm_Context;
static Rtm_Context
diff --git a/rtemsspec/validation.py b/rtemsspec/validation.py
index 77eaccc..14d4f47 100644
--- a/rtemsspec/validation.py
+++ b/rtemsspec/validation.py
@@ -899,6 +899,14 @@ class _RuntimeMeasurementTestItem(_TestItem):
content.add_description_block(
"This member provides the measure runtime request.", None)
content.add("T_measure_runtime_request request;")
+ content.add_description_block(
+ "This member provides an optional measurement begin time point.",
+ None)
+ content.add("T_ticks begin;")
+ content.add_description_block(
+ "This member provides an optional measurement end time point.",
+ None)
+ content.add("T_ticks end;")
def _add_requests(self, content: CContent) -> CContent:
requests = CContent()
More information about the vc
mailing list