[rtems commit] libtest: Rename ValidCache in FullCache

Sebastian Huber sebh at rtems.org
Thu Nov 19 07:39:21 UTC 2020


Module:    rtems
Branch:    master
Commit:    d2bc5945d35f4eebe1f9202406b147ce97f0efd3
Changeset: http://git.rtems.org/rtems/commit/?id=d2bc5945d35f4eebe1f9202406b147ce97f0efd3

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Nov 11 11:27:50 2020 +0100

libtest: Rename ValidCache in FullCache

This name better reflects the execution envirnoment in which the cache
is fully loaded with valid data unrelated to the body request handler.

---

 cpukit/include/rtems/test.h           |  2 +-
 cpukit/libtest/t-test-rtems-measure.c | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/cpukit/include/rtems/test.h b/cpukit/include/rtems/test.h
index ae81aac..509c7d0 100644
--- a/cpukit/include/rtems/test.h
+++ b/cpukit/include/rtems/test.h
@@ -2557,7 +2557,7 @@ typedef struct {
 
 #define T_MEASURE_RUNTIME_REPORT_SAMPLES 0x2
 
-#define T_MEASURE_RUNTIME_DISABLE_VALID_CACHE 0x10
+#define T_MEASURE_RUNTIME_DISABLE_FULL_CACHE 0x10
 
 #define T_MEASURE_RUNTIME_DISABLE_HOT_CACHE 0x20
 
diff --git a/cpukit/libtest/t-test-rtems-measure.c b/cpukit/libtest/t-test-rtems-measure.c
index ea3f0ab..0607312 100644
--- a/cpukit/libtest/t-test-rtems-measure.c
+++ b/cpukit/libtest/t-test-rtems-measure.c
@@ -478,7 +478,7 @@ get_maximum_retries(const T_measure_runtime_request *req)
 }
 
 static void
-measure_valid_cache(T_measure_runtime_context *ctx,
+measure_full_cache(T_measure_runtime_context *ctx,
     const T_measure_runtime_request *req)
 {
 	size_t sample_count;
@@ -488,7 +488,7 @@ measure_valid_cache(T_measure_runtime_context *ctx,
 	size_t i;
 	T_time begin;
 
-	measure_variant_begin(req->name, "ValidCache");
+	measure_variant_begin(req->name, "FullCache");
 	begin = T_now();
 	sample_count = ctx->sample_count;
 	samples = ctx->samples;
@@ -803,11 +803,11 @@ T_measure_runtime(T_measure_runtime_context *ctx,
     const T_measure_runtime_request *req)
 {
 	/*
-	 * Do ValidCache variant before HotCache to get a good overall cache
+	 * Do FullCache variant before HotCache to get a good overall cache
 	 * state for the HotCache variant.
 	 */
-	if ((req->flags & T_MEASURE_RUNTIME_DISABLE_VALID_CACHE) == 0) {
-		measure_valid_cache(ctx, req);
+	if ((req->flags & T_MEASURE_RUNTIME_DISABLE_FULL_CACHE) == 0) {
+		measure_full_cache(ctx, req);
 	}
 
 	if ((req->flags & T_MEASURE_RUNTIME_DISABLE_HOT_CACHE) == 0) {



More information about the vc mailing list