Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/zbxdbcache/valuecache.c')
-rw-r--r--src/libs/zbxdbcache/valuecache.c114
1 files changed, 0 insertions, 114 deletions
diff --git a/src/libs/zbxdbcache/valuecache.c b/src/libs/zbxdbcache/valuecache.c
index 9750205928f..5bb34ee05d7 100644
--- a/src/libs/zbxdbcache/valuecache.c
+++ b/src/libs/zbxdbcache/valuecache.c
@@ -293,8 +293,6 @@ static void vch_item_clean_cache(zbx_vc_item_t *item);
/*********************************************************************************
* *
- * Function: vc_db_read_values_by_time *
- * *
* Purpose: reads item history data from database *
* *
* Parameters: itemid - [IN] the itemid *
@@ -322,8 +320,6 @@ static int vc_db_read_values_by_time(zbx_uint64_t itemid, int value_type, zbx_ve
/************************************************************************************
* *
- * Function: vc_db_read_values_by_time_and_count *
- * *
* Purpose: reads item history data from database *
* *
* Parameters: itemid - [IN] the itemid *
@@ -442,8 +438,6 @@ static int vc_db_read_values_by_time_and_count(zbx_uint64_t itemid, int value_ty
/******************************************************************************
* *
- * Function: vc_db_get_values *
- * *
* Purpose: get item history data for the specified time period directly from *
* database *
* *
@@ -561,8 +555,6 @@ static int vc_strpool_compare_func(const void *d1, const void *d2)
/******************************************************************************
* *
- * Function: vc_item_weight_compare_func *
- * *
* Purpose: compares two item weight data structures by their 'weight' *
* *
* Parameters: d1 - [IN] the first item weight data structure *
@@ -578,8 +570,6 @@ static int vc_item_weight_compare_func(const zbx_vc_item_weight_t *d1, const zbx
/******************************************************************************
* *
- * Function: vc_history_logfree *
- * *
* Purpose: frees history log and all resources allocated for it *
* *
* Parameters: log - [IN] the history log to free *
@@ -594,8 +584,6 @@ static void vc_history_logfree(zbx_log_value_t *log)
/******************************************************************************
* *
- * Function: vc_history_logdup *
- * *
* Purpose: duplicates history log by allocating necessary resources and *
* copying the target log values. *
* *
@@ -621,8 +609,6 @@ static zbx_log_value_t *vc_history_logdup(const zbx_log_value_t *log)
/******************************************************************************
* *
- * Function: vc_history_record_vector_clean *
- * *
* Purpose: releases resources allocated to store history records *
* *
* Parameters: vector - [IN] the history record vector *
@@ -651,8 +637,6 @@ static void vc_history_record_vector_clean(zbx_vector_history_record_t *vector,
/******************************************************************************
* *
- * Function: vc_update_statistics *
- * *
* Purpose: updates cache and item statistics *
* *
* Parameters: item - [IN] the item (optional) *
@@ -693,8 +677,6 @@ static void vc_update_statistics(zbx_vc_item_t *item, int hits, int misses, int
/******************************************************************************
* *
- * Function: vc_compare_items_by_total_values *
- * *
* Purpose: is used to sort items by value count in descending order *
* *
******************************************************************************/
@@ -710,8 +692,6 @@ static int vc_compare_items_by_total_values(const void *d1, const void *d2)
/******************************************************************************
* *
- * Function: vc_dump_items_statistics *
- * *
* Purpose: find out items responsible for low memory *
* *
******************************************************************************/
@@ -752,8 +732,6 @@ static void vc_dump_items_statistics(void)
/******************************************************************************
* *
- * Function: vc_warn_low_memory *
- * *
* Purpose: logs low memory warning *
* *
* Comments: The low memory warning is written to log every 5 minutes when *
@@ -786,8 +764,6 @@ static void vc_warn_low_memory(void)
/******************************************************************************
* *
- * Function: vc_release_unused_items *
- * *
* Purpose: frees space in cache by dropping items not accessed for more than *
* 24 hours *
* *
@@ -825,8 +801,6 @@ static size_t vc_release_unused_items(const zbx_vc_item_t *source_item)
/******************************************************************************
* *
- * Function: zbx_vc_housekeeping_value_cache *
- * *
* Purpose: release unused items from value cache *
* *
* Comments: If unused items are not cleared from value cache periodically *
@@ -846,8 +820,6 @@ void zbx_vc_housekeeping_value_cache(void)
/******************************************************************************
* *
- * Function: vc_release_space *
- * *
* Purpose: frees space in cache to store the specified number of bytes by *
* dropping the least accessed items *
* *
@@ -917,8 +889,6 @@ static void vc_release_space(zbx_vc_item_t *source_item, size_t space)
/******************************************************************************
* *
- * Function: vc_history_record_copy *
- * *
* Purpose: copies history value *
* *
* Parameters: dst - [OUT] a pointer to the destination value *
@@ -949,8 +919,6 @@ static void vc_history_record_copy(zbx_history_record_t *dst, const zbx_history_
/******************************************************************************
* *
- * Function: vc_history_record_vector_append *
- * *
* Purpose: appends the specified value to value vector *
* *
* Parameters: vector - [IN/OUT] the value vector *
@@ -972,8 +940,6 @@ static void vc_history_record_vector_append(zbx_vector_history_record_t *vector,
/******************************************************************************
* *
- * Function: vc_item_malloc *
- * *
* Purpose: allocate cache memory to store item's resources *
* *
* Parameters: item - [IN] the item *
@@ -1005,8 +971,6 @@ static void *vc_item_malloc(zbx_vc_item_t *item, size_t size)
/******************************************************************************
* *
- * Function: vc_item_strdup *
- * *
* Purpose: copies string to the cache memory *
* *
* Parameters: item - [IN] the item *
@@ -1058,8 +1022,6 @@ static char *vc_item_strdup(zbx_vc_item_t *item, const char *str)
/******************************************************************************
* *
- * Function: vc_item_strfree *
- * *
* Purpose: removes string from cache string pool *
* *
* Parameters: str - [IN] the string to remove *
@@ -1093,8 +1055,6 @@ static size_t vc_item_strfree(char *str)
/******************************************************************************
* *
- * Function: vc_item_logdup *
- * *
* Purpose: copies log value to the cache memory *
* *
* Parameters: item - [IN] the item *
@@ -1142,8 +1102,6 @@ fail:
/******************************************************************************
* *
- * Function: vc_item_logfree *
- * *
* Purpose: removes log resource from cache memory *
* *
* Parameters: str - [IN] the log to remove *
@@ -1172,8 +1130,6 @@ static size_t vc_item_logfree(zbx_log_value_t *log)
/******************************************************************************
* *
- * Function: vc_item_free_values *
- * *
* Purpose: frees cache resources of the specified item value range *
* *
* Parameters: item - [IN] the item *
@@ -1209,8 +1165,6 @@ static size_t vc_item_free_values(zbx_vc_item_t *item, zbx_history_record_t *val
/******************************************************************************
* *
- * Function: vc_remove_item *
- * *
* Purpose: removes item from cache and frees resources allocated for it *
* *
* Parameters: item - [IN] the item *
@@ -1224,8 +1178,6 @@ static void vc_remove_item(zbx_vc_item_t *item)
/******************************************************************************
* *
- * Function: vc_remove_item_by_id *
- * *
* Purpose: removes item from cache and frees resources allocated for it *
* *
* Parameters: itemid - [IN] the item identifier *
@@ -1243,8 +1195,6 @@ static void vc_remove_item_by_id(zbx_uint64_t itemid)
}
/******************************************************************************
* *
- * Function: vc_item_update_db_cached_from *
- * *
* Purpose: updates the timestamp from which the item is being cached *
* *
* Parameters: item - [IN] the item *
@@ -1301,8 +1251,6 @@ static void vc_item_update_db_cached_from(zbx_vc_item_t *item, int timestamp)
/******************************************************************************
* *
- * Function: vch_item_update_range *
- * *
* Purpose: updates item range with current request range *
* *
* Parameters: item - [IN] the item *
@@ -1335,8 +1283,6 @@ static void vch_item_update_range(zbx_vc_item_t *item, int range, int now)
/******************************************************************************
* *
- * Function: vch_item_chunk_slot_count *
- * *
* Purpose: calculates optimal number of slots for an item data chunk *
* *
* Parameters: item - [IN] the item *
@@ -1372,8 +1318,6 @@ static int vch_item_chunk_slot_count(zbx_vc_item_t *item, int values_new)
/******************************************************************************
* *
- * Function: vch_item_add_chunk *
- * *
* Purpose: adds a new data chunk at the end of item's history data list *
* *
* Parameters: item - [IN/OUT] the item to add chunk to *
@@ -1429,8 +1373,6 @@ static int vch_item_add_chunk(zbx_vc_item_t *item, int nslots, zbx_vc_chunk_t *i
/******************************************************************************
* *
- * Function: vch_chunk_find_last_value_before *
- * *
* Purpose: find the index of the last value in chunk with timestamp less or *
* equal to the specified timestamp. *
* *
@@ -1480,8 +1422,6 @@ static int vch_chunk_find_last_value_before(const zbx_vc_chunk_t *chunk, const z
/******************************************************************************
* *
- * Function: vch_item_get_last_value *
- * *
* Purpose: gets the chunk and index of the last value with a timestamp less *
* or equal to the specified timestamp *
* *
@@ -1530,8 +1470,6 @@ static int vch_item_get_last_value(const zbx_vc_item_t *item, const zbx_timespec
/******************************************************************************
* *
- * Function: vch_item_copy_value *
- * *
* Purpose: copies value in the specified item's chunk slot *
* *
* Parameters: chunk - [IN/OUT] the target chunk *
@@ -1577,8 +1515,6 @@ out:
/******************************************************************************
* *
- * Function: vch_item_copy_values_at_tail *
- * *
* Purpose: copies values at the beginning of item tail chunk *
* *
* Parameters: item - [IN/OUT] the target item *
@@ -1642,8 +1578,6 @@ out:
/******************************************************************************
* *
- * Function: vch_item_free_chunk *
- * *
* Purpose: frees chunk and all resources allocated to store its values *
* *
* Parameters: item - [IN] the chunk owner item *
@@ -1666,8 +1600,6 @@ static size_t vch_item_free_chunk(zbx_vc_item_t *item, zbx_vc_chunk_t *chunk)
/******************************************************************************
* *
- * Function: vch_item_remove_chunk *
- * *
* Purpose: removes item history data chunk *
* *
* Parameters: item - [IN ] the chunk owner item *
@@ -1693,8 +1625,6 @@ static void vch_item_remove_chunk(zbx_vc_item_t *item, zbx_vc_chunk_t *chunk)
/******************************************************************************
* *
- * Function: vch_item_clean_cache *
- * *
* Purpose: removes item history data that are outside (older) the maximum *
* request range *
* *
@@ -1756,8 +1686,6 @@ static void vch_item_clean_cache(zbx_vc_item_t *item)
/******************************************************************************
* *
- * Function: vch_item_remove_values *
- * *
* Purpose: removes item history data that are older than the specified *
* timestamp *
* *
@@ -1800,8 +1728,6 @@ static void vch_item_remove_values(zbx_vc_item_t *item, int timestamp)
/******************************************************************************
* *
- * Function: vch_item_add_value_at_head *
- * *
* Purpose: adds one item history value at the end of current item's history *
* data *
* *
@@ -1912,8 +1838,6 @@ out:
/******************************************************************************
* *
- * Function: vch_item_add_values_at_tail *
- * *
* Purpose: adds item history values at the beginning of current item's *
* history data *
* *
@@ -1976,8 +1900,6 @@ out:
/******************************************************************************
* *
- * Function: vch_item_cache_values_by_time *
- * *
* Purpose: cache item history data for the specified time period *
* *
* Parameters: item - [IN] the item *
@@ -2062,8 +1984,6 @@ out:
/******************************************************************************
* *
- * Function: vch_item_cache_values_by_time_and_count *
- * *
* Purpose: cache the specified number of history data values for time period *
* since timestamp *
* *
@@ -2184,8 +2104,6 @@ out:
/******************************************************************************
* *
- * Function: vch_item_get_values_by_time *
- * *
* Purpose: retrieves item history data from cache *
* *
* Parameters: item - [IN] the item *
@@ -2234,8 +2152,6 @@ static void vch_item_get_values_by_time(const zbx_vc_item_t *item, zbx_vector_hi
/******************************************************************************
* *
- * Function: vch_item_get_values_by_time_and_count *
- * *
* Purpose: retrieves item history data from cache *
* *
* Parameters: item - [IN] the item *
@@ -2314,8 +2230,6 @@ out:
/******************************************************************************
* *
- * Function: vch_item_get_value_range *
- * *
* Purpose: get item values for the specified range *
* *
* Parameters: item - [IN] the item *
@@ -2389,8 +2303,6 @@ out:
/******************************************************************************
* *
- * Function: vch_item_free_cache *
- * *
* Purpose: frees resources allocated for item history data *
* *
* Parameters: item - [IN] the item *
@@ -2426,8 +2338,6 @@ static size_t vch_item_free_cache(zbx_vc_item_t *item)
/******************************************************************************
* *
- * Function: zbx_vc_init *
- * *
* Purpose: initializes value cache *
* *
******************************************************************************/
@@ -2499,8 +2409,6 @@ out:
/******************************************************************************
* *
- * Function: zbx_vc_destroy *
- * *
* Purpose: destroys value cache *
* *
******************************************************************************/
@@ -2528,8 +2436,6 @@ void zbx_vc_destroy(void)
/******************************************************************************
* *
- * Function: zbx_vc_reset *
- * *
* Purpose: resets value cache *
* *
* Comments: All items and their historical data are removed, *
@@ -2569,8 +2475,6 @@ void zbx_vc_reset(void)
/******************************************************************************
* *
- * Function: zbx_vc_add_values *
- * *
* Purpose: adds item values to the history and value cache *
* *
* Parameters: history - [IN] item history values *
@@ -2632,8 +2536,6 @@ int zbx_vc_add_values(zbx_vector_ptr_t *history, int *ret_flush)
/******************************************************************************
* *
- * Function: zbx_vc_get_values *
- * *
* Purpose: get item history data for the specified time period *
* *
* Parameters: itemid - [IN] the item id *
@@ -2712,8 +2614,6 @@ out:
/******************************************************************************
* *
- * Function: zbx_vc_get_value *
- * *
* Purpose: get the last history value with a timestamp less or equal to the *
* target timestamp *
* *
@@ -2754,8 +2654,6 @@ out:
/******************************************************************************
* *
- * Function: zbx_vc_get_statistics *
- * *
* Purpose: retrieves usage cache statistics *
* *
* Parameters: stats - [OUT] the cache usage statistics *
@@ -2786,8 +2684,6 @@ int zbx_vc_get_statistics(zbx_vc_stats_t *stats)
/******************************************************************************
* *
- * Function: zbx_vc_enable *
- * *
* Purpose: enables value caching for current process *
* *
******************************************************************************/
@@ -2799,8 +2695,6 @@ void zbx_vc_enable(void)
/******************************************************************************
* *
- * Function: zbx_vc_disable *
- * *
* Purpose: disables value caching for current process *
* *
******************************************************************************/
@@ -2811,8 +2705,6 @@ void zbx_vc_disable(void)
/******************************************************************************
* *
- * Function: zbx_hc_get_diag_stats *
- * *
* Purpose: get value cache diagnostic statistics *
* *
******************************************************************************/
@@ -2844,8 +2736,6 @@ void zbx_vc_get_diag_stats(zbx_uint64_t *items_num, zbx_uint64_t *values_num, in
/******************************************************************************
* *
- * Function: zbx_hc_get_mem_stats *
- * *
* Purpose: get value cache shared memory statistics *
* *
******************************************************************************/
@@ -2864,8 +2754,6 @@ void zbx_vc_get_mem_stats(zbx_mem_stats_t *mem)
/******************************************************************************
* *
- * Function: zbx_vc_get_item_stats *
- * *
* Purpose: get statistics of cached items *
* *
******************************************************************************/
@@ -2897,8 +2785,6 @@ void zbx_vc_get_item_stats(zbx_vector_ptr_t *stats)
/******************************************************************************
* *
- * Function: zbx_vc_flush_stats *
- * *
* Purpose: flush locally cached statistics *
* *
******************************************************************************/