• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

CongestionStats.h

Go to the documentation of this file.
00001 /** @file
00002 
00003   A brief file description
00004 
00005   @section license License
00006 
00007   Licensed to the Apache Software Foundation (ASF) under one
00008   or more contributor license agreements.  See the NOTICE file
00009   distributed with this work for additional information
00010   regarding copyright ownership.  The ASF licenses this file
00011   to you under the Apache License, Version 2.0 (the
00012   "License"); you may not use this file except in compliance
00013   with the License.  You may obtain a copy of the License at
00014 
00015       http://www.apache.org/licenses/LICENSE-2.0
00016 
00017   Unless required by applicable law or agreed to in writing, software
00018   distributed under the License is distributed on an "AS IS" BASIS,
00019   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00020   See the License for the specific language governing permissions and
00021   limitations under the License.
00022  */
00023 
00024 /*****************************************************************************
00025  *
00026  *  CongestionStats.h - Implementation of Congestion Control
00027  *
00028  *
00029  ****************************************************************************/
00030 #ifndef CONGESTION_STATS_H_
00031 #define CONGESTION_STATS_H_
00032 
00033 
00034 // the stat variables are defined in StatSystem.h, StatSystem.cc
00035 void register_congest_stats();
00036 #include "P_RecProcess.h"
00037 extern RecRawStatBlock *congest_rsb;
00038 
00039 /* Instead of enumerating the stats in DynamicStats.h, each module needs
00040    to enumerate its stats separately and register them with librecords
00041    */
00042 enum
00043 {
00044   congested_on_F_stat,
00045   congested_on_M_stat,
00046   congest_num_stats
00047 };
00048 #define CONGEST_SUM_GLOBAL_DYN_STAT(_x, _y) RecIncrGlobalRawStatSum(congest_rsb, (int) _x, _y)
00049 #define CONGEST_INCREMENT_DYN_STAT(_x) RecIncrRawStat(congest_rsb, mutex->thread_holding, (int)_x, 1)
00050 
00051 #endif /* CONGESTION_STATS_H_ */

Generated by  doxygen 1.7.1