"Fossies" - the Fresh Open Source Software Archive

Member "coda-6.9.5/coda-src/venus/venusstats.h" (23 May 2003, 2913 Bytes) of package /linux/misc/old/coda-6.9.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "venusstats.h" see the Fossies "Dox" file reference documentation.

    1 /* BLURB gpl
    2 
    3                            Coda File System
    4                               Release 6
    5 
    6           Copyright (c) 1987-2003 Carnegie Mellon University
    7                   Additional copyrights listed below
    8 
    9 This  code  is  distributed "AS IS" without warranty of any kind under
   10 the terms of the GNU General Public Licence Version 2, as shown in the
   11 file  LICENSE.  The  technical and financial  contributors to Coda are
   12 listed in the file CREDITS.
   13 
   14                         Additional copyrights
   15                            none currently
   16 
   17 #*/
   18 
   19 
   20 
   21 
   22 
   23 
   24 
   25 
   26 /*
   27  *
   28  *  Definitions of Venus Statistics
   29  *
   30  */
   31 
   32 
   33 #ifndef _VENUS_STATS_H_
   34 #define _VENUS_STATS_H_ 1
   35 
   36 
   37 #ifdef __cplusplus
   38 extern "C" {
   39 #endif
   40 
   41 #include <rpc2/rpc2.h>
   42 #include <vice.h>
   43 
   44 #ifdef __cplusplus
   45 }
   46 #endif
   47 
   48 
   49 
   50 #define NVFSOPS 40  /* XXX -JJK */
   51 #define VFSSTATNAMELEN 12
   52 typedef struct VFSStat {
   53     char name[VFSSTATNAMELEN];      /* XXX -JJK */
   54     int success;
   55     int retry;
   56     int timeout;
   57     int failure;
   58     double time;
   59     double time2;
   60 } VFSStat;
   61 
   62 
   63 typedef struct VFSStatistics {
   64     struct VFSStat VFSOps[NVFSOPS];
   65 } VFSStatistics;
   66 
   67 
   68 typedef struct FSOStatistics {
   69     int FSO1;
   70     int FSO2;
   71     int FSO3;
   72     int FSO4;
   73 } FSOStatistics;
   74 
   75 
   76 typedef struct VolStatistics {
   77     int Vol1;
   78     int Vol2;
   79     int Vol3;
   80     int Vol4;
   81 } VolStatistics;
   82 
   83 
   84 typedef struct ConnStatistics {
   85     int Conn1;
   86     int Conn2;
   87     int Conn3;
   88     int Conn4;
   89 } ConnStatistics;
   90 
   91 
   92 typedef struct MgrpStatistics {
   93     int Mgrp1;
   94     int Mgrp2;
   95     int Mgrp3;
   96     int Mgrp4;
   97 } MgrpStatistics;
   98 
   99 
  100 typedef struct ServerStatistics {
  101     int Server1;
  102     int Server2;
  103     int Server3;
  104     int Server4;
  105 } ServerStatistics;
  106 
  107 
  108 typedef struct VSGStatistics {
  109     int VSG1;
  110     int VSG2;
  111     int VSG3;
  112     int VSG4;
  113 } VSGStatistics;
  114 
  115 
  116 #define RPCOPSTATNAMELEN 20
  117 
  118 typedef struct RPCOpStat {
  119     char name[RPCOPSTATNAMELEN];        /* XXX -JJK */
  120     int good;
  121     int bad;
  122     float time;
  123     int Mgood;
  124     int Mbad;
  125     float Mtime;
  126     int rpc_retries;
  127     int Mrpc_retries;
  128 } RPCOpStat;
  129 
  130 
  131 typedef struct RPCOpStatistics {
  132     RPCOpStat RPCOps[srvOPARRAYSIZE];
  133 } RPCOpStatistics;
  134 
  135 
  136 typedef struct RPCPktStatistics {
  137     struct SStats RPC2_SStats_Uni;
  138     struct SStats RPC2_SStats_Multi;
  139     struct RStats RPC2_RStats_Uni;
  140     struct RStats RPC2_RStats_Multi;
  141     struct sftpStats SFTP_SStats_Uni;
  142     struct sftpStats SFTP_SStats_Multi;
  143     struct sftpStats SFTP_RStats_Uni;
  144     struct sftpStats SFTP_RStats_Multi;
  145 } RPCPktStatistics;
  146 
  147 
  148 typedef struct CommStatistics {
  149     ConnStatistics ConnStats;
  150     MgrpStatistics MgrpStats;
  151     ServerStatistics ServerStats;
  152     VSGStatistics VSGStats;
  153     RPCOpStatistics RPCOpStats;
  154     RPCPktStatistics RPCPktStats;
  155 } CommStatistics;
  156 
  157 
  158 typedef struct VenusStatistics {
  159     VFSStatistics VFSStats;
  160     FSOStatistics FSOStats;
  161     VolStatistics VolStats;
  162     CommStatistics CommStats;
  163 } VenusStatistics;
  164 
  165 #endif /* _VENUS_STATS_H_ */