Lines Matching refs:n_histogram_entries
50 unsigned n_histogram_entries; member
254 unsigned n_histogram_entries, in dm_stats_create() argument
291 histogram_alloc_size = (n_histogram_entries + 1) * (size_t)n_entries * sizeof(unsigned long long); in dm_stats_create()
292 …if (histogram_alloc_size / (n_histogram_entries + 1) != (size_t)n_entries * sizeof(unsigned long l… in dm_stats_create()
312 s->n_histogram_entries = n_histogram_entries; in dm_stats_create()
314 s->n_histogram_entries * sizeof(unsigned long long), GFP_KERNEL); in dm_stats_create()
337 if (s->n_histogram_entries) { in dm_stats_create()
346 hi += s->n_histogram_entries + 1; in dm_stats_create()
358 if (s->n_histogram_entries) { in dm_stats_create()
367 hi += s->n_histogram_entries + 1; in dm_stats_create()
496 if (s->n_histogram_entries) { in dm_stats_list()
499 for (i = 0; i < s->n_histogram_entries; i++) { in dm_stats_list()
593 if (s->n_histogram_entries) { in dm_stat_for_entry()
594 unsigned lo = 0, hi = s->n_histogram_entries + 1; in dm_stat_for_entry()
725 if (s->n_histogram_entries) in __dm_stat_init_temporary_percpu_totals()
726 memset(shared->tmp.histogram, 0, (s->n_histogram_entries + 1) * sizeof(unsigned long long)); in __dm_stat_init_temporary_percpu_totals()
742 if (s->n_histogram_entries) { in __dm_stat_init_temporary_percpu_totals()
744 for (i = 0; i < s->n_histogram_entries + 1; i++) in __dm_stat_init_temporary_percpu_totals()
776 if (s->n_histogram_entries) { in __dm_stat_clear()
778 for (i = 0; i < s->n_histogram_entries + 1; i++) { in __dm_stat_clear()
891 if (s->n_histogram_entries) { in dm_stats_print()
893 for (i = 0; i < s->n_histogram_entries + 1; i++) { in dm_stats_print()
941 static int parse_histogram(const char *h, unsigned *n_histogram_entries, in parse_histogram() argument
948 *n_histogram_entries = 1; in parse_histogram()
951 (*n_histogram_entries)++; in parse_histogram()
953 *histogram_boundaries = kmalloc_array(*n_histogram_entries, in parse_histogram()
991 unsigned n_histogram_entries = 0; in message_stats_create() local
1047 if (n_histogram_entries) in message_stats_create()
1049 if ((r = parse_histogram(a + 10, &n_histogram_entries, &histogram_boundaries))) in message_stats_create()
1085 n_histogram_entries, histogram_boundaries, program_id, aux_data, in message_stats_create()