cache_diff.cc File Reference
#include "squid.h"
#include <cerrno>
Include dependency graph for cache_diff.cc:

Go to the source code of this file.

Classes

struct  CacheIndex
 
struct  _CacheEntry
 

Typedefs

typedef struct _CacheEntry CacheEntry
 

Functions

static int cacheIndexScan (CacheIndex *idx, const char *fname, FILE *file)
 
static CacheEntrycacheEntryCreate (const StoreSwapLogData *s)
 
static void cacheEntryDestroy (CacheEntry *e)
 
static CacheIndexcacheIndexCreate (const char *name)
 
static void cacheIndexDestroy (CacheIndex *idx)
 
static int cacheIndexAddLog (CacheIndex *idx, const char *fname)
 
static void cacheIndexInitReport (CacheIndex *idx)
 
static void cacheIndexCmpReport (CacheIndex *idx, int shared_count)
 
static void cacheIndexCmp (CacheIndex *idx1, CacheIndex *idx2)
 
static int usage (const char *prg_name)
 
int main (int argc, char *argv[])
 

Typedef Documentation

typedef struct _CacheEntry CacheEntry

Function Documentation

static CacheEntry* cacheEntryCreate ( const StoreSwapLogData s)
static
static void cacheEntryDestroy ( CacheEntry e)
static

Definition at line 49 of file cache_diff.cc.

References assert, and xfree.

Referenced by cacheIndexDestroy(), and cacheIndexScan().

static int cacheIndexAddLog ( CacheIndex idx,
const char *  fname 
)
static

Definition at line 94 of file cache_diff.cc.

References assert, cacheIndexScan(), O_BINARY, and strerror().

Referenced by main().

static void cacheIndexCmp ( CacheIndex idx1,
CacheIndex idx2 
)
static
static void cacheIndexCmpReport ( CacheIndex idx,
int  shared_count 
)
static

Definition at line 177 of file cache_diff.cc.

References assert, CacheIndex::count, CacheIndex::name, and xpercent().

Referenced by cacheIndexCmp().

static CacheIndex* cacheIndexCreate ( const char *  name)
static

Definition at line 56 of file cache_diff.cc.

References CacheIndex::hash, hash_create(), CacheIndex::name, NULL, storeKeyHashCmp, storeKeyHashHash, and xcalloc.

Referenced by main().

static void cacheIndexDestroy ( CacheIndex idx)
static
static void cacheIndexInitReport ( CacheIndex idx)
static
int main ( int  argc,
char *  argv[] 
)
static int usage ( const char *  prg_name)
static

Definition at line 224 of file cache_diff.cc.

Referenced by main().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors