Lines Matching full:color

6 #include "color.h"
336 const char *color = PERF_COLOR_NORMAL; in get_ratio_color() local
339 color = PERF_COLOR_RED; in get_ratio_color()
341 color = PERF_COLOR_MAGENTA; in get_ratio_color()
343 color = PERF_COLOR_YELLOW; in get_ratio_color()
345 return color; in get_ratio_color()
489 const char *color; in print_stalled_cycles_frontend() local
496 color = get_ratio_color(GRC_STALLED_CYCLES_FE, ratio); in print_stalled_cycles_frontend()
499 out->print_metric(config, out->ctx, color, "%7.2f%%", "frontend cycles idle", in print_stalled_cycles_frontend()
512 const char *color; in print_stalled_cycles_backend() local
519 color = get_ratio_color(GRC_STALLED_CYCLES_BE, ratio); in print_stalled_cycles_backend()
521 out->print_metric(config, out->ctx, color, "%7.2f%%", "backend cycles idle", ratio); in print_stalled_cycles_backend()
531 const char *color; in print_branch_misses() local
538 color = get_ratio_color(GRC_CACHE_MISSES, ratio); in print_branch_misses()
540 out->print_metric(config, out->ctx, color, "%7.2f%%", "of all branches", ratio); in print_branch_misses()
550 const char *color; in print_l1_dcache_misses() local
557 color = get_ratio_color(GRC_CACHE_MISSES, ratio); in print_l1_dcache_misses()
559 out->print_metric(config, out->ctx, color, "%7.2f%%", "of all L1-dcache accesses", ratio); in print_l1_dcache_misses()
569 const char *color; in print_l1_icache_misses() local
576 color = get_ratio_color(GRC_CACHE_MISSES, ratio); in print_l1_icache_misses()
577 out->print_metric(config, out->ctx, color, "%7.2f%%", "of all L1-icache accesses", ratio); in print_l1_icache_misses()
587 const char *color; in print_dtlb_cache_misses() local
594 color = get_ratio_color(GRC_CACHE_MISSES, ratio); in print_dtlb_cache_misses()
595 out->print_metric(config, out->ctx, color, "%7.2f%%", "of all dTLB cache accesses", ratio); in print_dtlb_cache_misses()
605 const char *color; in print_itlb_cache_misses() local
612 color = get_ratio_color(GRC_CACHE_MISSES, ratio); in print_itlb_cache_misses()
613 out->print_metric(config, out->ctx, color, "%7.2f%%", "of all iTLB cache accesses", ratio); in print_itlb_cache_misses()
623 const char *color; in print_ll_cache_misses() local
630 color = get_ratio_color(GRC_CACHE_MISSES, ratio); in print_ll_cache_misses()
631 out->print_metric(config, out->ctx, color, "%7.2f%%", "of all LL-cache accesses", ratio); in print_ll_cache_misses()
790 const char *color = NULL; in print_smi_cost() local
803 color = PERF_COLOR_RED; in print_smi_cost()
804 out->print_metric(config, out->ctx, color, "%8.1f%%", "SMI cycles%", cost); in print_smi_cost()
986 const char *color = NULL; in perf_stat__print_shadow_stats() local
1149 color = PERF_COLOR_RED; in perf_stat__print_shadow_stats()
1150 print_metric(config, ctxp, color, "%8.1f%%", "frontend bound", in perf_stat__print_shadow_stats()
1156 color = PERF_COLOR_GREEN; in perf_stat__print_shadow_stats()
1157 print_metric(config, ctxp, color, "%8.1f%%", "retiring", in perf_stat__print_shadow_stats()
1163 color = PERF_COLOR_RED; in perf_stat__print_shadow_stats()
1164 print_metric(config, ctxp, color, "%8.1f%%", "bad speculation", in perf_stat__print_shadow_stats()
1179 color = PERF_COLOR_RED; in perf_stat__print_shadow_stats()
1181 print_metric(config, ctxp, color, "%8.1f%%", name, in perf_stat__print_shadow_stats()
1191 color = PERF_COLOR_GREEN; in perf_stat__print_shadow_stats()
1192 print_metric(config, ctxp, color, "%8.1f%%", "Retiring", in perf_stat__print_shadow_stats()
1200 color = PERF_COLOR_RED; in perf_stat__print_shadow_stats()
1201 print_metric(config, ctxp, color, "%8.1f%%", "Frontend Bound", in perf_stat__print_shadow_stats()
1209 color = PERF_COLOR_RED; in perf_stat__print_shadow_stats()
1210 print_metric(config, ctxp, color, "%8.1f%%", "Backend Bound", in perf_stat__print_shadow_stats()
1218 color = PERF_COLOR_RED; in perf_stat__print_shadow_stats()
1219 print_metric(config, ctxp, color, "%8.1f%%", "Bad Speculation", in perf_stat__print_shadow_stats()
1232 color = PERF_COLOR_GREEN; in perf_stat__print_shadow_stats()
1233 print_metric(config, ctxp, color, "%8.1f%%", "Heavy Operations", in perf_stat__print_shadow_stats()
1236 color = PERF_COLOR_GREEN; in perf_stat__print_shadow_stats()
1238 color = NULL; in perf_stat__print_shadow_stats()
1239 print_metric(config, ctxp, color, "%8.1f%%", "Light Operations", in perf_stat__print_shadow_stats()
1252 color = PERF_COLOR_RED; in perf_stat__print_shadow_stats()
1253 print_metric(config, ctxp, color, "%8.1f%%", "Branch Mispredict", in perf_stat__print_shadow_stats()
1256 color = PERF_COLOR_RED; in perf_stat__print_shadow_stats()
1258 color = NULL; in perf_stat__print_shadow_stats()
1259 print_metric(config, ctxp, color, "%8.1f%%", "Machine Clears", in perf_stat__print_shadow_stats()
1272 color = PERF_COLOR_RED; in perf_stat__print_shadow_stats()
1273 print_metric(config, ctxp, color, "%8.1f%%", "Fetch Latency", in perf_stat__print_shadow_stats()
1276 color = PERF_COLOR_RED; in perf_stat__print_shadow_stats()
1278 color = NULL; in perf_stat__print_shadow_stats()
1279 print_metric(config, ctxp, color, "%8.1f%%", "Fetch Bandwidth", in perf_stat__print_shadow_stats()
1292 color = PERF_COLOR_RED; in perf_stat__print_shadow_stats()
1293 print_metric(config, ctxp, color, "%8.1f%%", "Memory Bound", in perf_stat__print_shadow_stats()
1296 color = PERF_COLOR_RED; in perf_stat__print_shadow_stats()
1298 color = NULL; in perf_stat__print_shadow_stats()
1299 print_metric(config, ctxp, color, "%8.1f%%", "Core Bound", in perf_stat__print_shadow_stats()