Daniel Carvalho has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/43590 )

Change subject: base-stats: Fix empty Stats::Info names
......................................................................

base-stats: Fix empty Stats::Info names

Do not allow empty names in sub-groups by keeping
tokens containing empty strings and using the
existing functionality that understands that that
means empty names.

Change-Id: Ica5ca684911374d59a0a809636594d048d755deb
Signed-off-by: Daniel R. Carvalho <[email protected]>
---
M src/base/stats/info.cc
1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/src/base/stats/info.cc b/src/base/stats/info.cc
index 5a0a515..fb32c9e 100644
--- a/src/base/stats/info.cc
+++ b/src/base/stats/info.cc
@@ -84,7 +84,7 @@
         return false;

     std::vector<std::string> vec;
-    tokenize(vec, name, '.');
+    tokenize(vec, name, '.', false);
     std::vector<std::string>::const_iterator item = vec.begin();
     while (item != vec.end()) {
         if (item->empty())

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/43590
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ica5ca684911374d59a0a809636594d048d755deb
Gerrit-Change-Number: 43590
Gerrit-PatchSet: 1
Gerrit-Owner: Daniel Carvalho <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to