GDB (xrefs)
Functions
/tmp/gdb-8.1/gdb/bcache.h File Reference

Go to the source code of this file.

Functions

const void * bcache (const void *addr, int length, struct bcache *bcache)
 
const void * bcache_full (const void *addr, int length, struct bcache *bcache, int *added)
 
void bcache_xfree (struct bcache *bcache)
 
struct bcachebcache_xmalloc (unsigned long(*hash_function)(const void *, int length), int(*compare_function)(const void *, const void *, int length))
 
void print_bcache_statistics (struct bcache *bcache, const char *type)
 
int bcache_memory_used (struct bcache *bcache)
 
unsigned long hash (const void *addr, int length)
 
unsigned long hash_continue (const void *addr, int length, unsigned long h)
 

Function Documentation

◆ bcache()

const void* bcache ( const void *  addr,
int  length,
struct bcache bcache 
)

Definition at line 206 of file bcache.c.

References bcache_full(), and bstring::length.

Referenced by macro_bcache(), and psymbol_bcache_init().

◆ bcache_full()

const void* bcache_full ( const void *  addr,
int  length,
struct bcache bcache,
int *  added 
)

◆ bcache_memory_used()

int bcache_memory_used ( struct bcache bcache)

Definition at line 486 of file bcache.c.

References bcache::cache, and bcache::total_count.

Referenced by print_objfile_statistics().

◆ bcache_xfree()

void bcache_xfree ( struct bcache bcache)

◆ bcache_xmalloc()

struct bcache* bcache_xmalloc ( unsigned long(*)(const void *, int length)  hash_function,
int(*)(const void *, const void *, int length)  compare_function 
)

◆ hash()

unsigned long hash ( const void *  addr,
int  length 
)

◆ hash_continue()

unsigned long hash_continue ( const void *  addr,
int  length,
unsigned long  h 
)

Definition at line 106 of file bcache.c.

References bstring::length.

Referenced by hash(), and psymbol_hash().

◆ print_bcache_statistics()

void print_bcache_statistics ( struct bcache bcache,
const char *  type 
)