Lines Matching refs:bf

72 static int repsep_snprintf(char *bf, size_t size, const char *fmt, ...)  in repsep_snprintf()  argument
78 n = vsnprintf(bf, size, fmt, ap); in repsep_snprintf()
80 char *sep = bf; in repsep_snprintf()
114 static int hist_entry__thread_snprintf(struct hist_entry *he, char *bf, in hist_entry__thread_snprintf() argument
120 return repsep_snprintf(bf, size, "%7d:%-*.*s", thread__tid(he->thread), in hist_entry__thread_snprintf()
163 static int hist_entry__simd_snprintf(struct hist_entry *he, char *bf, in hist_entry__simd_snprintf() argument
169 return repsep_snprintf(bf, size, ""); in hist_entry__simd_snprintf()
174 return repsep_snprintf(bf, size, "[e] %s", name); in hist_entry__simd_snprintf()
176 return repsep_snprintf(bf, size, "[p] %s", name); in hist_entry__simd_snprintf()
178 return repsep_snprintf(bf, size, "[.] %s", name); in hist_entry__simd_snprintf()
213 static int hist_entry__comm_snprintf(struct hist_entry *he, char *bf, in hist_entry__comm_snprintf() argument
216 return repsep_snprintf(bf, size, "%-*.*s", width, width, comm__str(he->comm)); in hist_entry__comm_snprintf()
257 static int _hist_entry__dso_snprintf(struct map *map, char *bf, in _hist_entry__dso_snprintf() argument
266 return repsep_snprintf(bf, size, "%-*.*s", width, width, dso_name); in _hist_entry__dso_snprintf()
269 static int hist_entry__dso_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_snprintf() argument
272 return _hist_entry__dso_snprintf(he->ms.map, bf, size, width); in hist_entry__dso_snprintf()
354 u64 ip, char level, char *bf, size_t size, in _hist_entry__sym_snprintf() argument
369 ret += repsep_snprintf(bf, size, "%-#*llx %c ", in _hist_entry__sym_snprintf()
373 ret += repsep_snprintf(bf + ret, size - ret, "[%c] ", level); in _hist_entry__sym_snprintf()
376 ret += repsep_snprintf(bf + ret, size - ret, "%s", sym->name); in _hist_entry__sym_snprintf()
377 ret += repsep_snprintf(bf + ret, size - ret, "+0x%llx", in _hist_entry__sym_snprintf()
380 ret += repsep_snprintf(bf + ret, size - ret, "%.*s", in _hist_entry__sym_snprintf()
384 ret += repsep_snprintf(bf + ret, size - ret, in _hist_entry__sym_snprintf()
389 ret += repsep_snprintf(bf + ret, size - ret, "%-#.*llx", in _hist_entry__sym_snprintf()
396 int hist_entry__sym_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) in hist_entry__sym_snprintf() argument
399 he->level, bf, size, width); in hist_entry__sym_snprintf()
464 static int hist_entry__srcline_snprintf(struct hist_entry *he, char *bf, in hist_entry__srcline_snprintf() argument
467 return repsep_snprintf(bf, size, "%-.*s", width, he->srcline); in hist_entry__srcline_snprintf()
517 static int hist_entry__srcline_from_snprintf(struct hist_entry *he, char *bf, in hist_entry__srcline_from_snprintf() argument
520 return repsep_snprintf(bf, size, "%-*.*s", width, width, he->branch_info->srcline_from); in hist_entry__srcline_from_snprintf()
565 static int hist_entry__srcline_to_snprintf(struct hist_entry *he, char *bf, in hist_entry__srcline_to_snprintf() argument
568 return repsep_snprintf(bf, size, "%-*.*s", width, width, he->branch_info->srcline_to); in hist_entry__srcline_to_snprintf()
581 static int hist_entry__sym_ipc_snprintf(struct hist_entry *he, char *bf, in hist_entry__sym_ipc_snprintf() argument
591 return repsep_snprintf(bf, size, "%-*s", width, "-"); in hist_entry__sym_ipc_snprintf()
604 return repsep_snprintf(bf, size, "%-*s", width, tmp); in hist_entry__sym_ipc_snprintf()
616 char *bf, size_t size, in hist_entry__sym_ipc_null_snprintf() argument
622 return repsep_snprintf(bf, size, "%-*s", width, tmp); in hist_entry__sym_ipc_null_snprintf()
686 static int hist_entry__srcfile_snprintf(struct hist_entry *he, char *bf, in hist_entry__srcfile_snprintf() argument
689 return repsep_snprintf(bf, size, "%-.*s", width, he->srcfile); in hist_entry__srcfile_snprintf()
716 static int hist_entry__parent_snprintf(struct hist_entry *he, char *bf, in hist_entry__parent_snprintf() argument
719 return repsep_snprintf(bf, size, "%-*.*s", width, width, in hist_entry__parent_snprintf()
738 static int hist_entry__cpu_snprintf(struct hist_entry *he, char *bf, in hist_entry__cpu_snprintf() argument
741 return repsep_snprintf(bf, size, "%*.*d", width, width, he->cpu); in hist_entry__cpu_snprintf()
777 char *bf, size_t size, in hist_entry__cgroup_id_snprintf() argument
780 return repsep_snprintf(bf, size, "%lu/0x%lx", he->cgroup_id.dev, in hist_entry__cgroup_id_snprintf()
800 char *bf, size_t size, in hist_entry__cgroup_snprintf() argument
814 return repsep_snprintf(bf, size, "%s", cgrp_name); in hist_entry__cgroup_snprintf()
832 static int hist_entry__socket_snprintf(struct hist_entry *he, char *bf, in hist_entry__socket_snprintf() argument
835 return repsep_snprintf(bf, size, "%*.*d", width, width-3, he->socket); in hist_entry__socket_snprintf()
864 static int hist_entry__time_snprintf(struct hist_entry *he, char *bf, in hist_entry__time_snprintf() argument
876 return repsep_snprintf(bf, size, "%-.*s", width, he_time); in hist_entry__time_snprintf()
932 static int hist_entry__trace_snprintf(struct hist_entry *he, char *bf, in hist_entry__trace_snprintf() argument
939 return scnprintf(bf, size, "%-.*s", width, "N/A"); in hist_entry__trace_snprintf()
943 return repsep_snprintf(bf, size, "%-.*s", width, he->trace_output); in hist_entry__trace_snprintf()
966 static int hist_entry__dso_from_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_from_snprintf() argument
971 bf, size, width); in hist_entry__dso_from_snprintf()
973 return repsep_snprintf(bf, size, "%-*.*s", width, width, "N/A"); in hist_entry__dso_from_snprintf()
998 static int hist_entry__dso_to_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_to_snprintf() argument
1003 bf, size, width); in hist_entry__dso_to_snprintf()
1005 return repsep_snprintf(bf, size, "%-*.*s", width, width, "N/A"); in hist_entry__dso_to_snprintf()
1054 static int hist_entry__sym_from_snprintf(struct hist_entry *he, char *bf, in hist_entry__sym_from_snprintf() argument
1061 from->al_level, bf, size, width); in hist_entry__sym_from_snprintf()
1064 return repsep_snprintf(bf, size, "%-*.*s", width, width, "N/A"); in hist_entry__sym_from_snprintf()
1067 static int hist_entry__sym_to_snprintf(struct hist_entry *he, char *bf, in hist_entry__sym_to_snprintf() argument
1074 to->al_level, bf, size, width); in hist_entry__sym_to_snprintf()
1077 return repsep_snprintf(bf, size, "%-*.*s", width, width, "N/A"); in hist_entry__sym_to_snprintf()
1137 u64 ip, char level, char *bf, size_t size, in _hist_entry__addr_snprintf() argument
1144 ret += repsep_snprintf(bf + ret, size - ret, "[%c] ", level); in _hist_entry__addr_snprintf()
1147 ret += repsep_snprintf(bf + ret, size - ret, "%s", sym->name); in _hist_entry__addr_snprintf()
1148 ret += repsep_snprintf(bf + ret, size - ret, "+0x%llx", in _hist_entry__addr_snprintf()
1151 ret += repsep_snprintf(bf + ret, size - ret, "%.*s", in _hist_entry__addr_snprintf()
1156 ret += repsep_snprintf(bf + ret, size - ret, "+0x%llx", offs); in _hist_entry__addr_snprintf()
1160 ret += repsep_snprintf(bf + ret, size - ret, "%-#.*llx", in _hist_entry__addr_snprintf()
1167 static int hist_entry__addr_from_snprintf(struct hist_entry *he, char *bf, in hist_entry__addr_from_snprintf() argument
1174 he->level, bf, size, width); in hist_entry__addr_from_snprintf()
1177 return repsep_snprintf(bf, size, "%-*.*s", width, width, "N/A"); in hist_entry__addr_from_snprintf()
1180 static int hist_entry__addr_to_snprintf(struct hist_entry *he, char *bf, in hist_entry__addr_to_snprintf() argument
1187 he->level, bf, size, width); in hist_entry__addr_to_snprintf()
1190 return repsep_snprintf(bf, size, "%-*.*s", width, width, "N/A"); in hist_entry__addr_to_snprintf()
1271 static int hist_entry__mispredict_snprintf(struct hist_entry *he, char *bf, in hist_entry__mispredict_snprintf() argument
1282 return repsep_snprintf(bf, size, "%-*.*s", width, width, out); in hist_entry__mispredict_snprintf()
1295 static int hist_entry__cycles_snprintf(struct hist_entry *he, char *bf, in hist_entry__cycles_snprintf() argument
1299 return scnprintf(bf, size, "%-.*s", width, "N/A"); in hist_entry__cycles_snprintf()
1301 return repsep_snprintf(bf, size, "%-*s", width, "-"); in hist_entry__cycles_snprintf()
1302 return repsep_snprintf(bf, size, "%-*hd", width, in hist_entry__cycles_snprintf()
1327 static int hist_entry__daddr_snprintf(struct hist_entry *he, char *bf, in hist_entry__daddr_snprintf() argument
1337 return _hist_entry__sym_snprintf(ms, addr, he->level, bf, size, width); in hist_entry__daddr_snprintf()
1353 static int hist_entry__iaddr_snprintf(struct hist_entry *he, char *bf, in hist_entry__iaddr_snprintf() argument
1363 return _hist_entry__sym_snprintf(ms, addr, he->level, bf, size, width); in hist_entry__iaddr_snprintf()
1380 static int hist_entry__dso_daddr_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_daddr_snprintf() argument
1388 return _hist_entry__dso_snprintf(map, bf, size, width); in hist_entry__dso_daddr_snprintf()
1410 static int hist_entry__locked_snprintf(struct hist_entry *he, char *bf, in hist_entry__locked_snprintf() argument
1416 return repsep_snprintf(bf, size, "%.*s", width, out); in hist_entry__locked_snprintf()
1438 static int hist_entry__tlb_snprintf(struct hist_entry *he, char *bf, in hist_entry__tlb_snprintf() argument
1444 return repsep_snprintf(bf, size, "%-*s", width, out); in hist_entry__tlb_snprintf()
1466 static int hist_entry__lvl_snprintf(struct hist_entry *he, char *bf, in hist_entry__lvl_snprintf() argument
1472 return repsep_snprintf(bf, size, "%-*s", width, out); in hist_entry__lvl_snprintf()
1494 static int hist_entry__snoop_snprintf(struct hist_entry *he, char *bf, in hist_entry__snoop_snprintf() argument
1500 return repsep_snprintf(bf, size, "%-*s", width, out); in hist_entry__snoop_snprintf()
1563 static int hist_entry__dcacheline_snprintf(struct hist_entry *he, char *bf, in hist_entry__dcacheline_snprintf() argument
1587 return _hist_entry__sym_snprintf(ms, addr, level, bf, size, width); in hist_entry__dcacheline_snprintf()
1603 static int hist_entry__local_weight_snprintf(struct hist_entry *he, char *bf, in hist_entry__local_weight_snprintf() argument
1606 return repsep_snprintf(bf, size, "%-*llu", width, he->weight); in hist_entry__local_weight_snprintf()
1616 static int hist_entry__global_weight_snprintf(struct hist_entry *he, char *bf, in hist_entry__global_weight_snprintf() argument
1619 return repsep_snprintf(bf, size, "%-*llu", width, in hist_entry__global_weight_snprintf()
1636 static int hist_entry__local_ins_lat_snprintf(struct hist_entry *he, char *bf, in hist_entry__local_ins_lat_snprintf() argument
1639 return repsep_snprintf(bf, size, "%-*u", width, he->ins_lat); in hist_entry__local_ins_lat_snprintf()
1649 static int hist_entry__global_ins_lat_snprintf(struct hist_entry *he, char *bf, in hist_entry__global_ins_lat_snprintf() argument
1652 return repsep_snprintf(bf, size, "%-*u", width, in hist_entry__global_ins_lat_snprintf()
1669 static int hist_entry__global_p_stage_cyc_snprintf(struct hist_entry *he, char *bf, in hist_entry__global_p_stage_cyc_snprintf() argument
1672 return repsep_snprintf(bf, size, "%-*u", width, in hist_entry__global_p_stage_cyc_snprintf()
1677 static int hist_entry__p_stage_cyc_snprintf(struct hist_entry *he, char *bf, in hist_entry__p_stage_cyc_snprintf() argument
1680 return repsep_snprintf(bf, size, "%-*u", width, he->p_stage_cyc); in hist_entry__p_stage_cyc_snprintf()
1772 static int hist_entry__blocked_snprintf(struct hist_entry *he, char *bf, in hist_entry__blocked_snprintf() argument
1778 return repsep_snprintf(bf, size, "%.*s", width, out); in hist_entry__blocked_snprintf()
1801 static int hist_entry__phys_daddr_snprintf(struct hist_entry *he, char *bf, in hist_entry__phys_daddr_snprintf() argument
1810 ret += repsep_snprintf(bf + ret, size - ret, "[%c] ", he->level); in hist_entry__phys_daddr_snprintf()
1812 ret += repsep_snprintf(bf + ret, size - ret, "%-#.*llx", len, addr); in hist_entry__phys_daddr_snprintf()
1814 ret += repsep_snprintf(bf + ret, size - ret, "%-*s", width - ret, ""); in hist_entry__phys_daddr_snprintf()
1817 bf[width] = '\0'; in hist_entry__phys_daddr_snprintf()
1842 static int hist_entry__data_page_size_snprintf(struct hist_entry *he, char *bf, in hist_entry__data_page_size_snprintf() argument
1847 return repsep_snprintf(bf, size, "%-*s", width, in hist_entry__data_page_size_snprintf()
1867 static int hist_entry__code_page_size_snprintf(struct hist_entry *he, char *bf, in hist_entry__code_page_size_snprintf() argument
1872 return repsep_snprintf(bf, size, "%-*s", width, in hist_entry__code_page_size_snprintf()
1893 static int hist_entry__abort_snprintf(struct hist_entry *he, char *bf, in hist_entry__abort_snprintf() argument
1905 return repsep_snprintf(bf, size, "%-*s", width, out); in hist_entry__abort_snprintf()
1925 static int hist_entry__in_tx_snprintf(struct hist_entry *he, char *bf, in hist_entry__in_tx_snprintf() argument
1937 return repsep_snprintf(bf, size, "%-*s", width, out); in hist_entry__in_tx_snprintf()
1988 static int hist_entry__transaction_snprintf(struct hist_entry *he, char *bf, in hist_entry__transaction_snprintf() argument
2009 return repsep_snprintf(bf, size, "%-*s", width, buf); in hist_entry__transaction_snprintf()
2036 static int _hist_entry__sym_size_snprintf(struct symbol *sym, char *bf, in _hist_entry__sym_size_snprintf() argument
2040 return repsep_snprintf(bf, bf_size, "%*d", width, symbol__size(sym)); in _hist_entry__sym_size_snprintf()
2042 return repsep_snprintf(bf, bf_size, "%*s", width, "unknown"); in _hist_entry__sym_size_snprintf()
2045 static int hist_entry__sym_size_snprintf(struct hist_entry *he, char *bf, in hist_entry__sym_size_snprintf() argument
2048 return _hist_entry__sym_size_snprintf(he->ms.sym, bf, size, width); in hist_entry__sym_size_snprintf()
2075 static int _hist_entry__dso_size_snprintf(struct map *map, char *bf, in _hist_entry__dso_size_snprintf() argument
2079 return repsep_snprintf(bf, bf_size, "%*d", width, map__size(map)); in _hist_entry__dso_size_snprintf()
2081 return repsep_snprintf(bf, bf_size, "%*s", width, "unknown"); in _hist_entry__dso_size_snprintf()
2084 static int hist_entry__dso_size_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_size_snprintf() argument
2087 return _hist_entry__dso_size_snprintf(he->ms.map, bf, size, width); in hist_entry__dso_size_snprintf()
2115 static int hist_entry__addr_snprintf(struct hist_entry *he, char *bf, in hist_entry__addr_snprintf() argument
2124 return repsep_snprintf(bf, size, "%-#*llx", width, ip); in hist_entry__addr_snprintf()