+ RubySystem::getBlockSizeBytes()*stride;
}
-integer_t
+Index
Address::memoryModuleIndex() const
{
- integer_t index =
+ Index index =
bitSelect(RubySystem::getBlockSizeBits() +
RubySystem::getMemorySizeBits(), ADDRESS_WIDTH);
assert (index >= 0);
typedef long long int64;
-typedef long long integer_t;
-
typedef int64 Time;
typedef uint64 physical_address_t;
{
// FIXME - avoid the repeated code
- vector<integer_t> perProcCycleCount(m_num_of_sequencers);
+ vector<int64_t> perProcCycleCount(m_num_of_sequencers);
for (int i = 0; i < m_num_of_sequencers; i++) {
perProcCycleCount[i] =
}
void
-Profiler::setPeriodicStatsInterval(integer_t period)
+Profiler::setPeriodicStatsInterval(int64_t period)
{
cout << "Recording periodic statistics every " << m_stats_period
<< " Ruby cycles" << endl;
out << endl;
}
- vector<integer_t> perProcCycleCount(m_num_of_sequencers);
+ vector<int64_t> perProcCycleCount(m_num_of_sequencers);
for (int i = 0; i < m_num_of_sequencers; i++) {
perProcCycleCount[i] =
out << "Resource Usage" << endl;
out << "--------------" << endl;
- integer_t pagesize = getpagesize(); // page size in bytes
+ int64_t pagesize = getpagesize(); // page size in bytes
out << "page_size: " << pagesize << endl;
rusage usage;
void wakeup();
void setPeriodicStatsFile(const std::string& filename);
- void setPeriodicStatsInterval(integer_t period);
+ void setPeriodicStatsInterval(int64_t period);
void printStats(std::ostream& out, bool short_stats=false);
void printShortStats(std::ostream& out) { printStats(out, true); }
std::vector<int64> m_cycles_executed_at_start;
std::ostream* m_periodic_output_file_ptr;
- integer_t m_stats_period;
+ int64_t m_stats_period;
Time m_ruby_start;
time_t m_real_time_start_time;
- std::vector<std::vector<integer_t> > m_busyControllerCount;
- integer_t m_busyBankCount;
+ std::vector<std::vector<int64_t> > m_busyControllerCount;
+ int64_t m_busyBankCount;
Histogram m_multicast_retry_histogram;
Histogram m_filter_action_histogram;