base.cc (13358:5e1605b47a21) base.cc (13367:dc06baae4275)
1/*
2 * Copyright (c) 2012-2013, 2018 ARM Limited
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 1649 unchanged lines hidden (view full) ---

1658// to change the subset of commands that are considered "demand" vs
1659// "non-demand"
1660#define SUM_DEMAND(s) \
1661 (s[MemCmd::ReadReq] + s[MemCmd::WriteReq] + s[MemCmd::WriteLineReq] + \
1662 s[MemCmd::ReadExReq] + s[MemCmd::ReadCleanReq] + s[MemCmd::ReadSharedReq])
1663
1664// should writebacks be included here? prior code was inconsistent...
1665#define SUM_NON_DEMAND(s) \
1/*
2 * Copyright (c) 2012-2013, 2018 ARM Limited
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 1649 unchanged lines hidden (view full) ---

1658// to change the subset of commands that are considered "demand" vs
1659// "non-demand"
1660#define SUM_DEMAND(s) \
1661 (s[MemCmd::ReadReq] + s[MemCmd::WriteReq] + s[MemCmd::WriteLineReq] + \
1662 s[MemCmd::ReadExReq] + s[MemCmd::ReadCleanReq] + s[MemCmd::ReadSharedReq])
1663
1664// should writebacks be included here? prior code was inconsistent...
1665#define SUM_NON_DEMAND(s) \
1666 (s[MemCmd::SoftPFReq] + s[MemCmd::HardPFReq])
1666 (s[MemCmd::SoftPFReq] + s[MemCmd::HardPFReq] + s[MemCmd::SoftPFExReq])
1667
1668 demandHits
1669 .name(name() + ".demand_hits")
1670 .desc("number of demand (read+write) hits")
1671 .flags(total | nozero | nonan)
1672 ;
1673 demandHits = SUM_DEMAND(hits);
1674 for (int i = 0; i < system->maxMasters(); i++) {

--- 769 unchanged lines hidden ---
1667
1668 demandHits
1669 .name(name() + ".demand_hits")
1670 .desc("number of demand (read+write) hits")
1671 .flags(total | nozero | nonan)
1672 ;
1673 demandHits = SUM_DEMAND(hits);
1674 for (int i = 0; i < system->maxMasters(); i++) {

--- 769 unchanged lines hidden ---