Hello,
Thank you for the answer.
For the example that you give me the error that I get is that mmu is undefined
as it is icache. Dcache.
When I do stats-root --stats-root 'system.cpu_cluster[:].cpus' it works but
when I do m5 dumpstats I have the following error
<<Traceback (most recent call last):
File "<string>", line 1, in <module>
File "build/ARM/python/m5/main.py", line 457, in main
exec(filecode, scope)
File "configs/example/arm/starter_fs.py", line 271, in <module>
main()
File "configs/example/arm/starter_fs.py", line 267, in main
run(args)
File "configs/example/arm/starter_fs.py", line 193, in run
event = m5.simulate()
File "build/ARM/python/m5/simulate.py", line 182, in simulate
sim_out = _m5.event.simulate(*args, **kwargs)
File "build/ARM/python/m5/stats/__init__.py", line 391, in dump
_dump_to_visitor(output, roots=all_roots)
File "build/ARM/python/m5/stats/__init__.py", line 342, in _dump_to_visitor
for p in root.path_list():
AttributeError: 'SimObjectVector' object has no attribute 'path_list'
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "build/ARM/python/m5/stats/__init__.py", line 391, in dump
_dump_to_visitor(output, roots=all_roots)
File "build/ARM/python/m5/stats/__init__.py", line 342, in _dump_to_visitor
for p in root.path_list():
AttributeError: 'SimObjectVector' object has no attribute 'path_list'>>
When I use --stats-root 'system.cpu_cluster.cpus.dtlb' it immediately crashes
and I have the following error
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "build/ARM/python/m5/main.py", line 457, in main
exec(filecode, scope)
File "configs/example/arm/starter_fs.py", line 271, in <module>
main()
File "configs/example/arm/starter_fs.py", line 259, in main
dump_stats.extend(root.get_simobj(stat_root_str))
File "build/ARM/python/m5/SimObject.py", line 1749, in get_simobj
return eval(simobj_path, d)
File "<string>", line 1, in <module>
File "build/ARM/python/m5/SimObject.py", line 1065, in __getattr__
for sim_object in self._sim_objects)
File "build/ARM/python/m5/SimObject.py", line 1061, in __init__
self.__dict__['_sim_objects'] = list(sim_objects)
File "build/ARM/python/m5/SimObject.py", line 1065, in <genexpr>
for sim_object in self._sim_objects)
AttributeError: 'SimObjectVector' object has no attribute '_children'
I added the option to the starter_fs.py script from the fs.py script
-----Original Message-----
From: Hoa Nguyen <[email protected]>
Sent: Tuesday, December 1, 2020 9:47 AM
To: gem5 users mailing list <[email protected]>
Cc: POLYCHRONOU Nikolaos <[email protected]>
Subject: Re: [gem5-users] dumping specific stats
Hi,
Can you be a bit more specific about the error that you saw and the version of
gem5 that you're using?
I tried something similar and it worked for me, build/ARM/gem5.opt
configs/example/se.py --stats-root 'system.cpu[:].mmu.itb' --caches -c
tests/test-progs/hello/bin/arm/linux/hello --ruby -n 5
Another thing is that the --stats-root option only works for stats that has
been converted to the new style, and you might want to checkout the develop
branch, where more stats have been migrated to the new style.
Regards,
Hoa Nguyen
On 11/27/20, POLYCHRONOU Nikolaos via gem5-users <[email protected]> wrote:
> Hello.
> I do m5 dumpresetstats every 0.1ms but the generated file exceeds 10Gb.
> I found that patch
> https://gem5-review.googlesource.com/c/public/gem5/+/28628
> which only keeps stats from root simobjects. In my case I need for
> example numCycles, exec_branches, predictedNotTakenIncorrect,
> branchPred.condPredicted, dcache.overall_hits, etc.
> I simulate with an O3 armv8 processor. I can define --stats-root
> 'system.cpu_cluster' but any other option i add is not accepted ie
> --stats-root 'system.cpu_cluster[:].cpus.icache'
> is not accepted. Is there an option to reduce the stats file size and
> only dump specific stas?
> Regards
> Niko
>
>
>
>
>
>
>
> [Leti_logo_mail]
>
>
>
>
>
> Nikolaos Foivos POLYCHRONOU
> PhD Student – Security of Embedded Systems/IoT/IIoT Département DSYS /
> LSOSP
>
> 17, rue des martyrs | 38000 Grenoble
> Fix work . +33 4 38 78 19 58
> Office Bat. 4022 - P. 221
> [email protected]
>
> LETI, technology research institute
> Commissariat à l’énergie atomique et aux énergies alternatives
> www.leti.fr<http://www.leti.fr/> | LETI is a member of the Carnot
> Institutes network
>
>
>
>
>
>
>
> [icone_youtube]<https://www.youtube.com/channel/UC3JgudJblGykrECv6OUhWFg>
> [icone_twitter] <https://twitter.com/cea_leti> [icone_linkedin]
> <https://www.linkedin.com/company/leti>
>
>
>
>
>
>
_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s