Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

lock_timing.C File Reference

#include <Basics.H>
#include <BufStream.H>
#include <FS.H>
#include <iomanip>
#include "logging.H"
#include "lock_timing.H"
#include "VRConcurrency.H"
#include <stdio.h>
#include <sys/time.h>
#include <assert.h>

Go to the source code of this file.

Defines

#define TIMING_RECORDER_BUF_SIZE   32768
#define USECS_PER_SEC   1000000

Enumerations

enum  which_lock_t { stable, volatileRoot, userGroup }

Functions

void rwlock_acquire_read_start (ReadersWritersLock *lock_p)
void rwlock_acquire_read_done (ReadersWritersLock *lock_p, bool failed)
void rwlock_acquire_write_start (ReadersWritersLock *lock_p)
void rwlock_acquire_write_done (ReadersWritersLock *lock_p, bool failed)
void rwlock_release_start (ReadersWritersLock *lock_p)
void rwlock_release_done (ReadersWritersLock *lock_p)
void rwlock_locked_reason (ReadersWritersLock *lock_p, const char *reason)
void rwlock_timing_control (bool enable)

Variables

ReadersWritersLock userGroup_lock
Basics::mutex popen_mu


Define Documentation

#define TIMING_RECORDER_BUF_SIZE   32768
 

Definition at line 46 of file lock_timing.C.

Referenced by Lock_Timing_Recorder::acquire_read_start(), Lock_Timing_Recorder::acquire_write_start(), Lock_Timing_Recorder::locked_reason(), and Lock_Timing_Recorder::write_delta_record().

#define USECS_PER_SEC   1000000
 

Definition at line 527 of file lock_timing.C.

Referenced by SRPC_Call_Stats::getStats(), NFS_Call_Stats::getStats(), operator(), ReposStats::TimedCalls::operator-(), operator-(), Delta_Time::operator-(), SRPC_Call_Stats::recordCall(), NFS_Call_Stats::recordCall(), Delta_Time::usecs_overflow(), SRPC_Call_Stats::Helper::~Helper(), and NFS_Call_Stats::Helper::~Helper().


Enumeration Type Documentation

enum which_lock_t
 

Enumeration values:
stable 
volatileRoot 
userGroup 

Definition at line 48 of file lock_timing.C.


Function Documentation

void rwlock_acquire_read_done ReadersWritersLock lock_p,
bool  failed
 

Definition at line 270 of file lock_timing.C.

References Lock_Timing_Recorder::acquire_read_done().

void rwlock_acquire_read_start ReadersWritersLock lock_p  ) 
 

Definition at line 254 of file lock_timing.C.

References Lock_Timing_Recorder::acquire_read_start().

void rwlock_acquire_write_done ReadersWritersLock lock_p,
bool  failed
 

Definition at line 302 of file lock_timing.C.

References Lock_Timing_Recorder::acquire_write_done().

void rwlock_acquire_write_start ReadersWritersLock lock_p  ) 
 

Definition at line 286 of file lock_timing.C.

References Lock_Timing_Recorder::acquire_write_start().

void rwlock_locked_reason ReadersWritersLock lock_p,
const char *  reason
 

Definition at line 350 of file lock_timing.C.

References Lock_Timing_Recorder::locked_reason().

void rwlock_release_done ReadersWritersLock lock_p  ) 
 

Definition at line 334 of file lock_timing.C.

References Lock_Timing_Recorder::release_done().

void rwlock_release_start ReadersWritersLock lock_p  ) 
 

Definition at line 318 of file lock_timing.C.

References Lock_Timing_Recorder::release_start().

void rwlock_timing_control bool  enable  ) 
 

Definition at line 366 of file lock_timing.C.


Variable Documentation

Basics::mutex popen_mu
 

Definition at line 54 of file timing.C.

ReadersWritersLock userGroup_lock
 

Referenced by AccessControl::GlobalIdentityRep::fill_caches(), AccessControl::UnixIdentityRep::fill_caches(), AccessControl::globalToUnixGroup(), AccessControl::globalToUnixUser(), AccessControl::unixToGlobalGroup(), and AccessControl::unixToGlobalUser().


Generated on Mon May 8 00:49:03 2006 for Vesta by  doxygen 1.4.2