Home
last modified time | relevance | path

Searched refs:quantiles (Results 1 – 8 of 8) sorted by relevance

/external/ltp/testcases/realtime/lib/
Dlibstats.c206 int stats_quantiles_init(stats_quantiles_t * quantiles, int nines) in stats_quantiles_init() argument
211 quantiles->nines = nines; in stats_quantiles_init()
213 quantiles->quantiles = calloc(sizeof(long), (nines - 1)); in stats_quantiles_init()
214 if (!quantiles->quantiles) { in stats_quantiles_init()
220 int stats_quantiles_free(stats_quantiles_t * quantiles) in stats_quantiles_free() argument
222 free(quantiles->quantiles); in stats_quantiles_free()
227 stats_quantiles_t * quantiles) in stats_quantiles_calc() argument
235 (data->index + 1) < (long)exp10(quantiles->nines)) { in stats_quantiles_calc()
242 for (i = 2; i <= quantiles->nines; i++) { in stats_quantiles_calc()
244 quantiles->quantiles[i - 2] = data->records[index].y; in stats_quantiles_calc()
[all …]
/external/ltp/testcases/realtime/include/
Dlibstats.h72 long *quantiles; member
126 int stats_quantiles_init(stats_quantiles_t *quantiles, int nines);
131 int stats_quantiles_free(stats_quantiles_t *quantiles);
137 int stats_quantiles_calc(stats_container_t *data, stats_quantiles_t *quantiles);
142 void stats_quantiles_print(stats_quantiles_t *quantiles);
/external/ltp/testcases/realtime/func/periodic_cpu_load/
Dperiodic_cpu_load.c68 stats_quantiles_t quantiles[THREADS_PER_GROUP * NUM_GROUPS]; variable
199 stats_quantiles_init(&quantiles[i], (int)log10(iterations)); in main()
227 stats_quantiles_calc(&dat[i], &quantiles[i]); in main()
228 stats_quantiles_print(&quantiles[i]); in main()
243 stats_quantiles_free(&quantiles[i]); in main()
Dperiodic_cpu_load_single.c90 stats_quantiles_t quantiles; in periodic_thread() local
102 stats_quantiles_init(&quantiles, (int)log10(iterations)); in periodic_thread()
155 stats_quantiles_calc(&dat, &quantiles); in periodic_thread()
156 stats_quantiles_print(&quantiles); in periodic_thread()
/external/ltp/testcases/realtime/func/sched_latency/
Dsched_latency.c76 stats_quantiles_t quantiles; variable
234 stats_quantiles_calc(&dat, &quantiles); in periodic_thread()
235 stats_quantiles_print(&quantiles); in periodic_thread()
283 if (stats_quantiles_init(&quantiles, (int)log10(iterations))) { in main()
301 stats_quantiles_free(&quantiles); in main()
/external/ltp/testcases/realtime/func/hrtimer-prio/
Dhrtimer-prio.c181 stats_quantiles_t quantiles; in main() local
190 if (stats_quantiles_init(&quantiles, (int)log10(iterations))) { in main()
224 stats_quantiles_calc(&dat, &quantiles); in main()
225 stats_quantiles_print(&quantiles); in main()
/external/ltp/testcases/realtime/func/gtod_latency/
Dgtod_latency.c235 stats_quantiles_t quantiles; in main() local
253 stats_quantiles_init(&quantiles, (int)log10(iterations)); in main()
349 stats_quantiles_calc(&dat, &quantiles); in main()
350 stats_quantiles_print(&quantiles); in main()
354 stats_quantiles_free(&quantiles); in main()
/external/ltp/testcases/realtime/func/pthread_kill_latency/
Dpthread_kill_latency.c121 stats_quantiles_t quantiles; in signal_receiving_thread() local
126 stats_quantiles_init(&quantiles, (int)log10(ITERATIONS)); in signal_receiving_thread()
216 stats_quantiles_calc(&dat, &quantiles); in signal_receiving_thread()
217 stats_quantiles_print(&quantiles); in signal_receiving_thread()