I had this error too. I had to delete the faulty line with this command: sed --in-place '/walksShortTerminationLevel/d' stats.txt
It should be okay now. On 17/02/2016 12:12, Khaled Attia wrote: > I have used the parsing tool you mentioned but it yields an error. > I'm not a good developer, any suggestions? > > Below is the error > > Error while parsing line: > 'system.switch_cpus0.dtb.walker.walksShortTerminationLevel::Level1 > 4458 ' > > Traceback (most recent call last): > File "./gem5-mcpat", line 230, in <module> > res = main(sys.argv[1:]) > File "./gem5-mcpat", line 226, in main > return func(**args) > File "./gem5-mcpat", line 108, in generate > stats = _build_stats(gem5_config, gem5_stats, add_json, set_variable) > File "./gem5-mcpat", line 69, in _build_stats > gem5_mcpat.gem5_stats_load(stats, gem5_stats) > File "/home/khaled/gem5-mcpat/gem5_mcpat/__init__.py", line 419, in > gem5_stats_load > _process_line(stats, line, lines_iter) > File "/home/khaled/gem5-mcpat/gem5_mcpat/__init__.py", line 409, in > _process_line > _set_value(stats, name.parts+lname, lvalues) > File "/home/khaled/gem5-mcpat/gem5_mcpat/__init__.py", line 393, in > _set_value > stats.add_value(path, value, update=False) > File "/home/khaled/gem5-mcpat/gem5_mcpat/__init__.py", line 208, in > add_value > self._add_value(self._data, [], path, data) > File "/home/khaled/gem5-mcpat/gem5_mcpat/__init__.py", line 179, in > _add_value > data) > File "/home/khaled/gem5-mcpat/gem5_mcpat/__init__.py", line 185, in > _add_value > data) > File "/home/khaled/gem5-mcpat/gem5_mcpat/__init__.py", line 179, in > _add_value > data) > File "/home/khaled/gem5-mcpat/gem5_mcpat/__init__.py", line 179, in > _add_value > data) > File "/home/khaled/gem5-mcpat/gem5_mcpat/__init__.py", line 190, in > _add_value > data) > File "/home/khaled/gem5-mcpat/gem5_mcpat/__init__.py", line 168, in > _add_value > assert key_idx == 0, key_idx > AssertionError: 1 > > -- +-------------------------------------------------------------+ | Pierre-Yves Péneau - PhD student | first.last at lirmm.fr | | LIRMM / CNRS - SYSMIC team | + 33 4 67 41 85 85 | | Building 4 Office H2.2 | http://walafc0.org | +-------------------------------------------------------------+
signature.asc
Description: OpenPGP digital signature
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
