CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cvmfs_cache_ram.cc File Reference
#include <alloca.h>
#include <fcntl.h>
#include <inttypes.h>
#include <signal.h>
#include <stdint.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
#include <vector>
#include "cache_plugin/libcvmfs_cache.h"
#include "lru.h"
#include "malloc_heap.h"
#include "smallhash.h"
#include "util/concurrency.h"
#include "util/logging.h"
#include "util/murmur.hxx"
#include "util/platform.h"
#include "util/smalloc.h"
#include "util/string.h"
Include dependency graph for cvmfs_cache_ram.cc:

Go to the source code of this file.

Classes

struct  ObjectHeader
 
struct  Listing
 
struct  ComparableHash
 
class  PluginRamCache
 

Namespaces

 anonymous_namespace{cvmfs_cache_ram.cc}
 

Macros

#define __STDC_FORMAT_MACROS
 

Functions

static uint32_t anonymous_namespace{cvmfs_cache_ram.cc}::hasher_uint64 (const uint64_t &key)
 
static uint32_t anonymous_namespace{cvmfs_cache_ram.cc}::hasher_any (const ComparableHash &key)
 
static void Usage (const char *progname)
 
void DropBreadcrumbs (int sig, siginfo_t *siginfo, void *context)
 
int main (int argc, char **argv)
 

Variables

struct cvmcache_contextctx
 

Macro Definition Documentation

#define __STDC_FORMAT_MACROS

This file is part of the CernVM File System.

A cache plugin that stores all data in a fixed-size memory chunk.

Definition at line 7 of file cvmfs_cache_ram.cc.

Function Documentation

void DropBreadcrumbs ( int  sig,
siginfo_t *  siginfo,
void *  context 
)

For testing and debugging purposes, the cache manager drops its breadcrumb cache upon SIGUSR2 retrieval

Definition at line 643 of file cvmfs_cache_ram.cc.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( int  argc,
char **  argv 
)

Definition at line 649 of file cvmfs_cache_ram.cc.

Here is the call graph for this function:

static void Usage ( const char *  progname)
static

Definition at line 634 of file cvmfs_cache_ram.cc.

Here is the call graph for this function:

Variable Documentation

struct cvmcache_context* ctx

Used in the PluginRamCache when detaching nested catalogs.

Definition at line 152 of file cvmfs_cache_ram.cc.