[Gems-users] Count OTHER_GETS


Date: Thu, 01 Sep 2005 10:27:12 +0930
From: May Zhao <zhao0043@xxxxxxxxxxxxxxxxxxxxxxx>
Subject: [Gems-users] Count OTHER_GETS
Hi all,

I am using MOSI_SMP_bcast. I tried to count the times of OTHER_GETS and modify it's execution, so I add a counter in "address network" as follows. But the number is different with that in "ruby0.dump-stats ruby.stats". I got 20, but in ruby.stats it's 199. What's my problem? Where I should put my counter?
Thanks for your help.



// Address Network
in_port(addressNetwork_in, AddressMsg, addressToCache) {
if (addressNetwork_in.isReady()) {
peek(addressNetwork_in, AddressMsg) {
DEBUG_EXPR(in_msg.Type);
if (in_msg.Type == CoherenceRequestType:GETS) {
if (in_msg.Requestor == machineID) {
trigger(Event:Own_GETS, in_msg.Address);
} else {
add_counter(); //////////////////here is my counter
trigger(Event:Other_GETS, in_msg.Address);
}



May Zhao ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ School of Informatics and Engineering Engineering Building Flinders University, Adelaide 5042, S.A. Australia.

Home Phone:    (08) 8357 5983
Office Phone:    (08) 8201 5158
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[← Prev in Thread] Current Thread [Next in Thread→]