Lines Matching refs:uint64_t
80 void counters_clean_up_values(const uint64_t* values_in, uint64_t* values_out, size_t* count_out) { in counters_clean_up_values()
90 qsort(values_out, *count_out, sizeof(uint64_t), [](const void* a, const void* b) { in counters_clean_up_values()
91 return (*((uint64_t*)a) > *((uint64_t*)b)) - (*((uint64_t*)a) < *((uint64_t*)b)); in counters_clean_up_values()
95 static constexpr uint64_t DOT8_SHIFT = 8;
102 uint64_t counters_get_percentile(const uint64_t* values, size_t count, uint64_t percentage_dot8) { in counters_get_percentile()
105 uint64_t target_dot8 = (count - 1) * percentage_dot8; in counters_get_percentile()
106 uint64_t low_index = target_dot8 >> DOT8_SHIFT; in counters_get_percentile()
107 uint64_t high_index = low_index + 1; in counters_get_percentile()
108 uint64_t fraction_dot8 = target_dot8 & 0xff; in counters_get_percentile()
110 uint64_t delta = values[high_index] - values[low_index]; in counters_get_percentile()
114 bool counters_has_outlier(const uint64_t* values_in) { in counters_has_outlier()
115 uint64_t values[SMP_MAX_CPUS]; in counters_has_outlier()
128 const uint64_t q1_dot8 = counters_get_percentile(values, count, /*0.25*/ 64); in counters_has_outlier()
129 const uint64_t q3_dot8 = counters_get_percentile(values, count, /*0.75*/ 192); in counters_has_outlier()
130 const uint64_t k_dot8 = /*1.5*/ 384; in counters_has_outlier()
131 const uint64_t q_delta_dot8 = q3_dot8 - q1_dot8; in counters_has_outlier()
150 uint64_t summary = 0; in dump_counter()
151 uint64_t values[SMP_MAX_CPUS]; in dump_counter()