Hello,

I sent following email 5 months ago, but I did not receive any response.
Could anybody working on coherence protocols help me on this? I appreciate
your help.

Best,
Aziz

On Wed, Aug 10, 2011 at 12:40 AM, Aziz Eker
<[email protected]>wrote:

> Hello,
>
> I just started to use gem5 few days ago. I am trying to obtain statistics
> like "number of times L2 cache blocks changed their states from S to M".
>
> I found that I can get, for each block, the state transitions by checking
> status bits with access functions like isWritable(). What I am not sure is,
> if I add a function in file src/mem/cache/blk.hh to increment a counter on
> each particular transition, how can I insert the counter value in the
> m5out/stats.txt file? I thought of adding a Scalar, but didn't know where.
> Do you think it would work if I add a Scalar statistics in
>  src/mem/cache/base.hh with something like: Stats::Scalar counterWritable ?
>
> I am sure this is so much of a newbie question that you can easily answer.
> But I also want to ask how you can set the coherence protocol for snoopy
> protocols? In old posts I saw that coherence protocols are under
> mem/cache/coherence/ directory, but that doesn't exist any more for gem5.
> Should the protocol be declared in the fs.py file?
>
> I would appreciate your help.
>
> Aziz
>
>
>
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to