Searched refs:pfs (Results 1 – 2 of 2) sorted by relevance
38 PREFIX_STATS *pfs; in stats_prefix_find() local58 for (pfs = prefix_stats[hashval]; NULL != pfs; pfs = pfs->next) { in stats_prefix_find()60 return pfs; in stats_prefix_find()64 if (NULL == pfs) { in stats_prefix_find()72 free(pfs); in stats_prefix_find()86 return pfs; in stats_prefix_find()90 PREFIX_STATS *pfs; in stats_prefix_record_get() local94 if (NULL != pfs) { in stats_prefix_record_get()154 for (pfs = prefix_stats[i]; NULL != pfs; pfs = pfs->next) { in stats_prefix_dump()156 pfs->prefix, pfs->num_gets, pfs->num_hits, in stats_prefix_dump()[all …]
249 PREFIX_STATS *pfs; in test_stats_prefix_record_get() local254 if (pfs == NULL) { in test_stats_prefix_record_get()257 assert(1 == pfs->num_gets); in test_stats_prefix_record_get()258 assert(0 == pfs->num_hits); in test_stats_prefix_record_get()260 assert(2 == pfs->num_gets); in test_stats_prefix_record_get()261 assert(0 == pfs->num_hits); in test_stats_prefix_record_get()263 assert(3 == pfs->num_gets); in test_stats_prefix_record_get()272 PREFIX_STATS *pfs; in test_stats_prefix_record_delete() local277 if (pfs == NULL) { in test_stats_prefix_record_delete()290 PREFIX_STATS *pfs; in test_stats_prefix_record_set() local[all …]