40#include "config/have_protobuf.hh"
41#include "debug/TrafficGen.hh"
42#include "params/PyTrafficGen.hh"
45namespace py = pybind11;
62std::shared_ptr<BaseGen>
66 return std::shared_ptr<BaseGen>();
70 return std::shared_ptr<BaseGen>();
75 std::shared_ptr<BaseGen> gen =
79 }
catch (py::cast_error&) {
80 fatal(
"Meta generator didn't return a valid trace generator\n");
87 using namespace pybind11::literals;
89 py::module_
m = m_native.def_submodule(
"trace");
91 py::class_<BaseGen, std::shared_ptr<BaseGen>> c_base(
m,
"BaseGen");
The traffic generator is a module that generates stimuli for the memory system, based on a collection...
std::shared_ptr< BaseGen > nextGenerator() override
PyTrafficGen(const PyTrafficGenParams &p)
pybind11::iterator metaGenerator
The traffic generator is a module that generates stimuli for the memory system, based on a collection...
#define fatal(...)
This implements a cprintf based fatal() function.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
void pybind_init_tracers(py::module_ &m_native)
static EmbeddedPyBind _py_tracers("trace", pybind_init_tracers)