Lines Matching refs:buckets
729 static void make_histogram(int buckets[], char *buf, size_t len, char *linebuf, in make_histogram() argument
786 buckets[i]++; in make_histogram()
797 static void display_histogram(int buckets[], bool use_nsec) in display_histogram() argument
806 total += buckets[i]; in display_histogram()
816 bar_len = buckets[0] * bar_total / total; in display_histogram()
818 0, 1, "us", buckets[0], bar_len, bar, bar_total - bar_len, ""); in display_histogram()
830 bar_len = buckets[i] * bar_total / total; in display_histogram()
832 start, stop, unit, buckets[i], bar_len, bar, in display_histogram()
836 bar_len = buckets[NUM_BUCKET - 1] * bar_total / total; in display_histogram()
838 1, "...", use_nsec ? "ms" : " s", buckets[NUM_BUCKET - 1], in display_histogram()
905 static int read_func_latency(struct perf_ftrace *ftrace, int buckets[]) in read_func_latency() argument
908 return perf_ftrace__latency_read_bpf(ftrace, buckets); in read_func_latency()
930 int buckets[NUM_BUCKET] = { }; in __cmd_latency() local
954 make_histogram(buckets, buf, n, line, ftrace->use_nsec); in __cmd_latency()
971 make_histogram(buckets, buf, n, line, ftrace->use_nsec); in __cmd_latency()
974 read_func_latency(ftrace, buckets); in __cmd_latency()
976 display_histogram(buckets, ftrace->use_nsec); in __cmd_latency()