Lines Matching full:printed

501 		size_t printed = scnprintf(bf, size, intfmt, val);  in strarray__scnprintf_suffix()  local
503 printed += scnprintf(bf + printed, size - printed, " /* %s??? */", sa->prefix); in strarray__scnprintf_suffix()
504 return printed; in strarray__scnprintf_suffix()
515 size_t printed = scnprintf(bf, size, intfmt, val); in strarray__scnprintf() local
517 printed += scnprintf(bf + printed, size - printed, " /* %s??? */", sa->prefix); in strarray__scnprintf()
518 return printed; in strarray__scnprintf()
561 size_t printed; in strarrays__scnprintf() local
575 printed = scnprintf(bf, size, intfmt, val); in strarrays__scnprintf()
577 printed += scnprintf(bf + printed, size - printed, " /* %s??? */", sas->entries[0]->prefix); in strarrays__scnprintf()
578 return printed; in strarrays__scnprintf()
803 size_t printed = 0; in syscall_arg__scnprintf_access_mode() local
810 printed += scnprintf(bf + printed, size - printed, "%s%s", #n, show_prefix ? suffix : ""); \ in syscall_arg__scnprintf_access_mode()
820 printed += scnprintf(bf + printed, size - printed, "|%#x", mode); in syscall_arg__scnprintf_access_mode()
822 return printed; in syscall_arg__scnprintf_access_mode()
837 int printed = 0, flags = arg->val; in syscall_arg__scnprintf_pipe_flags() local
841printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in syscall_arg__scnprintf_pipe_flags()
850 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_pipe_flags()
852 return printed; in syscall_arg__scnprintf_pipe_flags()
869 int printed = 0, flags = arg->val; in syscall_arg__scnprintf_getrandom_flags() local
873printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in syscall_arg__scnprintf_getrandom_flags()
882 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_getrandom_flags()
884 return printed; in syscall_arg__scnprintf_getrandom_flags()
1242 size_t printed = fprintf(fp, "("); in fprintf_duration() local
1245 printed += fprintf(fp, " "); in fprintf_duration()
1247 printed += color_fprintf(fp, PERF_COLOR_RED, "%6.3f ms", duration); in fprintf_duration()
1249 printed += color_fprintf(fp, PERF_COLOR_YELLOW, "%6.3f ms", duration); in fprintf_duration()
1251 printed += color_fprintf(fp, PERF_COLOR_NORMAL, "%6.3f ms", duration); in fprintf_duration()
1252 return printed + fprintf(fp, "): "); in fprintf_duration()
1460 size_t printed = scnprintf(bf, size, "%d", fd); in syscall_arg__scnprintf_fd() local
1464 printed += scnprintf(bf + printed, size - printed, "<%s>", path); in syscall_arg__scnprintf_fd()
1466 return printed; in syscall_arg__scnprintf_fd()
1471 size_t printed = scnprintf(bf, size, "%d", fd); in pid__scnprintf_fd() local
1478 printed += scnprintf(bf + printed, size - printed, "<%s>", path); in pid__scnprintf_fd()
1483 return printed; in pid__scnprintf_fd()
1490 size_t printed = syscall_arg__scnprintf_fd(bf, size, arg); in syscall_arg__scnprintf_close_fd() local
1496 return printed; in syscall_arg__scnprintf_close_fd()
1511 size_t printed = scnprintf(bf, size, "\"%.*s\"", augmented_arg->size, augmented_arg->value); in syscall_arg__scnprintf_augmented_string() local
1521 return printed; in syscall_arg__scnprintf_augmented_string()
1583 size_t printed = 0; in trace__fprintf_comm_tid() local
1587 printed += fprintf(fp, "%.14s/", thread__comm_str(thread)); in trace__fprintf_comm_tid()
1588 printed += fprintf(fp, "%d ", thread__tid(thread)); in trace__fprintf_comm_tid()
1591 return printed; in trace__fprintf_comm_tid()
1597 size_t printed = 0; in trace__fprintf_entry_head() local
1600 printed = trace__fprintf_tstamp(trace, tstamp, fp); in trace__fprintf_entry_head()
1602 printed += fprintf_duration(duration, duration_calculated, fp); in trace__fprintf_entry_head()
1603 return printed + trace__fprintf_comm_tid(trace, thread, fp); in trace__fprintf_entry_head()
2038 size_t printed = 0; in syscall__scnprintf_args() local
2092 printed += scnprintf(bf + printed, size - printed, "%s", printed ? ", " : ""); in syscall__scnprintf_args()
2095 printed += scnprintf(bf + printed, size - printed, "%s: ", field->name); in syscall__scnprintf_args()
2097 printed += syscall_arg_fmt__scnprintf_val(&sc->arg_fmt[arg.idx], in syscall__scnprintf_args()
2098 bf + printed, size - printed, &arg, val); in syscall__scnprintf_args()
2110 if (printed) in syscall__scnprintf_args()
2111 printed += scnprintf(bf + printed, size - printed, ", "); in syscall__scnprintf_args()
2112 printed += syscall__scnprintf_name(sc, bf + printed, size - printed, &arg); in syscall__scnprintf_args()
2113printed += syscall_arg_fmt__scnprintf_val(&sc->arg_fmt[arg.idx], bf + printed, size - printed, &ar… in syscall__scnprintf_args()
2120 return printed; in syscall__scnprintf_args()
2252 size_t printed; local
2263printed = trace__fprintf_entry_head(trace, trace->current, 0, false, ttrace->entry_time, trace->o…
2264 printed += len = fprintf(trace->output, "%s)", ttrace->entry_str);
2267 printed += fprintf(trace->output, "%-*s", trace->args_alignment - 4 - len, " ");
2269 printed += fprintf(trace->output, " ...\n");
2274 return printed;
2280 int printed = 0; local
2285 printed += fprintf(trace->output, "%22s %10.3f %s %d/%d [%d]\n",
2291 return printed;
2334 int printed = 0; local
2376 printed += scnprintf(msg + printed, trace__entry_str_size - printed, "%s(", sc->name);
2378 printed += syscall__scnprintf_args(sc, msg + printed, trace__entry_str_size - printed,
2386 printed = fprintf(trace->output, "%s)", ttrace->entry_str);
2387 if (trace->args_alignment > printed)
2388 alignment = trace->args_alignment - printed;
2417 size_t printed = 0; local
2433printed += syscall__scnprintf_args(sc, msg, sizeof(msg), args, augmented_args, augmented_args_size…
2434 fprintf(trace->output, "%.*s", (int)printed, msg);
2487 int id = perf_evsel__sc_tp_uint(evsel, id, sample), err = -1, callchain_ret = 0, printed = 0; local
2538 printed = fprintf(trace->output, "%s", ttrace->entry_str);
2540 printed += fprintf(trace->output, " ... [");
2542 printed += 9;
2543 printed += fprintf(trace->output, "]: %s()", sc->name);
2546 printed++; /* the closing ')' */
2548 if (alignment > printed)
2549 alignment -= printed;
2745 size_t printed = 0; local
2799 printed += scnprintf(bf + printed, size - printed, "%s", printed ? ", " : "");
2802 printed += scnprintf(bf + printed, size - printed, "%s: ", field->name);
2804 printed += syscall_arg_fmt__scnprintf_val(arg, bf + printed, size - printed, &syscall_arg, val);
2807 return printed + fprintf(trace->output, "%.*s", (int)printed, bf);
4209 size_t printed; local
4211 printed = fprintf(fp, "\n Summary of events:\n\n");
4213 return printed;
4233 size_t printed = 0; local
4241 printed += fprintf(fp, "\n");
4243printed += fprintf(fp, " syscall calls errors total min avg max …
4244printed += fprintf(fp, " (msec) (msec) (msec) (msec) …
4245printed += fprintf(fp, " --------------- -------- ------ -------- --------- --------- ---------…
4260 printed += fprintf(fp, " %-15s", sc->name);
4261 printed += fprintf(fp, " %8" PRIu64 " %6" PRIu64 " %9.3f %9.3f %9.3f",
4263 printed += fprintf(fp, " %9.3f %9.2f%%\n", max, pct);
4278 printed += fprintf(fp, "\n\n");
4280 return printed;
4285 size_t printed = 0; local
4294 printed += fprintf(fp, " %s (%d), ", thread__comm_str(thread), thread__tid(thread));
4295 printed += fprintf(fp, "%lu events, ", ttrace->nr_events);
4296 printed += fprintf(fp, "%.1f%%", ratio);
4298 printed += fprintf(fp, ", %lu majfaults", ttrace->pfmaj);
4300 printed += fprintf(fp, ", %lu minfaults", ttrace->pfmin);
4302 printed += fprintf(fp, ", %.3f msec\n", ttrace->runtime_ms);
4304 ++printed;
4306 printed += thread__dump_stats(ttrace, trace, fp);
4308 return printed;
4327 size_t printed = trace__fprintf_threads_header(fp); local
4340 printed += trace__fprintf_thread(fp, threads_entry->thread, trace);
4344 return printed;