From bc1daae7fd528ca72ba14d669a0d00243f553be5 Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Sun, 10 Feb 2013 21:26:22 -0600 Subject: ruby: modifies histogram add() function This patch modifies the Histogram class' add() function so that it can add linear histograms as well. The function assumes that the left end point of the ranges of the two histograms are the same. It also assumes that when the ranges of the two histogram are changed to accomodate an element not in the range, the factor used in changing the range is same for both the histograms. This function is then used in removing one of the calls to the global profiler*. The histograms for recording the delays incurred in processing different requests are now maintained by the controllers. The profiler adds these histograms when it needs to print the stats. --- src/mem/ruby/network/Network.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mem/ruby/network') diff --git a/src/mem/ruby/network/Network.hh b/src/mem/ruby/network/Network.hh index a59caebbd..9784af759 100644 --- a/src/mem/ruby/network/Network.hh +++ b/src/mem/ruby/network/Network.hh @@ -65,7 +65,7 @@ class Network : public ClockedObject virtual void init(); - static int getNumberOfVirtualNetworks() { return m_virtual_networks; } + static uint32_t getNumberOfVirtualNetworks() { return m_virtual_networks; } static uint32_t MessageSizeType_to_int(MessageSizeType size_type); // returns the queue requested for the given component -- cgit v1.2.3