http://gem5.org/Source_Code
On Sun, Jan 15, 2012 at 8:45 AM, Mahmood Naderan <mahmood...@gmail.com>wrote: > Thanks a lot. It was very useful. > > Isn't there any document which describe a tree structure of gem5 > source code. For example, if someone want to elaborate stats > structure, a quick find shows > > src/base/stats > src/base/statistics.cc > src/base/statistics.hh > src/sim/stats.hh > src/sim/stat_control.hh > src/sim/stat_control.cc > src/cpu/static_inst.hh > src/cpu/static_inst_fwd.hh > src/cpu/static_inst.cc > src/unittest/stattest.i > src/unittest/stattest.cc > src/unittest/stattestmain.py > src/python/swig/stats.i > src/python/m5/stats > > > also there are some other stat related files for architectures > (x86,arm,...). > what is the difference between sim/ and base/ directories.... and so on. > > > On 1/15/12, nathan binkert <n...@binkert.org> wrote: > >> If all stats are in one column then a block selection in text editors > are > >> very useful. > >> This can be done with setw() and setfill() properly. > >> I looked at src/python/swig/stats.i but don't know where to put them. > >> > >> Can someone help to find them in source code? > > > > It's all in src/base/stats/text.cc. I'm pretty sure that every stat > > is displayed by the function: > > void ScalarPrint::operator()(ostream &stream) const; > > > > The problem is probably that the field is set at %-40s and several of > > your stats have names longer than that. > > > > Nate > > _______________________________________________ > > gem5-users mailing list > > gem5-users@gem5.org > > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > > > > > -- > -- > // Naderan *Mahmood; > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users