In Profiler.C, you can also see function
profileSharing(const Address&
addr, AccessType type, NodeID requestor, const Set& sharers, const Set&
owner)
It is used to collect the sharing
information. Such a function is referenced in MOESI_SMP_directory-dir.sm by
action profile_Sharing. The directory collect the sharing
information before it pops the GETS/GETX requests. You can follow it to add the
profile_sharing action within your protocol. However, whether the
CMP protocol can use the same way to collect the information is not clear. May
be someone else can answer it.
shuchang