Review Board 2.0.15


Config: Use the attribute naming and include ports in JSON

Review Request #1196 - Created May 16, 2012 and submitted - Latest diff uploaded

Information
Andreas Hansson
gem5
default
Reviewers
Default
Config: Use the attribute naming and include ports in JSON

This patch changes the organisation of the JSON output slightly to
make it easier to traverse and use the files. Most importantly, the
hierarchical dictionaries now use keys that correspond to the
attribute names also in the case of VectorParams (used to be
e.f. "cpu0 cpu1"). It also adds the name and the path to each
SimObject directory entry. Before this patch, to get cpu0, you would
have to query dict['system']['cpu0 cpu1'][0] and this could be a dict
with 'cpu0' : { cpu parameters }. Now you use dict['system']['cpu'][0]
and get { cpu parameters } (where one is "name" : "cpu0").

Additionally this patch includes more verbose information about the
ports, specifying their role, and using a list rather than a
concatenated string for the peer. Hopefully this is still valid
JSON. At least Python 2.7 seems to be happy.
Ran for all the systems in the regressions and applied a bunch
of Python scripts to poke around in the output