X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmem%2Fsnoop_filter.cc;h=d53f772ff269353f3dc548dd8ac90dfaeda87871;hb=c720e26c854714d1005588f9dd836425c5668fc8;hp=d799707edbe92b266e7623ce1e5ceec572360c35;hpb=1f1decd765cc184ee84baff709b216a2a387c3ae;p=gem5.git diff --git a/src/mem/snoop_filter.cc b/src/mem/snoop_filter.cc index d799707ed..d53f772ff 100644 --- a/src/mem/snoop_filter.cc +++ b/src/mem/snoop_filter.cc @@ -387,22 +387,24 @@ SnoopFilter::updateResponse(const Packet* cpkt, const ResponsePort& __func__, sf_item.requested, sf_item.holder); } -SnoopFilter::SnoopFilterStats::SnoopFilterStats(Stats::Group *parent): -Stats::Group(parent), -ADD_STAT(totRequests,"Total number of requests made to the snoop filter."), -ADD_STAT(hitSingleRequests, - "Number of requests hitting in the snoop filter with a single "\ - "holder of the requested data."), -ADD_STAT(hitMultiRequests, - "Number of requests hitting in the snoop filter with multiple "\ - "(>1) holders of the requested data."), -ADD_STAT(totSnoops,"Total number of snoops made to the snoop filter."), -ADD_STAT(hitSingleSnoops, - "Number of snoops hitting in the snoop filter with a single "\ - "holder of the requested data."), -ADD_STAT(hitMultiSnoops, - "Number of snoops hitting in the snoop filter with multiple "\ - "(>1) holders of the requested data.") +SnoopFilter::SnoopFilterStats::SnoopFilterStats(Stats::Group *parent) + : Stats::Group(parent), + ADD_STAT(totRequests, UNIT_COUNT, + "Total number of requests made to the snoop filter."), + ADD_STAT(hitSingleRequests, UNIT_COUNT, + "Number of requests hitting in the snoop filter with a single " + "holder of the requested data."), + ADD_STAT(hitMultiRequests, UNIT_COUNT, + "Number of requests hitting in the snoop filter with multiple " + "(>1) holders of the requested data."), + ADD_STAT(totSnoops, UNIT_COUNT, + "Total number of snoops made to the snoop filter."), + ADD_STAT(hitSingleSnoops, UNIT_COUNT, + "Number of snoops hitting in the snoop filter with a single " + "holder of the requested data."), + ADD_STAT(hitMultiSnoops, UNIT_COUNT, + "Number of snoops hitting in the snoop filter with multiple " + "(>1) holders of the requested data.") {} void