Lines Matching refs:bf

74 static int repsep_snprintf(char *bf, size_t size, const char *fmt, ...)  in repsep_snprintf()  argument
80 n = vsnprintf(bf, size, fmt, ap); in repsep_snprintf()
82 char *sep = bf; in repsep_snprintf()
116 static int hist_entry__thread_snprintf(struct hist_entry *he, char *bf, in hist_entry__thread_snprintf() argument
122 return repsep_snprintf(bf, size, "%7d:%-*.*s", thread__tid(he->thread), in hist_entry__thread_snprintf()
165 static int hist_entry__simd_snprintf(struct hist_entry *he, char *bf, in hist_entry__simd_snprintf() argument
171 return repsep_snprintf(bf, size, ""); in hist_entry__simd_snprintf()
176 return repsep_snprintf(bf, size, "[e] %s", name); in hist_entry__simd_snprintf()
178 return repsep_snprintf(bf, size, "[p] %s", name); in hist_entry__simd_snprintf()
180 return repsep_snprintf(bf, size, "[.] %s", name); in hist_entry__simd_snprintf()
215 static int hist_entry__comm_snprintf(struct hist_entry *he, char *bf, in hist_entry__comm_snprintf() argument
218 return repsep_snprintf(bf, size, "%-*.*s", width, width, comm__str(he->comm)); in hist_entry__comm_snprintf()
259 static int _hist_entry__dso_snprintf(struct map *map, char *bf, in _hist_entry__dso_snprintf() argument
268 return repsep_snprintf(bf, size, "%-*.*s", width, width, dso_name); in _hist_entry__dso_snprintf()
271 static int hist_entry__dso_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_snprintf() argument
274 return _hist_entry__dso_snprintf(he->ms.map, bf, size, width); in hist_entry__dso_snprintf()
356 u64 ip, char level, char *bf, size_t size, in _hist_entry__sym_snprintf() argument
371 ret += repsep_snprintf(bf, size, "%-#*llx %c ", in _hist_entry__sym_snprintf()
375 ret += repsep_snprintf(bf + ret, size - ret, "[%c] ", level); in _hist_entry__sym_snprintf()
378 ret += repsep_snprintf(bf + ret, size - ret, "%s", sym->name); in _hist_entry__sym_snprintf()
379 ret += repsep_snprintf(bf + ret, size - ret, "+0x%llx", in _hist_entry__sym_snprintf()
382 ret += repsep_snprintf(bf + ret, size - ret, "%.*s", in _hist_entry__sym_snprintf()
386 ret += repsep_snprintf(bf + ret, size - ret, in _hist_entry__sym_snprintf()
391 ret += repsep_snprintf(bf + ret, size - ret, "%-#.*llx", in _hist_entry__sym_snprintf()
398 int hist_entry__sym_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) in hist_entry__sym_snprintf() argument
401 he->level, bf, size, width); in hist_entry__sym_snprintf()
450 hist_entry__symoff_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) in hist_entry__symoff_snprintf() argument
455 return repsep_snprintf(bf, size, "[%c] %-#.*llx", he->level, width - 4, he->ip); in hist_entry__symoff_snprintf()
457 return repsep_snprintf(bf, size, "[%c] %s+0x%llx", he->level, sym->name, he->ip - sym->start); in hist_entry__symoff_snprintf()
512 static int hist_entry__srcline_snprintf(struct hist_entry *he, char *bf, in hist_entry__srcline_snprintf() argument
515 return repsep_snprintf(bf, size, "%-.*s", width, he->srcline); in hist_entry__srcline_snprintf()
565 static int hist_entry__srcline_from_snprintf(struct hist_entry *he, char *bf, in hist_entry__srcline_from_snprintf() argument
568 return repsep_snprintf(bf, size, "%-*.*s", width, width, he->branch_info->srcline_from); in hist_entry__srcline_from_snprintf()
613 static int hist_entry__srcline_to_snprintf(struct hist_entry *he, char *bf, in hist_entry__srcline_to_snprintf() argument
616 return repsep_snprintf(bf, size, "%-*.*s", width, width, he->branch_info->srcline_to); in hist_entry__srcline_to_snprintf()
629 static int hist_entry__sym_ipc_snprintf(struct hist_entry *he, char *bf, in hist_entry__sym_ipc_snprintf() argument
639 return repsep_snprintf(bf, size, "%-*s", width, "-"); in hist_entry__sym_ipc_snprintf()
652 return repsep_snprintf(bf, size, "%-*s", width, tmp); in hist_entry__sym_ipc_snprintf()
664 char *bf, size_t size, in hist_entry__sym_ipc_null_snprintf() argument
670 return repsep_snprintf(bf, size, "%-*s", width, tmp); in hist_entry__sym_ipc_null_snprintf()
734 static int hist_entry__srcfile_snprintf(struct hist_entry *he, char *bf, in hist_entry__srcfile_snprintf() argument
737 return repsep_snprintf(bf, size, "%-.*s", width, he->srcfile); in hist_entry__srcfile_snprintf()
764 static int hist_entry__parent_snprintf(struct hist_entry *he, char *bf, in hist_entry__parent_snprintf() argument
767 return repsep_snprintf(bf, size, "%-*.*s", width, width, in hist_entry__parent_snprintf()
786 static int hist_entry__cpu_snprintf(struct hist_entry *he, char *bf, in hist_entry__cpu_snprintf() argument
789 return repsep_snprintf(bf, size, "%*.*d", width, width, he->cpu); in hist_entry__cpu_snprintf()
825 char *bf, size_t size, in hist_entry__cgroup_id_snprintf() argument
828 return repsep_snprintf(bf, size, "%lu/0x%lx", he->cgroup_id.dev, in hist_entry__cgroup_id_snprintf()
848 char *bf, size_t size, in hist_entry__cgroup_snprintf() argument
862 return repsep_snprintf(bf, size, "%s", cgrp_name); in hist_entry__cgroup_snprintf()
880 static int hist_entry__socket_snprintf(struct hist_entry *he, char *bf, in hist_entry__socket_snprintf() argument
883 return repsep_snprintf(bf, size, "%*.*d", width, width-3, he->socket); in hist_entry__socket_snprintf()
912 static int hist_entry__time_snprintf(struct hist_entry *he, char *bf, in hist_entry__time_snprintf() argument
924 return repsep_snprintf(bf, size, "%-.*s", width, he_time); in hist_entry__time_snprintf()
980 static int hist_entry__trace_snprintf(struct hist_entry *he, char *bf, in hist_entry__trace_snprintf() argument
987 return scnprintf(bf, size, "%-.*s", width, "N/A"); in hist_entry__trace_snprintf()
991 return repsep_snprintf(bf, size, "%-.*s", width, he->trace_output); in hist_entry__trace_snprintf()
1014 static int hist_entry__dso_from_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_from_snprintf() argument
1019 bf, size, width); in hist_entry__dso_from_snprintf()
1021 return repsep_snprintf(bf, size, "%-*.*s", width, width, "N/A"); in hist_entry__dso_from_snprintf()
1046 static int hist_entry__dso_to_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_to_snprintf() argument
1051 bf, size, width); in hist_entry__dso_to_snprintf()
1053 return repsep_snprintf(bf, size, "%-*.*s", width, width, "N/A"); in hist_entry__dso_to_snprintf()
1102 static int hist_entry__sym_from_snprintf(struct hist_entry *he, char *bf, in hist_entry__sym_from_snprintf() argument
1109 from->al_level, bf, size, width); in hist_entry__sym_from_snprintf()
1112 return repsep_snprintf(bf, size, "%-*.*s", width, width, "N/A"); in hist_entry__sym_from_snprintf()
1115 static int hist_entry__sym_to_snprintf(struct hist_entry *he, char *bf, in hist_entry__sym_to_snprintf() argument
1122 to->al_level, bf, size, width); in hist_entry__sym_to_snprintf()
1125 return repsep_snprintf(bf, size, "%-*.*s", width, width, "N/A"); in hist_entry__sym_to_snprintf()
1185 u64 ip, char level, char *bf, size_t size, in _hist_entry__addr_snprintf() argument
1192 ret += repsep_snprintf(bf + ret, size - ret, "[%c] ", level); in _hist_entry__addr_snprintf()
1195 ret += repsep_snprintf(bf + ret, size - ret, "%s", sym->name); in _hist_entry__addr_snprintf()
1196 ret += repsep_snprintf(bf + ret, size - ret, "+0x%llx", in _hist_entry__addr_snprintf()
1199 ret += repsep_snprintf(bf + ret, size - ret, "%.*s", in _hist_entry__addr_snprintf()
1204 ret += repsep_snprintf(bf + ret, size - ret, "+0x%llx", offs); in _hist_entry__addr_snprintf()
1208 ret += repsep_snprintf(bf + ret, size - ret, "%-#.*llx", in _hist_entry__addr_snprintf()
1215 static int hist_entry__addr_from_snprintf(struct hist_entry *he, char *bf, in hist_entry__addr_from_snprintf() argument
1222 he->level, bf, size, width); in hist_entry__addr_from_snprintf()
1225 return repsep_snprintf(bf, size, "%-*.*s", width, width, "N/A"); in hist_entry__addr_from_snprintf()
1228 static int hist_entry__addr_to_snprintf(struct hist_entry *he, char *bf, in hist_entry__addr_to_snprintf() argument
1235 he->level, bf, size, width); in hist_entry__addr_to_snprintf()
1238 return repsep_snprintf(bf, size, "%-*.*s", width, width, "N/A"); in hist_entry__addr_to_snprintf()
1319 static int hist_entry__mispredict_snprintf(struct hist_entry *he, char *bf, in hist_entry__mispredict_snprintf() argument
1330 return repsep_snprintf(bf, size, "%-*.*s", width, width, out); in hist_entry__mispredict_snprintf()
1343 static int hist_entry__cycles_snprintf(struct hist_entry *he, char *bf, in hist_entry__cycles_snprintf() argument
1347 return scnprintf(bf, size, "%-.*s", width, "N/A"); in hist_entry__cycles_snprintf()
1349 return repsep_snprintf(bf, size, "%-*s", width, "-"); in hist_entry__cycles_snprintf()
1350 return repsep_snprintf(bf, size, "%-*hd", width, in hist_entry__cycles_snprintf()
1375 static int hist_entry__daddr_snprintf(struct hist_entry *he, char *bf, in hist_entry__daddr_snprintf() argument
1385 return _hist_entry__sym_snprintf(ms, addr, he->level, bf, size, width); in hist_entry__daddr_snprintf()
1401 static int hist_entry__iaddr_snprintf(struct hist_entry *he, char *bf, in hist_entry__iaddr_snprintf() argument
1411 return _hist_entry__sym_snprintf(ms, addr, he->level, bf, size, width); in hist_entry__iaddr_snprintf()
1428 static int hist_entry__dso_daddr_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_daddr_snprintf() argument
1436 return _hist_entry__dso_snprintf(map, bf, size, width); in hist_entry__dso_daddr_snprintf()
1458 static int hist_entry__locked_snprintf(struct hist_entry *he, char *bf, in hist_entry__locked_snprintf() argument
1464 return repsep_snprintf(bf, size, "%.*s", width, out); in hist_entry__locked_snprintf()
1486 static int hist_entry__tlb_snprintf(struct hist_entry *he, char *bf, in hist_entry__tlb_snprintf() argument
1492 return repsep_snprintf(bf, size, "%-*s", width, out); in hist_entry__tlb_snprintf()
1514 static int hist_entry__lvl_snprintf(struct hist_entry *he, char *bf, in hist_entry__lvl_snprintf() argument
1520 return repsep_snprintf(bf, size, "%-*s", width, out); in hist_entry__lvl_snprintf()
1542 static int hist_entry__snoop_snprintf(struct hist_entry *he, char *bf, in hist_entry__snoop_snprintf() argument
1548 return repsep_snprintf(bf, size, "%-*s", width, out); in hist_entry__snoop_snprintf()
1611 static int hist_entry__dcacheline_snprintf(struct hist_entry *he, char *bf, in hist_entry__dcacheline_snprintf() argument
1636 return _hist_entry__sym_snprintf(ms, addr, level, bf, size, width); in hist_entry__dcacheline_snprintf()
1652 static int hist_entry__local_weight_snprintf(struct hist_entry *he, char *bf, in hist_entry__local_weight_snprintf() argument
1655 return repsep_snprintf(bf, size, "%-*llu", width, he->weight); in hist_entry__local_weight_snprintf()
1665 static int hist_entry__global_weight_snprintf(struct hist_entry *he, char *bf, in hist_entry__global_weight_snprintf() argument
1668 return repsep_snprintf(bf, size, "%-*llu", width, in hist_entry__global_weight_snprintf()
1685 static int hist_entry__local_ins_lat_snprintf(struct hist_entry *he, char *bf, in hist_entry__local_ins_lat_snprintf() argument
1688 return repsep_snprintf(bf, size, "%-*u", width, he->ins_lat); in hist_entry__local_ins_lat_snprintf()
1698 static int hist_entry__global_ins_lat_snprintf(struct hist_entry *he, char *bf, in hist_entry__global_ins_lat_snprintf() argument
1701 return repsep_snprintf(bf, size, "%-*u", width, in hist_entry__global_ins_lat_snprintf()
1718 static int hist_entry__global_p_stage_cyc_snprintf(struct hist_entry *he, char *bf, in hist_entry__global_p_stage_cyc_snprintf() argument
1721 return repsep_snprintf(bf, size, "%-*u", width, in hist_entry__global_p_stage_cyc_snprintf()
1726 static int hist_entry__p_stage_cyc_snprintf(struct hist_entry *he, char *bf, in hist_entry__p_stage_cyc_snprintf() argument
1729 return repsep_snprintf(bf, size, "%-*u", width, he->p_stage_cyc); in hist_entry__p_stage_cyc_snprintf()
1821 static int hist_entry__blocked_snprintf(struct hist_entry *he, char *bf, in hist_entry__blocked_snprintf() argument
1827 return repsep_snprintf(bf, size, "%.*s", width, out); in hist_entry__blocked_snprintf()
1850 static int hist_entry__phys_daddr_snprintf(struct hist_entry *he, char *bf, in hist_entry__phys_daddr_snprintf() argument
1859 ret += repsep_snprintf(bf + ret, size - ret, "[%c] ", he->level); in hist_entry__phys_daddr_snprintf()
1861 ret += repsep_snprintf(bf + ret, size - ret, "%-#.*llx", len, addr); in hist_entry__phys_daddr_snprintf()
1863 ret += repsep_snprintf(bf + ret, size - ret, "%-*s", width - ret, ""); in hist_entry__phys_daddr_snprintf()
1866 bf[width] = '\0'; in hist_entry__phys_daddr_snprintf()
1891 static int hist_entry__data_page_size_snprintf(struct hist_entry *he, char *bf, in hist_entry__data_page_size_snprintf() argument
1896 return repsep_snprintf(bf, size, "%-*s", width, in hist_entry__data_page_size_snprintf()
1916 static int hist_entry__code_page_size_snprintf(struct hist_entry *he, char *bf, in hist_entry__code_page_size_snprintf() argument
1921 return repsep_snprintf(bf, size, "%-*s", width, in hist_entry__code_page_size_snprintf()
1942 static int hist_entry__abort_snprintf(struct hist_entry *he, char *bf, in hist_entry__abort_snprintf() argument
1954 return repsep_snprintf(bf, size, "%-*s", width, out); in hist_entry__abort_snprintf()
1974 static int hist_entry__in_tx_snprintf(struct hist_entry *he, char *bf, in hist_entry__in_tx_snprintf() argument
1986 return repsep_snprintf(bf, size, "%-*s", width, out); in hist_entry__in_tx_snprintf()
2037 static int hist_entry__transaction_snprintf(struct hist_entry *he, char *bf, in hist_entry__transaction_snprintf() argument
2058 return repsep_snprintf(bf, size, "%-*s", width, buf); in hist_entry__transaction_snprintf()
2085 static int _hist_entry__sym_size_snprintf(struct symbol *sym, char *bf, in _hist_entry__sym_size_snprintf() argument
2089 return repsep_snprintf(bf, bf_size, "%*d", width, symbol__size(sym)); in _hist_entry__sym_size_snprintf()
2091 return repsep_snprintf(bf, bf_size, "%*s", width, "unknown"); in _hist_entry__sym_size_snprintf()
2094 static int hist_entry__sym_size_snprintf(struct hist_entry *he, char *bf, in hist_entry__sym_size_snprintf() argument
2097 return _hist_entry__sym_size_snprintf(he->ms.sym, bf, size, width); in hist_entry__sym_size_snprintf()
2124 static int _hist_entry__dso_size_snprintf(struct map *map, char *bf, in _hist_entry__dso_size_snprintf() argument
2128 return repsep_snprintf(bf, bf_size, "%*d", width, map__size(map)); in _hist_entry__dso_size_snprintf()
2130 return repsep_snprintf(bf, bf_size, "%*s", width, "unknown"); in _hist_entry__dso_size_snprintf()
2133 static int hist_entry__dso_size_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_size_snprintf() argument
2136 return _hist_entry__dso_size_snprintf(he->ms.map, bf, size, width); in hist_entry__dso_size_snprintf()
2164 static int hist_entry__addr_snprintf(struct hist_entry *he, char *bf, in hist_entry__addr_snprintf() argument
2173 return repsep_snprintf(bf, size, "%-#*llx", width, ip); in hist_entry__addr_snprintf()
2235 static int hist_entry__type_snprintf(struct hist_entry *he, char *bf, in hist_entry__type_snprintf() argument
2238 return repsep_snprintf(bf, size, "%-*s", width, he->mem_type->self.type_name); in hist_entry__type_snprintf()
2301 static int hist_entry__typeoff_snprintf(struct hist_entry *he, char *bf, in hist_entry__typeoff_snprintf() argument
2315 return repsep_snprintf(bf, size, "%s +%#x (%s)", he_type->self.type_name, in hist_entry__typeoff_snprintf()
2361 static int hist_entry__typecln_snprintf(struct hist_entry *he, char *bf, in hist_entry__typecln_snprintf() argument
2366 return repsep_snprintf(bf, size, "%s: cache-line %d", he_type->self.type_name, in hist_entry__typecln_snprintf()