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:
authorAleksejs Sestakovs <aleksejs.sestakovs@zabbix.com>2020-09-02 15:21:15 +0300
committerAleksejs Sestakovs <aleksejs.sestakovs@zabbix.com>2020-09-02 15:23:39 +0300
commit81c16a5f8f0054dec2dac37ef96985faedf4abca (patch)
tree1e9430db00228749487fae2fc072a1b623400ded /include/memalloc.h
parentcb8637641adee071fa1916957fe44df76953147e (diff)
.......PS. [ZBX-15904] added check of required cache size for vmware event messages
* commit '1f632f4d446b05ab9736e40d3751a993f8a80272': .......PS. [ZBX-15904] fixed error when compiling without libxml2 or libcurl .......PS. [ZBX-15904] added check of required cache size for vmware event messages (cherry picked from commit b68de4b9542e9e9253bf92b59358b345346909bc)
Diffstat (limited to 'include/memalloc.h')
-rw-r--r--include/memalloc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/memalloc.h b/include/memalloc.h
index 8f67d850977..60d04b04e44 100644
--- a/include/memalloc.h
+++ b/include/memalloc.h
@@ -56,6 +56,7 @@ typedef struct
zbx_uint64_t used_size;
zbx_uint64_t min_chunk_size;
zbx_uint64_t max_chunk_size;
+ zbx_uint64_t overhead;
unsigned int chunks_num[MEM_BUCKET_COUNT];
unsigned int free_chunks;
unsigned int used_chunks;
@@ -86,6 +87,7 @@ void zbx_mem_get_stats(const zbx_mem_info_t *info, zbx_mem_stats_t *stats);
void zbx_mem_dump_stats(int level, zbx_mem_info_t *info);
size_t zbx_mem_required_size(int chunks_num, const char *descr, const char *param);
+zbx_uint64_t zbx_mem_required_chunk_size(zbx_uint64_t size);
#define ZBX_MEM_FUNC1_DECL_MALLOC(__prefix) \
static void *__prefix ## _mem_malloc_func(void *old, size_t size)