Coda Distributed File System
rvmrestiming.h
Go to the documentation of this file.
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
9This code is distributed "AS IS" without warranty of any kind under
10the terms of the GNU General Public Licence Version 2, as shown in the
11file LICENSE. The technical and financial contributors to Coda are
12listed in the file CREDITS.
13
14 Additional copyrights
15 none currently
16
17#*/
18
19#ifndef _RVMRES_TIMING_H_
20#define _RVMRES_TIMING_H_
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#include <sys/time.h>
27#include <stdio.h>
28
29#ifdef __cplusplus
30}
31#endif
32
33#define TIMEGROWSIZE 10
34extern int pathtiming;
35extern int probingon;
36#define MAXPROBES 1000
37#define PROBE(info, num) \
38 if (pathtiming && probingon && (info)) \
39 (info)->insert((num));
40
41/* probe numbers */
42#define RESBEGIN 0
43
44#define RecovTimingBase 50
45
46#define RecovCoorP1Begin RecovTimingBase + 1
47#define RecovSubP1Begin RecovTimingBase + 2
48#define RecovSubP1End RecovTimingBase + 3
49#define RecovCoorP1End RecovTimingBase + 4
50
51#define RecovCoorP2Begin RecovTimingBase + 5
52#define RecovSubP2Begin RecovTimingBase + 6
53#define RecovSubP2End RecovTimingBase + 7
54#define RecovCoorP2End RecovTimingBase + 8
55
56#define RecovCoorP3Begin RecovTimingBase + 9
57#define RecovSubP3Begin RecovTimingBase + 10
58#define RecovCompOpsBegin RecovTimingBase + 11
59#define RecovCompOpsEnd RecovTimingBase + 12
60#define RecovPerformResOpBegin RecovTimingBase + 13
61#define RecovPerformResOpEnd RecovTimingBase + 14
62#define RecovSubP3End RecovTimingBase + 15
63#define RecovCoorP3End RecovTimingBase + 16
64
65#define RecovCoorP34Begin RecovTimingBase + 17
66#define RecovSubP34Begin RecovTimingBase + 18
67#define RecovSubP34End RecovTimingBase + 19
68#define RecovCoorP34End RecovTimingBase + 20
69
70#define RecovCoorP4Begin RecovTimingBase + 21
71#define RecovSubP4Begin RecovTimingBase + 22
72#define RecovSubP4End RecovTimingBase + 23
73#define RecovCoorP4End RecovTimingBase + 24
74
75#define RUNTUPDATEBEGIN 1
76#define RUNTUPDATEEND 2
77#define WEAKEQBEGIN 3
78#define COLLECTLOGBEGIN 4 /* begin of regular res */
79#define COLLECTLOGEND 5
80#define COORP1BEGIN 6
81#define COORP1END 7
82#define P1PANDYBEGIN 8
83#define COORP2BEGIN 9
84#define COORP3BEGIN 10
85#define COORP3END 11
86#define COORMARKINCBEGIN 12
87#define COORMARKINCEND 13
88#define RESEND 14
89#define CFETCHLOGBEGIN 15
90#define CFETCHLOGEND 16
91#define CPHASE1BEGIN 17
92#define CPHASE1END 18
93#define COMPOPSBEGIN 19
94#define COMPOPSEND 20
95#define PERFOPSBEGIN 21
96#define PERFOPSEND 22
97#define P1PUTOBJBEGIN 23
98#define P1PUTOBJEND 24
99#define CPHASE2BEGIN 25
100#define CPHASE2END 26
101#define CPHASE3BEGIN 27
102#define CPHASE3END 28
103
104#endif /* _RVMRES_TIMING_H_ */
int probingon
Definition: srv.cc:134
int pathtiming
Definition: srv.cc:141