stats: Fix swig wrapping for Tick in stats
Tick was not correctly wrapped for the stats system, and therefore it was not possible to configure the stats dumping from the python scripts without defining Ticks as long long. This patch fixes the wrapping of Tick by copying the typemap of uint64_t to Tick.
This commit is contained in:
parent
9f15510c2c
commit
8a767885d6
3 changed files with 4 additions and 3 deletions
|
@ -123,6 +123,7 @@ reset()
|
||||||
%ignore Stats::Info::flags;
|
%ignore Stats::Info::flags;
|
||||||
|
|
||||||
%import "base/stats/types.hh"
|
%import "base/stats/types.hh"
|
||||||
|
%import "base/types.hh"
|
||||||
|
|
||||||
%include "base/stats/info.hh"
|
%include "base/stats/info.hh"
|
||||||
%include "base/stats/output.hh"
|
%include "base/stats/output.hh"
|
||||||
|
@ -152,7 +153,7 @@ Output *initText(const std::string &filename, bool desc);
|
||||||
void schedStatEvent(bool dump, bool reset,
|
void schedStatEvent(bool dump, bool reset,
|
||||||
Tick when = curTick(), Tick repeat = 0);
|
Tick when = curTick(), Tick repeat = 0);
|
||||||
|
|
||||||
void periodicStatDump(long long period = 0);
|
void periodicStatDump(Tick period = 0);
|
||||||
|
|
||||||
void updateEvents();
|
void updateEvents();
|
||||||
|
|
||||||
|
|
|
@ -253,7 +253,7 @@ schedStatEvent(bool dump, bool reset, Tick when, Tick repeat)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
periodicStatDump(uint64_t period)
|
periodicStatDump(Tick period)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* If the period is set to 0, then we do not want to dump periodically,
|
* If the period is set to 0, then we do not want to dump periodically,
|
||||||
|
|
|
@ -74,7 +74,7 @@ void schedStatEvent(bool dump, bool reset, Tick when = curTick(),
|
||||||
* temporal trends in the data.
|
* temporal trends in the data.
|
||||||
* @param period The period at which the dumping should occur.
|
* @param period The period at which the dumping should occur.
|
||||||
*/
|
*/
|
||||||
void periodicStatDump(uint64_t period = 0);
|
void periodicStatDump(Tick period = 0);
|
||||||
} // namespace Stats
|
} // namespace Stats
|
||||||
|
|
||||||
#endif // __SIM_STAT_CONTROL_HH__
|
#endif // __SIM_STAT_CONTROL_HH__
|
||||||
|
|
Loading…
Reference in a new issue