Lines Matching refs:buckets
683 static void make_histogram(int buckets[], char *buf, size_t len, char *linebuf, in make_histogram() argument
740 buckets[i]++; in make_histogram()
751 static void display_histogram(int buckets[], bool use_nsec) in display_histogram() argument
760 total += buckets[i]; in display_histogram()
770 bar_len = buckets[0] * bar_total / total; in display_histogram()
772 0, 1, "us", buckets[0], bar_len, bar, bar_total - bar_len, ""); in display_histogram()
784 bar_len = buckets[i] * bar_total / total; in display_histogram()
786 start, stop, unit, buckets[i], bar_len, bar, in display_histogram()
790 bar_len = buckets[NUM_BUCKET - 1] * bar_total / total; in display_histogram()
792 1, "...", use_nsec ? "ms" : " s", buckets[NUM_BUCKET - 1], in display_histogram()
859 static int read_func_latency(struct perf_ftrace *ftrace, int buckets[]) in read_func_latency() argument
862 return perf_ftrace__latency_read_bpf(ftrace, buckets); in read_func_latency()
884 int buckets[NUM_BUCKET] = { }; in __cmd_latency() local
920 make_histogram(buckets, buf, n, line, ftrace->use_nsec); in __cmd_latency()
937 make_histogram(buckets, buf, n, line, ftrace->use_nsec); in __cmd_latency()
940 read_func_latency(ftrace, buckets); in __cmd_latency()
942 display_histogram(buckets, ftrace->use_nsec); in __cmd_latency()