Home
last modified time | relevance | path

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

/linux-6.1.9/tools/tracing/latency/
Dlatency-collector.c217 static struct sleep_table sleeptable; variable
745 sleeptable.size = size; in sleeptable_resize()
746 sleeptable.table = &probabilities[PROB_TABLE_MAX_SIZE - size]; in sleeptable_resize()
758 mutex_init(&sleeptable.mutex, NULL); in init_probabilities()
775 mutex_lock(&sleeptable.mutex); in table_get_probability()
776 if (diff >= (sleeptable.size - 1)) { in table_get_probability()
777 rval = sleeptable.table[sleeptable.size - 1]; in table_get_probability()
778 sleeptable_resize(sleeptable.size + 1, verbose_sizechange(), in table_get_probability()
781 rval = sleeptable.table[diff]; in table_get_probability()
783 mutex_unlock(&sleeptable.mutex); in table_get_probability()