| /tools/perf/ui/stdio/ |
| A D | hist.c | 423 char *start = hpp->buf; in __hist_entry__snprintf() 439 ret = scnprintf(hpp->buf, hpp->size, "%s", sep ?: " "); in __hist_entry__snprintf() 469 char *buf = hpp->buf; in hist_entry__hierarchy_fprintf() 478 advance_hpp(hpp, ret); in hist_entry__hierarchy_fprintf() 489 ret = scnprintf(hpp->buf, hpp->size, "%s", sep ?: " "); in hist_entry__hierarchy_fprintf() 504 ret = scnprintf(hpp->buf, hpp->size, "%*s", in hist_entry__hierarchy_fprintf() 506 advance_hpp(hpp, ret); in hist_entry__hierarchy_fprintf() 511 hpp->buf = buf; in hist_entry__hierarchy_fprintf() 512 hpp->size = size; in hist_entry__hierarchy_fprintf() 559 if (!hpp.skip) in hist_entry__block_fprintf() [all …]
|
| /tools/perf/ui/ |
| A D | hist.c | 66 char *buf = hpp->buf; in __hpp__fmt() 116 hpp->buf = buf; in __hpp__fmt() 117 hpp->size = size; in __hpp__fmt() 149 return snprintf(hpp->buf, hpp->size, " %*s", len - 1, "N/A"); in hpp__fmt_acc() 191 hpp->buf = buf; in hpp__fmt_mem_stat() 192 hpp->size = size; in hpp__fmt_mem_stat() 408 return scnprintf(hpp->buf, hpp->size, "%*s", len, hdr); in hpp__header_fn() 442 return scnprintf(hpp->buf, hpp->size, "%*s", len, fmt->name); in hpp__header_mem_stat_fn() 452 return scnprintf(hpp->buf, hpp->size, "%.*s %s %.*s", in hpp__header_mem_stat_fn() 457 len = hpp->size; in hpp__header_mem_stat_fn() [all …]
|
| /tools/perf/ |
| A D | builtin-c2c.c | 493 return scnprintf(hpp->buf, hpp->size, "%*s", width, text); in c2c_header() 637 return scnprintf(hpp->buf, hpp->size, "%*u", width, \ 1166 ret = scnprintf(hpp->buf, hpp->size, "%5.1f%% ", in display_metrics() 1169 ret = scnprintf(hpp->buf, hpp->size, "%6s ", "n/a"); in display_metrics() 1193 ret = scnprintf(hpp->buf, hpp->size, "%21s", " "); in node_entry() 1200 ret = scnprintf(hpp->buf, hpp->size, " "); in node_entry() 1206 ret = scnprintf(hpp->buf, hpp->size, "%2d", node); in node_entry() 1241 ret = scnprintf(hpp->buf, hpp->size, "%5.1f%%}", in node_entry() 1244 ret = scnprintf(hpp->buf, hpp->size, "%6s}", "n/a"); in node_entry() 1251 ret = scnprintf(hpp->buf, hpp->size, "%2d{", node); in node_entry() [all …]
|
| A D | builtin-diff.c | 1320 return percent_color_snprintf(hpp->buf, hpp->size, in hpp__color_baseline() 1323 return scnprintf(hpp->buf, hpp->size, "%*s", in hpp__color_baseline() 1414 return percent_color_snprintf(hpp->buf, hpp->size, in __hpp__color_compare() 1425 return value_color_snprintf(hpp->buf, hpp->size, in __hpp__color_compare() 1436 return color_snprintf(hpp->buf, hpp->size, in __hpp__color_compare() 1445 return scnprintf(hpp->buf, hpp->size, "%*s", in __hpp__color_compare() 1448 return scnprintf(hpp->buf, hpp->size, "%*s", in __hpp__color_compare() 1544 ret = scnprintf(hpp->buf, hpp->size, "%*s", in hpp__color_cycles_hist() 1556 return scnprintf(hpp->buf, hpp->size, "%*s", in hpp__color_cycles_hist() 1665 return scnprintf(hpp->buf, hpp->size, "%s", buf); in hpp__entry_global() [all …]
|
| A D | builtin-kvm.c | 114 struct perf_hpp *hpp __maybe_unused, 122 return scnprintf(hpp->buf, hpp->size, "%*s", width, he->kvm_info->name); in ev_name_entry() 158 struct perf_hpp *hpp, \ 167 return scnprintf(hpp->buf, hpp->size, "%*lu", width, \ 217 return scnprintf(hpp->buf, hpp->size, "%*lu", width, in ev_entry_mean() 257 struct perf_hpp *hpp, in EV_METRIC_PERCENT() 265 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in EV_METRIC_PERCENT() 290 struct perf_hpp *hpp, in ev_entry_count_precent() argument 298 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in ev_entry_count_precent() 350 int width = fmt_width(fmt, hpp, hists); in fmt_header() [all …]
|
| /tools/perf/util/ |
| A D | block-info.c | 179 struct perf_hpp *hpp, in block_column_header() argument 186 return scnprintf(hpp->buf, hpp->size, "%*s", block_fmt->width, in block_column_header() 211 struct perf_hpp *hpp, in block_total_cycles_pct_entry() argument 263 return scnprintf(hpp->buf, hpp->size, "%*s", block_fmt->width, in block_cycles_lbr_entry() 284 struct perf_hpp *hpp, in block_avg_cycles_entry() argument 294 return scnprintf(hpp->buf, hpp->size, "%*s", block_fmt->width, in block_avg_cycles_entry() 326 return scnprintf(hpp->buf, hpp->size, "%*s", block_fmt->width, buf); in block_range_entry() 336 return scnprintf(hpp->buf, hpp->size, "%*s", block_fmt->width, in block_dso_entry() 340 return scnprintf(hpp->buf, hpp->size, "%*s", block_fmt->width, in block_dso_entry() 358 struct perf_hpp *hpp, in block_branch_counter_entry() argument [all …]
|
| A D | hist.h | 489 int (*header)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, 491 int (*width)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, 494 int (*color)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, 496 int (*entry)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, 531 struct perf_hpp_list hpp; member 656 typedef int (*hpp_callback_fn)(struct perf_hpp *hpp, bool front); 659 int hpp__fmt(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, 663 int hpp__fmt_acc(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, 671 static inline void advance_hpp(struct perf_hpp *hpp, int inc) in advance_hpp() argument 673 hpp->buf += inc; in advance_hpp() [all …]
|
| A D | sort.c | 2735 return scnprintf(hpp->buf, hpp->size, "%-*.*s", len, len, hdr); in __sort__hpp_header() 2764 return hse->se->se_snprintf(he, hpp->buf, hpp->size, len); in __sort__hpp_entry() 2883 hse->hpp.color = NULL; in __sort_dimension__alloc_hpp() 2895 hse->hpp.len = 0; in __sort_dimension__alloc_hpp() 3000 if (!hde->hpp.len) { in hde_width() 3015 hde->hpp.len = len; in hde_width() 3017 return hde->hpp.len; in hde_width() 3076 return scnprintf(hpp->buf, hpp->size, "%*.*s", len, len, hde->field->name); in __sort__hde_header() 3141 return scnprintf(hpp->buf, hpp->size, in __sort__hde_entry() 3160 ret = scnprintf(hpp->buf, hpp->size, "%*.*s", len, len, str); in __sort__hde_entry() [all …]
|
| A D | s390-cpumsf-kernel.h | 30 unsigned long long hpp; /* Host Program Parameter */ member
|
| A D | s390-cpumsf.c | 264 local.hpp = be64toh(basicp->hpp); in s390_cpumsf_basic_show() 280 basic->hpp, basic->gpp); in s390_cpumsf_basic_show() 509 .pid = basic->hpp & S390_LPP_PID_MASK, in s390_cpumsf_make_event() 510 .tid = basic->hpp & S390_LPP_PID_MASK, in s390_cpumsf_make_event()
|
| A D | hist.c | 1505 int hist_entry__snprintf_alignment(struct hist_entry *he, struct perf_hpp *hpp, in hist_entry__snprintf_alignment() argument 1509 const int width = fmt->width(fmt, hpp, he->hists); in hist_entry__snprintf_alignment() 1511 advance_hpp(hpp, printed); in hist_entry__snprintf_alignment() 1512 printed = scnprintf(hpp->buf, hpp->size, "%-*s", width - printed, " "); in hist_entry__snprintf_alignment() 1712 new_he = hierarchy_insert_entry(hists, root, he, parent, &node->hpp); in hists__hierarchy_insert_entry() 3061 perf_hpp_list__for_each_format_safe(&node->hpp, fmt, pos) { in hists_evsel__exit()
|
| /tools/perf/ui/gtk/ |
| A D | hists.c | 23 char *buf = hpp->buf; in __percent_color_snprintf() 24 size_t size = hpp->size; in __percent_color_snprintf() 307 struct perf_hpp hpp = { in perf_gtk__show_hists() local 449 bf = hpp->buf; in perf_gtk__add_hierarchy_entries() 450 size = hpp->size; in perf_gtk__add_hierarchy_entries() 459 snprintf(hpp->buf + ret, hpp->size - ret, " "); in perf_gtk__add_hierarchy_entries() 466 hpp->buf = bf; in perf_gtk__add_hierarchy_entries() 467 hpp->size = size; in perf_gtk__add_hierarchy_entries() 470 store, &iter, hpp, in perf_gtk__add_hierarchy_entries() 511 struct perf_hpp hpp = { in perf_gtk__show_hierarchy() local [all …]
|
| /tools/perf/ui/browsers/ |
| A D | hists.c | 1223 ret = scnprintf(hpp->buf, hpp->size, fmt, len, percent); in __hpp__slsmg_color_printf() 1258 int ret = scnprintf(hpp->buf, hpp->size, \ 1405 width -= hpp.buf - s; in hist_browser__show_entry() 1524 width -= hpp.buf - s; in hist_browser__show_hierarchy_entry() 1672 advance_hpp(hpp, inc); in advance_hpp_check() 1673 return hpp->size <= 0; in advance_hpp_check() 2098 struct perf_hpp hpp = { in hist_browser__fprintf_entry() local 2116 ret = scnprintf(hpp.buf, hpp.size, " "); in hist_browser__fprintf_entry() 2161 ret = scnprintf(hpp.buf, hpp.size, " "); in hist_browser__fprintf_hierarchy_entry() 2170 ret = scnprintf(hpp.buf, hpp.size, "%*s", hierarchy_indent, ""); in hist_browser__fprintf_hierarchy_entry() [all …]
|