44#ifndef __CPU_TRAFFIC_GEN_STREAM_GEN_HH__
45#define __CPU_TRAFFIC_GEN_STREAM_GEN_HH__
47#include "params/BaseTrafficGen.hh"
63 "Must provide a vector of StreamIDs");
114 "Invalid sids/ssids configuration");
FixedStreamGen(const BaseTrafficGenParams &p)
uint32_t pickSubstreamID() override
uint32_t pickStreamID() override
RandomStreamGen(const BaseTrafficGenParams &p)
uint32_t pickStreamID() override
uint32_t randomPick(const std::vector< uint32_t > &svec)
Function to pick one of the preset Stream or Substream ID.
uint32_t pickSubstreamID() override
std::vector< uint32_t > substreamIds
virtual uint32_t pickSubstreamID()=0
virtual uint32_t pickStreamID()=0
std::vector< uint32_t > streamIds
Store preset Stream and Substream IDs to use for requests This is the set of available streamIDs the ...
bool ssidValid() const
Returns true if the substreamID generation is valid and hence should be taken into account.
static StreamGen * create(const BaseTrafficGenParams &p)
Factory method for constructing a Stream generator.
StreamGen(const BaseTrafficGenParams &p)
#define fatal_if(cond,...)
Conditional fatal macro that checks the supplied condition and only causes a fatal error if the condi...
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.