Home
last modified time | relevance | path

Searched refs:percent (Results 1 – 25 of 52) sorted by relevance

123

/tools/perf/util/
A Dcolor.c96 const char *get_percent_color(double percent) in get_percent_color() argument
105 if (fabs(percent) >= MIN_RED) in get_percent_color()
108 if (fabs(percent) > MIN_GREEN) in get_percent_color()
119 color = get_percent_color(percent); in percent_color_fprintf()
120 r = color_fprintf(fp, color, fmt, percent); in percent_color_fprintf()
134 double percent; in percent_color_snprintf() local
137 percent = va_arg(args, double); in percent_color_snprintf()
139 return value_color_snprintf(bf, size, fmt, percent); in percent_color_snprintf()
146 double percent; in percent_color_len_snprintf() local
151 percent = va_arg(args, double); in percent_color_len_snprintf()
[all …]
A Dcolor.h42 int percent_color_fprintf(FILE *fp, const char *fmt, double percent);
43 const char *get_percent_color(double percent);
A Dannotate.c795 double percent; in annotation_line__print() local
800 if (percent > max_percent) in annotation_line__print()
801 max_percent = percent; in annotation_line__print()
831 double percent; in annotation_line__print() local
1176 percent_max = percent; in print_summary()
1624 double percent; in annotation__calc_lines() local
1630 percent_max = percent; in annotation__calc_lines()
1734 double percent; in annotation_line__max_percent() local
1739 if (percent > percent_max) in annotation_line__max_percent()
1740 percent_max = percent; in annotation_line__max_percent()
[all …]
A Dannotate.h100 double percent[PERCENT_MAX]; member
150 return which < PERCENT_MAX ? data->percent[which] : -1; in annotation_data__percent()
196 void (*set_percent_color)(void *obj, double percent, bool current);
/tools/testing/selftests/lkdtm/
A Dstack-entropy.sh29 percent=$(( 100 * $i / $samples ))
30 if [ "$percent" -ne "$report" ]; then
31 /bin/echo -en "$percent%\r"
32 report="$percent"
/tools/perf/tests/shell/
A Dannotate.sh56 …perf annotate --no-demangle -i "${perfdata}" --stdio --percent-limit 10 2> /dev/null > "${perfout}"
58 …perf annotate --no-demangle -i - --stdio 2> /dev/null --percent-limit 10 < "${perfdata}" > "${perf…
96 …perf annotate --no-demangle -i "${perfdata}" --percent-limit 10 --objdump=objdump 2> /dev/null > "…
98 …perf annotate --no-demangle -i - "${testsym}" --percent-limit 10 --objdump=objdump 2> /dev/null < …
A Drecord_offcpu.sh60 if ! perf report -i ${perfdata} -q --percent-limit=90 | grep -E -q sleep
87 if ! perf report -i ${perfdata} -s comm -q -n -t ';' --percent-limit=90 | \
/tools/power/cpupower/utils/idle_monitor/
A Dhsw_ext_idle.c28 static int hsw_ext_get_count_percent(unsigned int self_id, double *percent,
88 static int hsw_ext_get_count_percent(unsigned int id, double *percent, in hsw_ext_get_count_percent() argument
91 *percent = 0.0; in hsw_ext_get_count_percent()
96 *percent = (100.0 * in hsw_ext_get_count_percent()
108 *percent, cpu); in hsw_ext_get_count_percent()
A Dsnb_idle.c26 static int snb_get_count_percent(unsigned int self_id, double *percent,
86 static int snb_get_count_percent(unsigned int id, double *percent, in snb_get_count_percent() argument
89 *percent = 0.0; in snb_get_count_percent()
94 *percent = (100.0 * in snb_get_count_percent()
106 *percent, cpu); in snb_get_count_percent()
A Dcpuidle_sysfs.c25 static int cpuidle_get_count_percent(unsigned int id, double *percent, in cpuidle_get_count_percent() argument
31 cpuidle_cstates[id].name, timediff, *percent, cpu); in cpuidle_get_count_percent()
34 *percent = 0.0; in cpuidle_get_count_percent()
36 *percent = ((100.0 * statediff) / timediff); in cpuidle_get_count_percent()
39 cpuidle_cstates[id].name, timediff, statediff, *percent, cpu); in cpuidle_get_count_percent()
A Dnhm_idle.c29 static int nhm_get_count_percent(unsigned int self_id, double *percent,
101 static int nhm_get_count_percent(unsigned int id, double *percent, in nhm_get_count_percent() argument
104 *percent = 0.0; in nhm_get_count_percent()
109 *percent = (100.0 * in nhm_get_count_percent()
121 *percent, cpu); in nhm_get_count_percent()
A Dmperf_monitor.c32 static int mperf_get_count_percent(unsigned int self_id, double *percent,
156 static int mperf_get_count_percent(unsigned int id, double *percent, in mperf_get_count_percent() argument
173 *percent = 100.0 * mperf_diff / tsc_diff; in mperf_get_count_percent()
178 *percent = 100.0 * mperf_diff / timediff; in mperf_get_count_percent()
185 *percent = 100.0 - *percent; in mperf_get_count_percent()
189 dprint("%s: %f\n", mperf_cstates[id].name, *percent); in mperf_get_count_percent()
A Damd_fam14h_idle.c45 static int fam14h_get_count_percent(unsigned int self_id, double *percent,
207 static int fam14h_get_count_percent(unsigned int id, double *percent, in fam14h_get_count_percent() argument
218 *percent = 0.0; in fam14h_get_count_percent()
220 *percent = 100.0 * diff / timediff / 12.5; in fam14h_get_count_percent()
223 timediff, diff * 10 / 125, *percent); in fam14h_get_count_percent()
A Dcpupower-monitor.c154 double percent; in print_results() local
188 ret = s.get_count_percent(s.id, &percent, in print_results()
192 else if (percent >= 100.0) in print_results()
193 printf("%6.1f", percent); in print_results()
195 printf("%6.2f", percent); in print_results()
A Dcpupower-monitor.h46 int (*get_count_percent)(unsigned int self_id, double *percent,
/tools/perf/ui/gtk/
A Dbrowser.c36 const char *perf_gtk__get_percent_color(double percent) in perf_gtk__get_percent_color() argument
38 if (percent >= MIN_RED) in perf_gtk__get_percent_color()
40 if (percent >= MIN_GREEN) in perf_gtk__get_percent_color()
A Dhists.c21 double percent; in __percent_color_snprintf() local
28 percent = va_arg(args, double); in __percent_color_snprintf()
31 markup = perf_gtk__get_percent_color(percent); in __percent_color_snprintf()
35 ret += scnprintf(buf + ret, size - ret, fmt, len, percent); in __percent_color_snprintf()
362 float percent; in perf_gtk__show_hists() local
367 percent = hist_entry__get_percent_limit(h); in perf_gtk__show_hists()
368 if (percent < min_pcnt) in perf_gtk__show_hists()
422 float percent; in perf_gtk__add_hierarchy_entries() local
429 percent = hist_entry__get_percent_limit(he); in perf_gtk__add_hierarchy_entries()
430 if (percent < min_pcnt) in perf_gtk__add_hierarchy_entries()
A Dannotate.c35 double percent = 0.0; in perf_gtk__get_percent() local
54 percent = 100.0 * nr_samples / symhist->nr_samples; in perf_gtk__get_percent()
56 markup = perf_gtk__get_percent_color(percent); in perf_gtk__get_percent()
59 ret += scnprintf(buf + ret, size - ret, "%6.2f%%", percent); in perf_gtk__get_percent()
A Dgtk.h43 const char *perf_gtk__get_percent_color(double percent);
/tools/testing/fault-injection/
A Dfailcmd.sh24 -p percent
25 --probability=percent
26 likelihood of failure injection, in percent.
/tools/perf/Documentation/
A Dperfconfig.example35 percent-limit = 0
A Dperf-annotate.txt144 --percent-type::
145 Set annotation percent type from following choices:
153 --percent-limit::
154 Do not show functions which have an overhead under that percent on
/tools/perf/ui/browsers/
A Dannotate.c75 static void annotate_browser__set_percent_color(void *browser, double percent, bool current) in annotate_browser__set_percent_color() argument
77 ui_browser__set_percent_color(browser, percent, current); in annotate_browser__set_percent_color()
240 if (a->data[i].percent[percent_type] == b->data[i].percent[percent_type]) in disasm__cmp()
242 return a->data[i].percent[percent_type] - in disasm__cmp()
243 b->data[i].percent[percent_type]; in disasm__cmp()
328 double percent; in annotate_browser__calc_percent() local
330 percent = annotation_data__percent(&pos->al.data[i], in annotate_browser__calc_percent()
333 if (max_percent < percent) in annotate_browser__calc_percent()
334 max_percent = percent; in annotate_browser__calc_percent()
A Dhists.c288 float percent; in hierarchy_count_rows() local
568 float percent; in hierarchy_set_folding() local
607 double percent; in __hist_browser__set_folding() local
618 percent = hist_entry__get_percent_limit(he); in __hist_browser__set_folding()
1214 double percent; in __hpp__slsmg_color_printf() local
1218 percent = va_arg(args, double); in __hpp__slsmg_color_printf()
1871 float percent; in hist_browser__refresh() local
1884 if (percent < hb->min_pcnt) in hist_browser__refresh()
1915 if (!h->filtered && percent >= min_pcnt) in hists__filter_entries()
1938 if (!h->filtered && percent >= min_pcnt) in hists__filter_prev_entries()
[all …]
/tools/testing/selftests/kvm/include/
A Dtest_util.h101 uint8_t percent) in __guest_random_bool() argument
103 return (guest_random_u32(state) % 100) < percent; in __guest_random_bool()

Completed in 50 milliseconds

123