Go to the documentation of this file.
40 #ifndef __MEM_QOS_POLICY_PF_HH__
41 #define __MEM_QOS_POLICY_PF_HH__
44 #include "params/QoSPropFairPolicy.hh"
61 using Params = QoSPropFairPolicyParams;
100 template <
typename Requestor>
101 void initRequestor(
const Requestor requestor,
const double score);
104 updateScore(
const double old_score,
const uint64_t served_bytes)
const;
117 #endif // __MEM_QOS_POLICY_PF_HH__
void initRequestor(const Requestor requestor, const double score)
std::vector< RequestorHistory > history
virtual ~PropFairPolicy()
const double weight
PF Policy weight.
double updateScore(const double old_score, const uint64_t served_bytes) const
Proportional Fair QoS Policy Providing a configurable fair scheduling policy based on utilization; ut...
PropFairPolicy(const Params *)
virtual uint8_t schedule(const RequestorID id, const uint64_t pkt_size) override
Schedules a packet based on proportional fair configuration.
void initRequestorObj(const SimObject *requestor, const double score)
Initialize the requestor's score by providing the requestor's SimObject pointer and initial score val...
const SimObjectParams * _params
Cached copy of the object parameters.
QoSPropFairPolicyParams Params
void initRequestorName(const std::string requestor, const double score)
Initialize the requestor's score by providing the requestor's name and initial score value.
const Params * params() const
Abstract superclass for simulation objects.
Generated on Wed Sep 30 2020 14:02:13 for gem5 by doxygen 1.8.17