From b510f95f43fd0714b87899ee553ae9301b773dd2 Mon Sep 17 00:00:00 2001 From: Tiago Muck Date: Wed, 31 Oct 2018 16:39:44 -0500 Subject: [PATCH] misc: dot_writer fixup MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/19208 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- src/python/m5/util/dot_writer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python/m5/util/dot_writer.py b/src/python/m5/util/dot_writer.py index 3cec38f85..d1fe94653 100644 --- a/src/python/m5/util/dot_writer.py +++ b/src/python/m5/util/dot_writer.py @@ -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) + "=" + simNode._values[param].ini_str()) # join all the parameters with an HTML newline - tooltip = " ".join(ini_strings) + tooltip = " \\".join(ini_strings) return pydot.Cluster( \ full_path, \ -- 2.30.2