diff mbox

[COMMITTED] benchtests: Use TEST_NAME instead of hardcoding memcpy

Message ID 1502133385-30464-1-git-send-email-siddhesh@sourceware.org
State New
Headers show

Commit Message

Siddhesh Poyarekar Aug. 7, 2017, 7:16 p.m. UTC
The hardcoded 'memcpy' name turns up in other derived tests like
mempcpy.

       * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
       hardcoding memcpy.
       * benchtests/bench-memcpy-large.c (test_name): Likewise.
       * benchtests/bench-memcpy-random.c (test_name): Likewise.
---
 ChangeLog                        | 7 +++++++
 benchtests/bench-memcpy-large.c  | 2 +-
 benchtests/bench-memcpy-random.c | 2 +-
 benchtests/bench-memcpy.c        | 2 +-
 4 files changed, 10 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/ChangeLog b/ChangeLog
index 908da88..887fc71 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@ 
+2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
+
+	* benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
+	hardcoding memcpy.
+	* benchtests/bench-memcpy-large.c (test_name): Likewise.
+	* benchtests/bench-memcpy-random.c (test_name): Likewise.
+
 2017-08-07  Andreas Schwab  <schwab@suse.de>
 
 	* elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
diff --git a/benchtests/bench-memcpy-large.c b/benchtests/bench-memcpy-large.c
index ae5e819..965edf5 100644
--- a/benchtests/bench-memcpy-large.c
+++ b/benchtests/bench-memcpy-large.c
@@ -118,7 +118,7 @@  test_main (void)
   json_attr_string (&json_ctx, "timing_type", TIMING_TYPE);
 
   json_attr_object_begin (&json_ctx, "functions");
-  json_attr_object_begin (&json_ctx, "memcpy");
+  json_attr_object_begin (&json_ctx, TEST_NAME);
   json_attr_string (&json_ctx, "bench-variant", "large");
 
   json_array_begin (&json_ctx, "ifuncs");
diff --git a/benchtests/bench-memcpy-random.c b/benchtests/bench-memcpy-random.c
index 9c7cc2b..eaffd3c 100644
--- a/benchtests/bench-memcpy-random.c
+++ b/benchtests/bench-memcpy-random.c
@@ -156,7 +156,7 @@  test_main (void)
   json_attr_string (&json_ctx, "timing_type", TIMING_TYPE);
 
   json_attr_object_begin (&json_ctx, "functions");
-  json_attr_object_begin (&json_ctx, "memcpy");
+  json_attr_object_begin (&json_ctx, TEST_NAME);
   json_attr_string (&json_ctx, "bench-variant", "random");
 
   json_array_begin (&json_ctx, "ifuncs");
diff --git a/benchtests/bench-memcpy.c b/benchtests/bench-memcpy.c
index 92ecc64..d80c644 100644
--- a/benchtests/bench-memcpy.c
+++ b/benchtests/bench-memcpy.c
@@ -136,7 +136,7 @@  test_main (void)
   json_attr_string (&json_ctx, "timing_type", TIMING_TYPE);
 
   json_attr_object_begin (&json_ctx, "functions");
-  json_attr_object_begin (&json_ctx, "memcpy");
+  json_attr_object_begin (&json_ctx, TEST_NAME);
   json_attr_string (&json_ctx, "bench-variant", "default");
 
   json_array_begin (&json_ctx, "ifuncs");