misc: dot_writer fixup
authorTiago Muck <tiago.muck@arm.com>
Wed, 31 Oct 2018 21:39:44 +0000 (16:39 -0500)
committerTiago Mück <tiago.muck@arm.com>
Tue, 18 Jun 2019 23:12:06 +0000 (23:12 +0000)
In large configs the tooltip may be greater then the maximum line
size graphviz supports when parsing the dot file (typically 16k).
Adding '/' causes graphviz to break the string in multiple lines
while parsing and works around this limitation.

Change-Id: I16a0030127de4165080de97f5213309eed9fdeca
Signed-off-by: Tiago Mück <tiago.muck@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/19208
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/python/m5/util/dot_writer.py

index 3cec38f8559ad92ad35911701c81467084649869..d1fe946538e5075654878187f97b7f6e316dabca 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2012-2013 ARM Limited
+# Copyright (c) 2012-2013,2019 ARM Limited
 # All rights reserved.
 #
 # The license below extends only to copyright in the software and shall
@@ -154,7 +154,7 @@ def dot_create_cluster(simNode, full_path, label):
             ini_strings.append(str(param) + "&#61;" +
                                simNode._values[param].ini_str())
     # join all the parameters with an HTML newline
-    tooltip = "&#10;".join(ini_strings)
+    tooltip = "&#10;\\".join(ini_strings)
 
     return pydot.Cluster( \
                          full_path, \