[gem5-users] Re: Collecting Two Sets of Data Within Same Simulation

2021-08-13 Thread Jason Lowe-Power via gem5-users
Hi Sam,

This is a use case that I don't think we've thought about in the mainline
gem5. I think the easiest solution would be to add some custom Statistics
objects to track the info from the function you're interested in.

Cheers,
Jason

On Wed, Aug 11, 2021 at 10:59 AM Thomas, Samuel via gem5-users <
gem5-users@gem5.org> wrote:

> Hi all,
>
> I'm currently running a full system simulation, and would like to collect
> statistics from one particular function as well as overall statistics from
> the simulation. Unfortunately, the function gets called many times, so
> simply dumping stats at the beginning and end of the function makes the
> resulting stats file too large to do any analysis on.
>
> Is there an easy way to get around this issue?
>
> Thank you for your help!
>
> Best,
> Sam
> ___
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] util/tlm issue, need help

2021-08-13 Thread wu xuyong via gem5-users
Dear Gem5 Users,     I‘ve got stucked when try to follow the tlm tutorial in gem5/util/tlm/README.(similar issues for versioin of GEM5 21.1.0.0 & 21.0.1.0)Following the section III of the README file, there is no issue on the first two line and end with normal gem5.opt output:> cd ../..> scons build/ARM/gem5.opt While the problem comes during the next command> scons --with-cxx-config --without-python --without-tcmalloc >   build/ARM/libgem5_opt.so There comes several error report as below, the log file is also available as attachment.build/ARM/cxx_config/Gem5ToTlmBridge256.cc:144:24: error: cannot convert 'sc_gem5::Gem5ToTlmBridge<256>*' to 'gem5::SimObject*' in return  144 | return this->create();  |    ^~  |    |  |    sc_gem5::Gem5ToTlmBridge<256>* I tried hard walking arround and have no ideal on how to get throught. I guess it may be a common issue for those who’s trying to get through this tutorial. Any advise on using the tlm utility of Gem5 will be great helpful.By the way, it will make my life better if anyone could offer me any idea on getting rid of the huge amount of namespace warning in building the new version 21.1.0.0. Thank in advance___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: simulation error in gem5 v21.1

2021-08-13 Thread Gabriel Busnot via gem5-users
Hi Boya,

This is indeed an argparse glitch. I am not aware of a way to specify an option 
so that the next CL argument must be considered as an argument for that option. 
https://stackoverflow.com/a/16175115/11350445 confirms this behavior and 
recommends using an '=' sign to specify an option's argument in that case. 
Prepending a space to the argument as you did also is a valid workaround.

I believe this behavior is not directly specified by argparse as "--an-option 
'--foo bar'" will fail if --foo is a valid option and succeed if not while 
"--an-option '--foo' will always fail, whether foo is a valid argument or not 
(according to my very rapid testing). This might be a bug so if you feel like 
doing a little more testing, you could fill an issue on the python bug tracker.

Best,
Gabriel
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s


[gem5-users] Re: simulation error in gem5 v21.1

2021-08-13 Thread Boya Chen via gem5-users
found the fail was caused by the -I./lib, if put -I directly after quote, then 
the se will fail.
if add one space between quote and -I,  the simulator can run.
while previous versions don't have this problem.
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s