diff options
Diffstat (limited to 'src/zabbix_agent/procstat.c')
-rw-r--r-- | src/zabbix_agent/procstat.c | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/zabbix_agent/procstat.c b/src/zabbix_agent/procstat.c index 793a18f873e..bd7024cc320 100644 --- a/src/zabbix_agent/procstat.c +++ b/src/zabbix_agent/procstat.c @@ -190,8 +190,6 @@ static int procstat_snapshot_num; /****************************************************************************** * * - * Function: procstat_dshm_has_enough_space * - * * * Purpose: check if the procstat shared memory segment has at least * * the specified amount of free bytes in the segment * * * @@ -214,8 +212,6 @@ static int procstat_dshm_has_enough_space(void *base, size_t size) /****************************************************************************** * * - * Function: procstat_dshm_used_size * - * * * Purpose: calculate the actual shared memory size used by procstat * * * * Parameters: base - [IN] the procstat shared memory segment * @@ -252,8 +248,6 @@ static size_t procstat_dshm_used_size(void *base) /****************************************************************************** * * - * Function: procstat_queries_num * - * * * Purpose: calculate the number of active queries * * * * Parameters: base - [IN] the procstat shared memory segment * @@ -279,8 +273,6 @@ static int procstat_queries_num(void *base) /****************************************************************************** * * - * Function: procstat_alloc * - * * * Purpose: allocates memory in the shared memory segment, * * calls exit() if segment is too small * * * @@ -312,8 +304,6 @@ static int procstat_alloc(void *base, size_t size) /****************************************************************************** * * - * Function: procstat_strdup * - * * * Purpose: allocates required memory in procstat memory segment and copies * * the specified string (calls exit() if segment is too small) * * * @@ -343,8 +333,6 @@ static size_t procstat_strdup(void *base, const char *str) /****************************************************************************** * * - * Function: procstat_reattach * - * * * Purpose: reattaches the procstat_ref to the shared memory segment if it * * was 'resized' (a new segment created and the old data copied) by * * other process. * @@ -367,8 +355,6 @@ static void procstat_reattach(void) /****************************************************************************** * * - * Function: procstat_copy_data * - * * * Purpose: copies procstat data to a new shared memory segment * * * * Parameters: dst - [OUT] the destination segment * @@ -416,8 +402,6 @@ static void procstat_copy_data(void *dst, size_t size_dst, const void *src) /****************************************************************************** * * - * Function: procstat_running * - * * * Purpose: checks if processor statistics collector is running (at least one * * one process statistics query has been made). * * * @@ -432,8 +416,6 @@ static int procstat_running(void) /****************************************************************************** * * - * Function: procstat_get_query * - * * * Purpose: get process statistics query based on process name, user name * * and command line * * * @@ -472,8 +454,6 @@ static zbx_procstat_query_t *procstat_get_query(void *base, const char *procname /****************************************************************************** * * - * Function: procstat_add * - * * * Purpose: adds a new query to process statistics collector * * * * Parameters: procname - [IN] the process name * @@ -555,8 +535,6 @@ static void procstat_add(const char *procname, const char *username, const char /****************************************************************************** * * - * Function: procstat_free_query_data * - * * * Purpose: frees the query data structure used to store queries locally * * * ******************************************************************************/ @@ -568,8 +546,6 @@ static void procstat_free_query_data(zbx_procstat_query_data_t *data) /****************************************************************************** * * - * Function: procstat_try_compress * - * * * Purpose: try to compress (remove inactive queries) the procstat shared * * memory segment once per day * * * @@ -605,8 +581,6 @@ static void procstat_try_compress(void *base) /****************************************************************************** * * - * Function: procstat_build_local_query_vector * - * * * Purpose: builds a local copy of the process cpu utilization queries and * * removes expired (not used during last 24 hours) queries * * * @@ -695,8 +669,6 @@ out: /****************************************************************************** * * - * Function: procstat_scan_query_pids * - * * * Purpose: for every query gets the pids of processes matching query * * attributes * * * @@ -725,8 +697,6 @@ static int procstat_scan_query_pids(zbx_vector_ptr_t *queries, const zbx_vector_ /****************************************************************************** * * - * Function: procstat_get_monitored_pids * - * * * Purpose: creates a list of unique pids that are monitored by current data * * gathering cycle * * * @@ -761,8 +731,6 @@ static void procstat_get_monitored_pids(zbx_vector_uint64_t *pids, const zbx_vec /****************************************************************************** * * - * Function: procstat_get_cpu_util_snapshot_for_pids * - * * * Purpose: gets cpu utilization data snapshot for the monitored processes * * * * Parameters: stats - [OUT] current reading of the per-pid cpu usage * @@ -791,8 +759,6 @@ static zbx_timespec_t procstat_get_cpu_util_snapshot_for_pids(zbx_procstat_util_ /****************************************************************************** * * - * Function: procstat_util_compare * - * * * Purpose: compare process utilization data by their pids * * * ******************************************************************************/ @@ -808,8 +774,6 @@ static int procstat_util_compare(const void *d1, const void *d2) /****************************************************************************** * * - * Function: procstat_calculate_cpu_util_for_queries * - * * * Purpose: calculates the cpu utilization for queries since the previous * * snapshot * * * @@ -868,8 +832,6 @@ static void procstat_calculate_cpu_util_for_queries(zbx_vector_ptr_t *queries, /****************************************************************************** * * - * Function: procstat_update_query_statistics * - * * * Purpose: updates cpu utilization and saves the new snapshot for queries in * * shared memory segment * * * @@ -950,8 +912,6 @@ static void procstat_update_query_statistics(zbx_vector_ptr_t *queries, int runi /****************************************************************************** * * - * Function: zbx_procstat_collector_started * - * * * Purpose: checks if processor statistics collector is enabled (the main * * collector has been initialized) * * * @@ -966,8 +926,6 @@ int zbx_procstat_collector_started(void) /****************************************************************************** * * - * Function: zbx_procstat_init * - * * * Purpose: initializes process statistics collector * * * * Return value: This function calls exit() on shared memory errors. * @@ -991,8 +949,6 @@ void zbx_procstat_init(void) /****************************************************************************** * * - * Function: zbx_procstat_destroy * - * * * Purpose: destroys process statistics collector * * * ******************************************************************************/ @@ -1012,8 +968,6 @@ void zbx_procstat_destroy(void) /****************************************************************************** * * - * Function: zbx_procstat_get_util * - * * * Purpose: gets process cpu utilization * * * * Parameters: procname - [IN] the process name, NULL - all * @@ -1103,8 +1057,6 @@ out: /****************************************************************************** * * - * Function: zbx_procstat_collect * - * * * Purpose: performs process statistics collection * * * ******************************************************************************/ |