Home
last modified time | relevance | path

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

12

/tools/perf/util/
Dcolor.c124 const char *get_percent_color(double percent) in get_percent_color() argument
133 if (fabs(percent) >= MIN_RED) in get_percent_color()
136 if (fabs(percent) > MIN_GREEN) in get_percent_color()
142 int percent_color_fprintf(FILE *fp, const char *fmt, double percent) in percent_color_fprintf() argument
147 color = get_percent_color(percent); in percent_color_fprintf()
148 r = color_fprintf(fp, color, fmt, percent); in percent_color_fprintf()
162 double percent; in percent_color_snprintf() local
165 percent = va_arg(args, double); in percent_color_snprintf()
167 return value_color_snprintf(bf, size, fmt, percent); in percent_color_snprintf()
174 double percent; in percent_color_len_snprintf() local
[all …]
Dcolor.h46 int percent_color_fprintf(FILE *fp, const char *fmt, double percent);
47 const char *get_percent_color(double percent);
Dannotate.c1374 double percent; in annotation_line__print() local
1376 percent = annotation_data__percent(&al->data[i], in annotation_line__print()
1379 if (percent > max_percent) in annotation_line__print()
1380 max_percent = percent; in annotation_line__print()
1420 double percent; in annotation_line__print() local
1422 percent = annotation_data__percent(data, percent_type); in annotation_line__print()
1423 color = get_percent_color(percent); in annotation_line__print()
1432 color_fprintf(stdout, color, " %7.2f", percent); in annotation_line__print()
2116 data->percent[PERCENT_HITS_LOCAL] = 100.0 * hits / sym_hist->nr_samples; in calc_percent()
2120 data->percent[PERCENT_HITS_GLOBAL] = 100.0 * hits / hists->stats.nr_non_filtered_samples; in calc_percent()
[all …]
Dannotate.h128 double percent[PERCENT_MAX]; member
162 return which < PERCENT_MAX ? data->percent[which] : -1; in annotation_data__percent()
209 void (*set_percent_color)(void *obj, double percent, bool current);
/tools/power/cpupower/utils/idle_monitor/
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()
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()
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()
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()
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()
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()
Dcpupower-monitor.c144 double percent; in print_results() local
173 ret = s.get_count_percent(s.id, &percent, in print_results()
177 else if (percent >= 100.0) in print_results()
178 printf("%6.1f", percent); in print_results()
180 printf("%6.2f", percent); in print_results()
Dcpupower-monitor.h46 int (*get_count_percent)(unsigned int self_id, double *percent,
/tools/perf/ui/gtk/
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()
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()
Dannotate.c32 double percent = 0.0; in perf_gtk__get_percent() local
45 percent = 100.0 * symhist->addr[dl->al.offset].nr_samples / symhist->nr_samples; in perf_gtk__get_percent()
47 markup = perf_gtk__get_percent_color(percent); in perf_gtk__get_percent()
50 ret += scnprintf(buf + ret, size - ret, "%6.2f%%", percent); in perf_gtk__get_percent()
Dgtk.h43 const char *perf_gtk__get_percent_color(double percent);
/tools/testing/fault-injection/
Dfailcmd.sh24 -p percent
25 --probability=percent
26 likelihood of failure injection, in percent.
/tools/perf/ui/browsers/
Dannotate.c23 double percent; member
82 static void annotate_browser__set_percent_color(void *browser, double percent, bool current) in annotate_browser__set_percent_color() argument
84 ui_browser__set_percent_color(browser, percent, current); in annotate_browser__set_percent_color()
236 if (a->data[i].percent[percent_type] == b->data[i].percent[percent_type]) in disasm__cmp()
238 return a->data[i].percent[percent_type] - in disasm__cmp()
239 b->data[i].percent[percent_type]; in disasm__cmp()
326 double percent; in annotate_browser__calc_percent() local
328 percent = annotation_data__percent(&pos->al.data[i], in annotate_browser__calc_percent()
331 if (max_percent < percent) in annotate_browser__calc_percent()
332 max_percent = percent; in annotate_browser__calc_percent()
Dhists.c287 float percent; in hierarchy_count_rows() local
290 percent = hist_entry__get_percent_limit(child); in hierarchy_count_rows()
292 if (!child->filtered && percent >= hb->min_pcnt) { in hierarchy_count_rows()
567 float percent; in hierarchy_set_folding() local
574 percent = hist_entry__get_percent_limit(child); in hierarchy_set_folding()
575 if (!child->filtered && percent >= hb->min_pcnt) in hierarchy_set_folding()
606 double percent; in __hist_browser__set_folding() local
617 percent = hist_entry__get_percent_limit(he); in __hist_browser__set_folding()
618 if (he->filtered || percent < browser->min_pcnt) in __hist_browser__set_folding()
1212 double percent; in __hpp__slsmg_color_printf() local
[all …]
/tools/perf/Documentation/
Dperfconfig.example35 percent-limit = 0
Dperf-annotate.txt127 --percent-type::
128 Set annotation percent type from following choices:
Dperf-report.txt222 Display call chains using type, min percent threshold, print limit,
235 threshold is a percentage value which specifies a minimum percent to be
258 - percent: display overhead percent (default)
400 --percent-limit::
401 Do not show entries which have an overhead under that percent.
402 (Default: 0). Note that this option also sets the percent limit (threshold)
433 Also support time percent with multiple time ranges. Time string is
538 --percent-type::
539 Set annotation percent type from following choices:
/tools/perf/ui/
Dbrowser.c21 double percent, bool current) in ui_browser__percent_color() argument
25 if (percent >= MIN_RED) in ui_browser__percent_color()
27 if (percent >= MIN_GREEN) in ui_browser__percent_color()
41 double percent, bool current) in ui_browser__set_percent_color() argument
43 int color = ui_browser__percent_color(browser, percent, current); in ui_browser__set_percent_color()
Dhist.c36 double percent = 0.0; in __hpp__fmt() local
40 percent = 100.0 * get_field(he) / total; in __hpp__fmt()
42 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, percent); in __hpp__fmt()
315 double percent; in hpp_color_scnprintf() local
320 percent = va_arg(args, double); in hpp_color_scnprintf()
321 ret = percent_color_len_snprintf(hpp->buf, hpp->size, fmt, len, percent); in hpp_color_scnprintf()
Dbrowser.h39 double percent, bool current);

12