isc_stats Struct Reference


Data Fields

unsigned int magic
 Unlocked.
isc_mem_tmctx
int ncounters
isc_mutex_t lock
unsigned int references
isc_stat_tcounters
 Locked by counterlock or unlocked if efficient rwlock is not available.
isc_uint64_tcopiedcounters
 We don't want to lock the counters while we are dumping, so we first copy the current counter values into a local array. This buffer will be used as the copy destination. It's allocated on creation of the stats structure so that the dump operation won't fail due to memory allocation failure. XXX: this approach is weird for non-threaded build because the additional memory and the copy overhead could be avoided. We prefer simplicity here, however, under the assumption that this function should be only rarely called.

Detailed Description

Definition at line 55 of file stats.c.


Field Documentation

unsigned int isc_stats::magic

Unlocked.

Definition at line 57 of file stats.c.

Referenced by create_stats().

isc_mem_t* isc_stats::mctx

Definition at line 58 of file stats.c.

Referenced by create_stats(), and isc_stats_detach().

int isc_stats::ncounters

Definition at line 59 of file stats.c.

Referenced by copy_counters(), create_stats(), isc_stats_detach(), isc_stats_dump(), and isc_stats_ncounters().

isc_mutex_t isc_stats::lock

Definition at line 61 of file stats.c.

Referenced by create_stats(), isc_stats_attach(), and isc_stats_detach().

unsigned int isc_stats::references

Definition at line 62 of file stats.c.

Referenced by create_stats(), isc_stats_attach(), and isc_stats_detach().

isc_stat_t* isc_stats::counters

Locked by counterlock or unlocked if efficient rwlock is not available.

Definition at line 71 of file stats.c.

Referenced by copy_counters(), create_stats(), decrementcounter(), incrementcounter(), isc_stats_detach(), and isc_stats_set().

isc_uint64_t* isc_stats::copiedcounters

We don't want to lock the counters while we are dumping, so we first copy the current counter values into a local array. This buffer will be used as the copy destination. It's allocated on creation of the stats structure so that the dump operation won't fail due to memory allocation failure. XXX: this approach is weird for non-threaded build because the additional memory and the copy overhead could be avoided. We prefer simplicity here, however, under the assumption that this function should be only rarely called.

Definition at line 84 of file stats.c.

Referenced by copy_counters(), create_stats(), isc_stats_detach(), and isc_stats_dump().


The documentation for this struct was generated from the following file:
Generated on Tue Apr 28 17:41:21 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha