Home
last modified time | relevance | path

Searched refs:res_sample (Results 1 – 6 of 6) sorted by relevance

/packages/modules/DnsResolver/
Dstats.h29 struct res_sample { struct
38 res_sample samples[MAXNSSAMPLES]; argument
63 void res_stats_set_sample(res_sample* sample, time_t now, int rcode, int rtt);
Dresolv_cache.h127 const res_sample& sample, int max_samples);
Dres_stats.cpp35 void res_stats_set_sample(res_sample* sample, time_t now, int rcode, int rtt) { in res_stats_set_sample()
Dres_cache.cpp1730 static void res_cache_add_stats_sample_locked(res_stats* stats, const res_sample& sample, in res_cache_add_stats_sample_locked()
1858 const res_sample& sample, int max_samples) { in resolv_cache_add_resolver_stats_sample()
Dres_send.cpp591 res_sample sample; in res_nsend()
/packages/modules/DnsResolver/tests/
Dresolv_cache_unit_test.cpp107 bool operator==(const res_sample& a, const res_sample& b) { in operator ==()
209 const res_sample& sample, int max_samples) { in cacheAddStats()
750 res_sample sample = {.at = time(NULL), .rtt = 100, .rcode = ns_r_noerror}; in TEST_F()
851 const res_sample sample1 = {.at = time(nullptr), .rtt = 100, .rcode = ns_r_noerror}; in TEST_F()
852 const res_sample sample2 = {.at = time(nullptr), .rtt = 200, .rcode = ns_r_noerror}; in TEST_F()
853 const res_sample sample3 = {.at = time(nullptr), .rtt = 300, .rcode = ns_r_noerror}; in TEST_F()