If you are using Ruby in gem5, I am pretty sure it tracks the number of
transitions (e.g S->M ) in the stats for each cache controller.

If you are using the Classic memory in gem5, I think if you want those
transitions you would have to add that yourself.

Also, I dont think coherence protocols are "hot pluggable" in classic: that
is there isn't a parameter you can set for MOESI or MESI, directory or
snoopy, etc.  If you are using Ruby, you can set the protocol on the
command line when you are building the binary.

If you want to make a lot of coherence protocols edits in the classic
system, I think someone else will have to comment who may know a best path
to do it.

On Tue, Jan 10, 2012 at 3:39 PM, Aziz Eker <[email protected]>wrote:

> 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
>



-- 
- Korey
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to