Name

statgrab, libstatgrab — get system statistics

Synopsis

#include <statgrab.h>
sg_error fsfuncsg_init(ignore_init_errors); 
int ignore_init_errors;
 
sg_error fsfuncsg_shutdown(); 
 
sg_error fsfuncsg_drop_privileges(); 
 
sg_error fsfuncsg_get_error(); 
 
const char *fsfuncsg_get_error_arg(); 
 
int fsfuncsg_get_error_errno(); 
 
const char *fsfuncsg_str_error(code); 
sg_error code;
 
sg_error fsfuncsg_get_error_details(err_details); 
sg_error_details *err_details;
 
char *fsfuncsg_strperror(buf,  
 err_details); 
char **buf;
const sg_error_details * const err_details;
 
size_t fsfuncsg_get_nelements(data); 
const void *data;
 
sg_error fsfuncsg_free_stats_buf(data); 
void *data;
 
sg_error fsfuncsg_lock_mutex(mutex_name); 
const char *mutex_name;
 
sg_error fsfuncsg_unlock_mutex(mutex_name); 
const char *mutex_name;
 
sg_cpu_percents *fsfuncsg_get_cpu_percents(); 
 
sg_cpu_percents *fsfuncsg_get_cpu_percents_of(cps); 
sg_cpu_percent_source cps;
 
sg_cpu_percents *fsfuncsg_get_cpu_percents_r(whereof); 
const sg_cpu_stats *whereof;
 
void fsfuncsg_free_cpu_percents(data); 
sg_cpu_percents *data;
 
sg_cpu_stats *fsfuncsg_get_cpu_stats(); 
 
sg_cpu_stats *fsfuncsg_get_cpu_stats_diff(); 
 
sg_cpu_stats *fsfuncsg_get_cpu_stats_r(); 
 
sg_cpu_stats *fsfuncsg_get_cpu_stats_diff_between(cpu_nowcpu_last); 
const sg_cpu_stats *cpu_now, const sg_cpu_stats *cpu_last;
 
sg_error fsfuncsg_free_cpu_stats(data); 
sg_cpu_stats *data;
 
sg_disk_io_stats *fsfuncsg_get_disk_io_stats(entries); 
size_t *entries;
 
sg_disk_io_stats *fsfuncsg_get_disk_io_stats_r(entries); 
size_t *entries;
 
sg_disk_io_stats *fsfuncsg_get_disk_io_stats_diff(entries); 
size_t *entries;
 
sg_disk_io_stats *fsfuncsg_get_disk_io_stats_diff_between(cur,  
 last,  
 entries); 
const sg_disk_io_stats *cur;
const sg_disk_io_stats *last;
size_t *entries;
 
sg_error fsfuncsg_free_disk_io_stats(data); 
sg_disk_io_stats *data;
 
sg_fs_stats *fsfuncsg_get_fs_stats(entries); 
size_t *entries;
 
sg_fs_stats *fsfuncsg_get_fs_stats_r(entries); 
size_t *entries;
 
sg_error fsfuncsg_free_fs_stats(data); 
sg_fs_stats *data;
 
const char **fsfuncsg_get_valid_filesystems(entries); 
size_t *entries;
 
sg_error fsfuncsg_set_valid_filesystems(valid_fs); 
const char *valid_fs[];
 
sg_host_info *fsfuncsg_get_host_info(); 
 
sg_host_info *fsfuncsg_get_host_info_r(); 
 
sg_error fsfuncsg_free_host_info(data); 
sg_host_info *data;
 
sg_load_stats *fsfuncsg_get_load_stats(); 
 
sg_load_stats *fsfuncsg_get_load_stats(); 
 
sg_error fsfuncsg_free_load_stats(data); 
sg_load_stats *data;
 
sg_mem_stats *fsfuncsg_get_mem_stats(); 
 
sg_mem_stats *fsfuncsg_get_mem_stats_r(); 
 
sg_error fsfuncsg_free_mem_stats(data); 
sg_mem_stats *data;
 
sg_swap_stats *fsfuncsg_get_swap_stats(); 
 
sg_swap_stats *fsfuncsg_get_swap_stats_r(); 
 
sg_error fsfuncsg_free_swap_stats(data); 
sg_swap_stats *data;
 
sg_network_iface_stats *fsfuncsg_get_network_iface_stats(entries); 
size_t *entries;
 
sg_network_iface_stats *fsfuncsg_get_network_iface_stats_r(entries); 
size_t *entries;
 
sg_error fsfuncsg_free_network_iface_stats(data); 
sg_network_iface_stats *data;
 
sg_network_io_stats *fsfuncsg_get_network_io_stats(entries); 
size_t *entries;
 
sg_network_io_stats *fsfuncsg_get_network_io_stats_r(entries); 
size_t *entries;
 
sg_network_io_stats *fsfuncsg_get_network_io_stats_diff(entries); 
size_t *entries;
 
sg_network_io_stats *fsfuncsg_get_network_io_stats_diff_between(cur,  
 last,  
 entries); 
const sg_network_io_stats *cur;
const sg_network_io_stats *last;
size_t *entries;
 
sg_error fsfuncsg_free_network_io_stats(data); 
sg_network_iface_stats *data;
 
sg_page_stats *fsfuncsg_get_page_stats(); 
 
sg_page_stats *fsfuncsg_get_page_stats_r(); 
 
sg_page_stats *fsfuncsg_get_page_stats_diff(); 
 
sg_page_stats *fsfuncsg_get_page_stats_diff_between(cur,  
 last); 
const sg_page_stats *cur;
const sg_page_stats *last;
 
sg_error fsfuncsg_free_page_stats(data); 
sg_page_stats *data;
 
sg_process_stats *fsfuncsg_get_process_stats(entries); 
size_t *entries;
 
sg_process_stats *fsfuncsg_get_process_stats_r(entries); 
size_t *entries;
 
sg_error fsfuncsg_free_process_stats(data); 
sg_process_stats *data;
 
sg_process_count *fsfuncsg_get_process_count(); 
 
sg_process_count *fsfuncsg_get_process_count_of(pcs); 
sg_process_count_source pcs;
 
sg_process_count *fsfuncsg_get_process_count_r(whereof); 
sg_process_stats const *whereof;
 
sg_error fsfuncsg_free_process_count(data); 
sg_process_count *data;
 
sg_user_stats *fsfuncsg_get_user_stats(entries); 
size_t *entries;
 
sg_user_stats *fsfuncsg_get_user_stats_r(entries); 
size_t *entries;
 
sg_error fsfuncsg_free_user_stats(data); 
sg_user_stats *data;