/tools/perf/util/ |
D | color.c | 51 static int __color_vsnprintf(char *bf, size_t size, const char *color, in __color_vsnprintf() argument 66 if (perf_use_color_default && *color) in __color_vsnprintf() 67 r += scnprintf(bf, size, "%s", color); in __color_vsnprintf() 69 if (perf_use_color_default && *color) in __color_vsnprintf() 77 static int __color_vfprintf(FILE *fp, const char *color, const char *fmt, in __color_vfprintf() argument 92 if (perf_use_color_default && *color) in __color_vfprintf() 93 fprintf(fp, "%s", color); in __color_vfprintf() 95 if (perf_use_color_default && *color) in __color_vfprintf() 100 int color_vsnprintf(char *bf, size_t size, const char *color, in color_vsnprintf() argument 103 return __color_vsnprintf(bf, size, color, fmt, args, NULL); in color_vsnprintf() [all …]
|
D | color.h | 36 int color_vsnprintf(char *bf, size_t size, const char *color, 38 int color_vfprintf(FILE *fp, const char *color, const char *fmt, va_list args); 39 int color_fprintf(FILE *fp, const char *color, const char *fmt, ...); 40 int color_snprintf(char *bf, size_t size, const char *color, const char *fmt, ...); 41 int color_fwrite_lines(FILE *fp, const char *color, size_t count, const char *buf);
|
D | stat-shadow.c | 256 const char *color = PERF_COLOR_NORMAL; in get_ratio_color() local 259 color = PERF_COLOR_RED; in get_ratio_color() 261 color = PERF_COLOR_MAGENTA; in get_ratio_color() 263 color = PERF_COLOR_YELLOW; in get_ratio_color() 265 return color; in get_ratio_color() 363 const char *color; in print_stalled_cycles_frontend() local 371 color = get_ratio_color(GRC_STALLED_CYCLES_FE, ratio); in print_stalled_cycles_frontend() 374 out->print_metric(out->ctx, color, "%7.2f%%", "frontend cycles idle", in print_stalled_cycles_frontend() 385 const char *color; in print_stalled_cycles_backend() local 393 color = get_ratio_color(GRC_STALLED_CYCLES_BE, ratio); in print_stalled_cycles_backend() [all …]
|
D | debug.c | 118 const char *color = PERF_COLOR_BLUE; in trace_event_printer() local 125 color_fprintf(stdout, color, "\n. ... raw event: size %d bytes\n", in trace_event_printer() 132 color_fprintf(stdout, color, " %04x: ", val); in trace_event_printer() 135 color_fprintf(stdout, color, " %02x", val); in trace_event_printer() 138 color_fprintf(stdout, color, " "); in trace_event_printer() 141 color_fprintf(stdout, color, " "); in trace_event_printer() 144 color_fprintf(stdout, color, "%c", in trace_event_printer() 148 color_fprintf(stdout, color, " "); in trace_event_printer() 151 color_fprintf(stdout, color, "\n"); in trace_event_printer()
|
D | svghelper.c | 662 int color = 220; in svg_time_grid() local 666 color = 192; in svg_time_grid() 670 color = 128; in svg_time_grid() 676 total_height, color, color, color, thickness); in svg_time_grid()
|
D | intel-bts.c | 99 const char *color = PERF_COLOR_BLUE; in intel_bts_dump() local 101 color_fprintf(stdout, color, in intel_bts_dump() 111 color_fprintf(stdout, color, " %08x: ", pos); in intel_bts_dump() 113 color_fprintf(stdout, color, " %02x", buf[i]); in intel_bts_dump() 115 color_fprintf(stdout, color, " "); in intel_bts_dump() 118 color_fprintf(stdout, color, " %"PRIx64" -> %"PRIx64" %s\n", in intel_bts_dump() 124 color_fprintf(stdout, color, " Bad record!\n"); in intel_bts_dump()
|
D | annotate.c | 1088 const char *color; in disasm_line__print() local 1134 color = get_percent_color(max_percent); in disasm_line__print() 1143 || color != prev_color) { in disasm_line__print() 1144 color_fprintf(stdout, color, " %s", path); in disasm_line__print() 1146 prev_color = color; in disasm_line__print() 1153 color = get_percent_color(percent); in disasm_line__print() 1156 color_fprintf(stdout, color, " %11" PRIu64, in disasm_line__print() 1159 color_fprintf(stdout, color, " %7" PRIu64, in disasm_line__print() 1162 color_fprintf(stdout, color, " %7.2f", percent); in disasm_line__print() 1780 const char *color; in print_summary() local [all …]
|
D | stat.h | 80 typedef void (*print_metric_t)(void *ctx, const char *color, const char *unit,
|
/tools/perf/Documentation/ |
D | perf-annotate.txt | 72 --stdio-color:: 73 'always', 'never' or 'auto', allowing configuring color output 74 via the command line, in addition to via "color.ui" .perfconfig. 75 Use '--stdio-color always' to generate color even when redirecting 76 to a pipe or file. Using just '--stdio-color' is equivalent to
|
D | perf-sched.txt | 87 --color-cpus:: 90 --color-pids::
|
D | perf-report.txt | 281 --stdio-color:: 282 'always', 'never' or 'auto', allowing configuring color output 283 via the command line, in addition to via "color.ui" .perfconfig. 284 Use '--stdio-color always' to generate color even when redirecting 285 to a pipe or file. Using just '--stdio-color' is equivalent to
|
/tools/perf/ui/gtk/ |
D | hists.c | 81 perf_hpp__format[PERF_HPP__OVERHEAD].color = in __HPP_COLOR_PERCENT_FN() 83 perf_hpp__format[PERF_HPP__OVERHEAD_SYS].color = in __HPP_COLOR_PERCENT_FN() 85 perf_hpp__format[PERF_HPP__OVERHEAD_US].color = in __HPP_COLOR_PERCENT_FN() 87 perf_hpp__format[PERF_HPP__OVERHEAD_GUEST_SYS].color = in __HPP_COLOR_PERCENT_FN() 89 perf_hpp__format[PERF_HPP__OVERHEAD_GUEST_US].color = in __HPP_COLOR_PERCENT_FN() 91 perf_hpp__format[PERF_HPP__OVERHEAD_ACC].color = in __HPP_COLOR_PERCENT_FN() 377 if (fmt->color) in perf_gtk__show_hists() 378 fmt->color(fmt, &hpp, h); in perf_gtk__show_hists() 438 if (fmt->color) in perf_gtk__add_hierarchy_entries() 439 fmt->color(fmt, hpp, he); in perf_gtk__add_hierarchy_entries() [all …]
|
/tools/perf/scripts/python/ |
D | sched-migration.py | 36 def color(): member in RunqueueEventUnknown 44 def color(): member in RunqueueEventSleep 55 def color(): member in RunqueueEventWakeup 66 def color(): member in RunqueueEventFork 77 def color(): member in RunqueueMigrateIn 88 def color(): member in RunqueueMigrateOut 289 color = (0xff, red_power, red_power) 294 top_color = rq.event.color() 296 self.root_win.paint_rectangle_zone(cpu, color, top_color, slice.start, slice.end)
|
/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
D | SchedGui.py | 79 def paint_rectangle_zone(self, nr, color, top_color, start, end): argument 97 (r ,g, b) = color 98 color = wx.Colour(r, g, b) 99 brush = wx.Brush(color, wx.SOLID)
|
/tools/power/pm-graph/ |
D | analyze_suspend.py | 686 def colorText(self, str, color=31): argument 689 return '\x1B[%d;40m%s\x1B[m' % (color, str) 944 color = sysvals.kprobeColor(kprobename) 945 e = DevFunction(displayname, a, c, r, start, end, ubiquitous, proc, pid, color) 1137 def newActionGlobal(self, name, start, end, pid=-1, color=''): argument 1171 newname = self.newAction(targetphase, name, pid, '', start, end, '', htmlclass, color) 1174 def newAction(self, phase, name, pid, parent, start, end, drv, htmlclass='', color=''): argument 1192 if color: 1193 list[name]['color'] = color 1376 def __init__(self, name, args, caller, ret, start, end, u, proc, pid, color): argument [all …]
|
/tools/include/linux/ |
D | rbtree_augmented.h | 118 struct rb_node *p, int color) in rb_set_parent_color() argument 120 rb->__rb_parent_color = (unsigned long)p | color; in rb_set_parent_color()
|
/tools/perf/ui/ |
D | browser.c | 33 int ui_browser__set_color(struct ui_browser *browser, int color) in ui_browser__set_color() argument 36 browser->current_color = color; in ui_browser__set_color() 37 SLsmg_set_color(color); in ui_browser__set_color() 44 int color = ui_browser__percent_color(browser, percent, current); in ui_browser__set_percent_color() local 45 ui_browser__set_color(browser, color); in ui_browser__set_percent_color()
|
D | browser.h | 33 int ui_browser__set_color(struct ui_browser *browser, int color);
|
/tools/perf/ui/stdio/ |
D | hist.c | 500 if (perf_hpp__use_color() && fmt->color) in __hist_entry__snprintf() 501 ret = fmt->color(fmt, hpp, he); in __hist_entry__snprintf() 550 if (perf_hpp__use_color() && fmt->color) in hist_entry__hierarchy_fprintf() 551 ret = fmt->color(fmt, hpp, he); in hist_entry__hierarchy_fprintf() 574 if (perf_hpp__use_color() && fmt->color) in hist_entry__hierarchy_fprintf() 575 fmt->color(fmt, hpp, he); in hist_entry__hierarchy_fprintf()
|
/tools/perf/ui/browsers/ |
D | hists.c | 796 int color, width; in hist_browser__show_callchain_entry() local 800 color = HE_COLORSET_NORMAL; in hist_browser__show_callchain_entry() 804 color = HE_COLORSET_SELECTED; in hist_browser__show_callchain_entry() 808 ui_browser__set_color(&browser->b, color); in hist_browser__show_callchain_entry() 852 int color, width, first_row; in hist_browser__show_inline() local 858 color = HE_COLORSET_NORMAL; in hist_browser__show_inline() 860 color = HE_COLORSET_SELECTED; in hist_browser__show_inline() 882 ui_browser__set_color(&browser->b, color); in hist_browser__show_inline() 1351 perf_hpp__format[PERF_HPP__OVERHEAD].color = in __HPP_COLOR_PERCENT_FN() 1353 perf_hpp__format[PERF_HPP__OVERHEAD_SYS].color = in __HPP_COLOR_PERCENT_FN() [all …]
|
D | annotate.c | 109 int color = annotate_browser__jumps_percent_color(browser, nr, current); in annotate_browser__set_jumps_percent_color() local 110 return ui_browser__set_color(&browser->b, color); in annotate_browser__set_jumps_percent_color() 215 int color = -1; in annotate_browser__write() local 244 color = ui_browser__set_color(browser, HE_COLORSET_ADDR); in annotate_browser__write() 247 ui_browser__set_color(browser, color); in annotate_browser__write()
|
/tools/lib/ |
D | rbtree.c | 63 struct rb_root *root, int color) in __rb_rotate_set_parents() argument 67 rb_set_parent_color(old, new, color); in __rb_rotate_set_parents()
|
/tools/perf/ |
D | builtin-diff.c | 1149 fmt->color = hpp__color_baseline; in data__hpp_register() 1153 fmt->color = hpp__color_delta; in data__hpp_register() 1157 fmt->color = hpp__color_ratio; in data__hpp_register() 1161 fmt->color = hpp__color_wdiff; in data__hpp_register() 1165 fmt->color = hpp__color_delta; in data__hpp_register()
|
D | builtin-stat.c | 877 static void print_metric_std(void *ctx, const char *color, const char *fmt, in print_metric_std() argument 896 if (color) in print_metric_std() 897 n += color_fprintf(out, color, fmt, val); in print_metric_std() 917 const char *color __maybe_unused, in print_metric_csv() 965 static void print_metric_only(void *ctx, const char *color, const char *fmt, in print_metric_only() argument 977 if (color) in print_metric_only() 978 n = color_fprintf(out, color, fmt, val); in print_metric_only() 988 static void print_metric_only_csv(void *ctx, const char *color __maybe_unused, in print_metric_only_csv() 1012 static void print_metric_header(void *ctx, const char *color __maybe_unused, in print_metric_header()
|
D | builtin-sched.c | 1448 bool color; member 1457 return priv.color; in thread__has_color() 1465 .color = false, in map__findnew_thread() 1472 priv.color = true; in map__findnew_thread() 1489 const char *color = PERF_COLOR_NORMAL; in map_switch_event() local 1555 const char *pid_color = color; in map_switch_event() 1556 const char *cpu_color = color; in map_switch_event() 1568 color_fprintf(stdout, color, " "); in map_switch_event() 1575 color_fprintf(stdout, color, " "); in map_switch_event() 1582 color_fprintf(stdout, color, " %12s secs ", stimestamp); in map_switch_event() [all …]
|