diff options
Diffstat (limited to 'util/shm_side/shm_main.h')
-rw-r--r-- | util/shm_side/shm_main.h | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/util/shm_side/shm_main.h b/util/shm_side/shm_main.h index 8e4f4d051026..76c60e484860 100644 --- a/util/shm_side/shm_main.h +++ b/util/shm_side/shm_main.h @@ -44,26 +44,8 @@ struct daemon; struct worker; -/** Some global statistics that are not in struct stats_info, - * this struct is shared on a shm segment */ -struct shm_stat_info { - - int num_threads; - - struct { - struct timeval now; - struct timeval up; - struct timeval elapsed; - } time; - - struct { - size_t msg; - size_t rrset; - size_t val; - size_t iter; - size_t subnet; - } mem; -}; +/* get struct ub_shm_stat_info */ +#include "libunbound/unbound.h" /** * The SHM info. @@ -71,9 +53,9 @@ struct shm_stat_info { struct shm_main_info { /** stats_info array, shared memory segment. * [0] is totals, [1..thread_num] are per-thread stats */ - struct stats_info* ptr_arr; + struct ub_stats_info* ptr_arr; /** the global stats block, shared memory segment */ - struct shm_stat_info* ptr_ctl; + struct ub_shm_stat_info* ptr_ctl; int key; int id_ctl; int id_arr; |