Home
last modified time | relevance | path

Searched refs:scnprintf (Results 1 – 19 of 19) sorted by relevance

/external/linux-tools-perf/src/tools/perf/ui/gtk/
Dannotate.c43 ret += scnprintf(buf, size, "%s", markup); in perf_gtk__get_percent()
44 ret += scnprintf(buf + ret, size - ret, "%6.2f%%", percent); in perf_gtk__get_percent()
46 ret += scnprintf(buf + ret, size - ret, "</span>"); in perf_gtk__get_percent()
61 return scnprintf(buf, size, "%"PRIx64, start + dl->offset); in perf_gtk__get_offset()
79 ret += scnprintf(buf, size, "%s", markup); in perf_gtk__get_line()
80 ret += scnprintf(buf + ret, size - ret, "%s", line); in perf_gtk__get_line()
82 ret += scnprintf(buf + ret, size - ret, "</span>"); in perf_gtk__get_line()
132 ret += scnprintf(s + ret, sizeof(s) - ret, " "); in perf_gtk__annotate_symbol()
Dhists.c18 ret += scnprintf(buf, size, markup); in __percent_color_snprintf()
20 ret += scnprintf(buf + ret, size - ret, " %6.2f%%", percent); in __percent_color_snprintf()
23 ret += scnprintf(buf + ret, size - ret, "</span>"); in __percent_color_snprintf()
130 scnprintf(bf, bfsize, "%s", cl->ms.sym->name); in callchain_list__sym_name()
132 scnprintf(bf, bfsize, "%#" PRIx64, cl->ip); in callchain_list__sym_name()
162 scnprintf(buf, sizeof(buf), "%5.2f%%", percent); in perf_gtk__add_callchain()
/external/linux-tools-perf/src/tools/perf/
Dbuiltin-trace.c41 return scnprintf(bf, size, "%#lx", arg); in syscall_arg__scnprintf_hex()
54 #define P_WHENCE(n) case SEEK_##n: return scnprintf(bf, size, #n) in syscall_arg__scnprintf_whence()
68 return scnprintf(bf, size, "%#x", whence); in syscall_arg__scnprintf_whence()
81 return scnprintf(bf, size, "NONE"); in syscall_arg__scnprintf_mmap_prot()
84 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \ in syscall_arg__scnprintf_mmap_prot()
99 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", prot); in syscall_arg__scnprintf_mmap_prot()
114 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \ in syscall_arg__scnprintf_mmap_flags()
143 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_mmap_flags()
157 #define P_MADV_BHV(n) case MADV_##n: return scnprintf(bf, size, #n) in syscall_arg__scnprintf_madvise_behavior()
188 return scnprintf(bf, size, "%#x", behavior); in syscall_arg__scnprintf_madvise_behavior()
[all …]
Dbuiltin-diff.c261 return scnprintf(buf, size, in formula_delta()
274 return scnprintf(buf, size, "%.0F / %.0F", new_period, old_period); in formula_ratio()
283 return scnprintf(buf, size, in formula_wdiff()
750 scnprintf(pfmt, 20, "%%%d.2f%%%%", dfmt->header_width - 1); in hpp__color_baseline()
754 return scnprintf(hpp->buf, hpp->size, "%*s", in hpp__color_baseline()
765 ret = scnprintf(buf, size, fmt, percent); in hpp__entry_baseline()
775 scnprintf(buf, size, "%" PRIu64, he->stat.period); in hpp__entry_unpair()
799 scnprintf(buf, size, "%+4.2F%%", diff); in hpp__entry_pair()
813 scnprintf(buf, size, "%14.6F", ratio); in hpp__entry_pair()
827 scnprintf(buf, size, "%14ld", wdiff); in hpp__entry_pair()
[all …]
Dbuiltin-kvm.c188 scnprintf(decode, 20, "%s", exit_reason); in exit_event_decode_key()
252 scnprintf(decode, 20, "%#lx:%s", (unsigned long)key->key, in mmio_event_decode_key()
295 scnprintf(decode, 20, "%#llx:%s", (unsigned long long)key->key, in ioport_event_decode_key()
/external/linux-tools-perf/src/tools/perf/util/
Devsel.c284 r += scnprintf(bf + r, size - r, "%c", mod); \ in perf_evsel__add_modifiers()
297 r += scnprintf(bf + r, size - r, "%.*s", attr->precise_ip, "ppp"); in perf_evsel__add_modifiers()
313 int r = scnprintf(bf, size, "%s", __perf_evsel__hw_name(evsel->attr.config)); in perf_evsel__hw_name()
339 int r = scnprintf(bf, size, "%s", __perf_evsel__sw_name(evsel->attr.config)); in perf_evsel__sw_name()
347 r = scnprintf(bf, size, "mem:0x%" PRIx64 ":", addr); in __perf_evsel__bp_name()
350 r += scnprintf(bf + r, size - r, "r"); in __perf_evsel__bp_name()
353 r += scnprintf(bf + r, size - r, "w"); in __perf_evsel__bp_name()
356 r += scnprintf(bf + r, size - r, "x"); in __perf_evsel__bp_name()
425 return scnprintf(bf, size, "%s-%s-%s", perf_evsel__hw_cache[type][0], in __perf_evsel__hw_cache_type_op_res_name()
430 return scnprintf(bf, size, "%s-%s", perf_evsel__hw_cache[type][0], in __perf_evsel__hw_cache_type_op_res_name()
[all …]
Dannotate.c38 return scnprintf(bf, size, "%-6.6s %s", ins->name, ops->raw); in ins__raw_scnprintf()
44 if (ins->ops->scnprintf) in ins__scnprintf()
45 return ins->ops->scnprintf(ins, bf, size, ops); in ins__scnprintf()
91 return scnprintf(bf, size, "%-6.6s %s", ins->name, ops->target.name); in call__scnprintf()
96 return scnprintf(bf, size, "%-6.6s *%" PRIx64, ins->name, ops->target.addr); in call__scnprintf()
101 .scnprintf = call__scnprintf,
126 return scnprintf(bf, size, "%-6.6s %" PRIx64, ins->name, ops->target.offset); in jump__scnprintf()
131 .scnprintf = jump__scnprintf,
201 printed = scnprintf(bf, size, "%-6.6s ", ins->name); in lock__scnprintf()
216 .scnprintf = lock__scnprintf,
[all …]
Dcolor.c186 r += scnprintf(bf, size, "%s", color); in __color_vsnprintf()
189 r += scnprintf(bf + r, size - r, "%s", PERF_COLOR_RESET); in __color_vsnprintf()
191 r += scnprintf(bf + r, size - r, "%s", trail); in __color_vsnprintf()
Dannotate.h40 int (*scnprintf)(struct ins *ins, char *bf, size_t size, member
Dheader.c298 len = scnprintf(filename, size, "%s%s%s", in build_id_cache__add_s()
314 len = scnprintf(linkname, size, "%s/.build-id/%.2s", in build_id_cache__add_s()
/external/linux-tools-perf/src/tools/perf/ui/
Dhist.c93 return scnprintf(hpp->buf, hpp->size, "%*s", len, _str); \
129 scnprintf, true); \
142 return __hpp__fmt(hpp, he, he_get_raw_##_field, fmt, scnprintf, false); \
250 ret += scnprintf(s + ret, size - ret, "%s", sep ?: " "); in hist_entry__sort_snprintf()
/external/linux-tools-perf/src/tools/perf/arch/
Dcommon.c79 scnprintf(buf, sizeof(buf), "%s/%s", path, name); in lookup_path()
96 scnprintf(buf, sizeof(buf), "%s%s", triplets[i], name); in lookup_triplets()
/external/linux-tools-perf/src/tools/perf/ui/browsers/
Dhists.c403 printed = scnprintf(bf, bfsize, "%s", cl->ms.sym->name); in callchain_list__sym_name()
405 printed = scnprintf(bf, bfsize, "%#" PRIx64, cl->ip); in callchain_list__sym_name()
408 scnprintf(bf + printed, bfsize - printed, " %s", in callchain_list__sym_name()
616 ret += scnprintf(hpp->buf, hpp->size, "%6.2f%%", percent); in __hpp__color_fmt()
647 ret += scnprintf(hpp->buf, hpp->size, in __hpp__color_fmt()
655 ret += scnprintf(hpp->buf, hpp->size, in __hpp__color_fmt()
670 ret += scnprintf(hpp->buf, hpp->size, in __hpp__color_fmt()
1164 scnprintf(filename, sizeof(filename), "perf.hist.%d", browser->print_seq); in hist_browser__dump()
1247 printed = scnprintf(bf, size, in hists__browser_title()
1256 printed += scnprintf(bf + printed, size - printed, in hists__browser_title()
[all …]
Dannotate.c131 printed = scnprintf(bf, sizeof(bf), "%*s ", in annotate_browser__write()
143 printed = scnprintf(bf, sizeof(bf), "%" PRIx64 ": ", addr); in annotate_browser__write()
148 printed = scnprintf(bf, sizeof(bf), "%*d ", in annotate_browser__write()
157 printed = scnprintf(bf, sizeof(bf), "%*" PRIx64 ": ", in annotate_browser__write()
160 printed = scnprintf(bf, sizeof(bf), "%*s ", in annotate_browser__write()
170 if (dl->ins && dl->ins->ops->scnprintf) { in annotate_browser__write()
/external/linux-tools-perf/src/tools/perf/arch/powerpc/util/
Dheader.c28 nb = scnprintf(buffer, sz, "%lu,%lu$", PVR_VER(pvr), PVR_REV(pvr)); in get_cpuid()
/external/linux-tools-perf/src/tools/perf/arch/x86/util/
Dheader.c51 nb = scnprintf(buffer, sz, "%s,%u,%u,%u$", vendor, family, model, step); in get_cpuid()
/external/linux-tools-perf/src/tools/perf/util/include/linux/
Dkernel.h84 static inline int scnprintf(char * buf, size_t size, const char * fmt, ...) in scnprintf() function
/external/linux-tools-perf/src/tools/perf/ui/stdio/
Dhist.c335 ret = scnprintf(hpp->buf, hpp->size, "%s", sep ?: " "); in hist_entry__period_snprintf()
/external/linux-tools-perf/src/tools/perf/tests/
Dparse-events.c1125 scnprintf(events_path, PATH_MAX, "%s/tracing/events", in count_tracepoints()
1144 scnprintf(sys_path, PATH_MAX, "%s/%s", in count_tracepoints()