On Mon, Aug 2, 2010 at 6:53 PM, Hz Xes <[email protected]> wrote:

>
> Hi
>
> I have a question about what's final result collected in output statistics
> file?
>
> In ptlsim.cpp, there are four statistics sets:
>
> PTLsimStats *stats;
> PTLsimStats user_stats;
> PTLsimStats kernel_stats;
> PTLsimStats global_stats;
>
> Although user_stats and kernel_stats are quite straightforward, Could you
> let me know what's the meaning of these four different statistics set?
> (what's the difference between all of them? ) And Which one is used to be
> dumped into output statistics file?
>
>
This is because Marss collect separate user and kernel level statistics in a
single run. So the stats file contains three basic snapshots, user stats,
kernel stats and total stats (aka global stats). If you want to get the user
or kernel stats use '-snapshot user/kernel' option in ptlstats.

In terms of coding, 'stats' pointer points to either 'user_stats' or
'kernel_stats' based on current CPU status. So you dont have to check all
the time which stats to update. On the memory side, we have some macros that
helps to update the correct stats based on memory request is generated in
user or kernel mode. At the end both user and kernel stats are added to
generate the combined stats and stored in 'final' snapshot (which is the
default snapshot for ptlstats).

- Avadh


> Thanks,
> HZ
>
>
>
>
> _______________________________________________
> http://www.marss86.org
> Marss86-Devel mailing list
> [email protected]
> https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel
>
>
_______________________________________________
http://www.marss86.org
Marss86-Devel mailing list
[email protected]
https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel

Reply via email to