Lines Matching refs:lh
24 void OPENSSL_LH_stats(const OPENSSL_LHASH *lh, FILE *fp) in OPENSSL_LH_stats() argument
32 OPENSSL_LH_stats_bio(lh, bp); in OPENSSL_LH_stats()
36 void OPENSSL_LH_node_stats(const OPENSSL_LHASH *lh, FILE *fp) in OPENSSL_LH_node_stats() argument
44 OPENSSL_LH_node_stats_bio(lh, bp); in OPENSSL_LH_node_stats()
48 void OPENSSL_LH_node_usage_stats(const OPENSSL_LHASH *lh, FILE *fp) in OPENSSL_LH_node_usage_stats() argument
56 OPENSSL_LH_node_usage_stats_bio(lh, bp); in OPENSSL_LH_node_usage_stats()
62 void OPENSSL_LH_stats_bio(const OPENSSL_LHASH *lh, BIO *out) in OPENSSL_LH_stats_bio() argument
64 BIO_printf(out, "num_items = %lu\n", lh->num_items); in OPENSSL_LH_stats_bio()
65 BIO_printf(out, "num_nodes = %u\n", lh->num_nodes); in OPENSSL_LH_stats_bio()
66 BIO_printf(out, "num_alloc_nodes = %u\n", lh->num_alloc_nodes); in OPENSSL_LH_stats_bio()
67 BIO_printf(out, "num_expands = %lu\n", lh->num_expands); in OPENSSL_LH_stats_bio()
68 BIO_printf(out, "num_expand_reallocs = %lu\n", lh->num_expand_reallocs); in OPENSSL_LH_stats_bio()
69 BIO_printf(out, "num_contracts = %lu\n", lh->num_contracts); in OPENSSL_LH_stats_bio()
70 BIO_printf(out, "num_contract_reallocs = %lu\n", lh->num_contract_reallocs); in OPENSSL_LH_stats_bio()
71 BIO_printf(out, "num_hash_calls = %lu\n", lh->num_hash_calls); in OPENSSL_LH_stats_bio()
72 BIO_printf(out, "num_comp_calls = %lu\n", lh->num_comp_calls); in OPENSSL_LH_stats_bio()
73 BIO_printf(out, "num_insert = %lu\n", lh->num_insert); in OPENSSL_LH_stats_bio()
74 BIO_printf(out, "num_replace = %lu\n", lh->num_replace); in OPENSSL_LH_stats_bio()
75 BIO_printf(out, "num_delete = %lu\n", lh->num_delete); in OPENSSL_LH_stats_bio()
76 BIO_printf(out, "num_no_delete = %lu\n", lh->num_no_delete); in OPENSSL_LH_stats_bio()
77 BIO_printf(out, "num_retrieve = %lu\n", lh->num_retrieve); in OPENSSL_LH_stats_bio()
78 BIO_printf(out, "num_retrieve_miss = %lu\n", lh->num_retrieve_miss); in OPENSSL_LH_stats_bio()
79 BIO_printf(out, "num_hash_comps = %lu\n", lh->num_hash_comps); in OPENSSL_LH_stats_bio()
82 void OPENSSL_LH_node_stats_bio(const OPENSSL_LHASH *lh, BIO *out) in OPENSSL_LH_node_stats_bio() argument
87 for (i = 0; i < lh->num_nodes; i++) { in OPENSSL_LH_node_stats_bio()
88 for (n = lh->b[i], num = 0; n != NULL; n = n->next) in OPENSSL_LH_node_stats_bio()
94 void OPENSSL_LH_node_usage_stats_bio(const OPENSSL_LHASH *lh, BIO *out) in OPENSSL_LH_node_usage_stats_bio() argument
101 for (i = 0; i < lh->num_nodes; i++) { in OPENSSL_LH_node_usage_stats_bio()
102 for (n = lh->b[i], num = 0; n != NULL; n = n->next) in OPENSSL_LH_node_usage_stats_bio()
109 BIO_printf(out, "%lu nodes used out of %u\n", n_used, lh->num_nodes); in OPENSSL_LH_node_usage_stats_bio()
114 (int)(total / lh->num_nodes), in OPENSSL_LH_node_usage_stats_bio()
115 (int)((total % lh->num_nodes) * 100 / lh->num_nodes), in OPENSSL_LH_node_usage_stats_bio()