[Fuego] [PATCH 1/1] lmbench2/parser : consider memory latency results in the fuego report

[email protected] Wed, 13 Apr 2022 12:11:18 +0530
Newsgroups dev.linux.lists.fuego
Message-ID <[email protected]>
From: sai ashrith <[email protected]>

Add the lmbench2 memory latency results in the fuego report.

Signed-off-by: sai ashrith <[email protected]>
---
 tests/Benchmark.lmbench2/parser.py | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/tests/Benchmark.lmbench2/parser.py b/tests/Benchmark.lmbench2/parser.py
index 0f3c822..76a4bee 100755
--- a/tests/Benchmark.lmbench2/parser.py
+++ b/tests/Benchmark.lmbench2/parser.py
@@ -33,7 +33,7 @@ for line in lines:
 
                 print "test_res = %s" % (test_res)
 
-		if 0 < t_index < 8:
+		if 0 < t_index < 9:
 			for value in test_res:
 				if len(value) > 0:
                                         if value[-1] == 'K':
@@ -100,6 +100,14 @@ cur_dict["Local_Communication_bandwidths_Bcopy.hand"] = sublist[42]
 cur_dict["Local_Communication_bandwidths_Mem.read"] = sublist[43]
 cur_dict["Local_Communication_bandwidths_Mem.write"] = sublist[44]
 
+#cur_dict["Memory_Latencies.MHz"] = sublist[45]
+cur_dict["Memory_Latencies.L1"] = sublist[46]
+cur_dict["Memory_Latencies.L2"] = sublist[47]
+cur_dict["Memory_Latencies.Main_mem"] = sublist[48]
+#cur_dict["Memory_Latencies.Guesses"] = sublist[49]
+cur_dict["Memory_Latencies.Rand_mem"] = sublist[50]
+
+
 print "cur_dist = %s" % (cur_dict)
 
 sys.exit(plib.process_data(ref_section_pat, cur_dict, 'xl', ' '))
-- 
2.20.1