Lines Matching full:printed
496 size_t printed = scnprintf(bf, size, intfmt, val); in strarray__scnprintf_suffix() local
498 printed += scnprintf(bf + printed, size - printed, " /* %s??? */", sa->prefix); in strarray__scnprintf_suffix()
499 return printed; in strarray__scnprintf_suffix()
510 size_t printed = scnprintf(bf, size, intfmt, val); in strarray__scnprintf() local
512 printed += scnprintf(bf + printed, size - printed, " /* %s??? */", sa->prefix); in strarray__scnprintf()
513 return printed; in strarray__scnprintf()
556 size_t printed; in strarrays__scnprintf() local
570 printed = scnprintf(bf, size, intfmt, val); in strarrays__scnprintf()
572 printed += scnprintf(bf + printed, size - printed, " /* %s??? */", sas->entries[0]->prefix); in strarrays__scnprintf()
573 return printed; in strarrays__scnprintf()
793 size_t printed = 0; in syscall_arg__scnprintf_access_mode() local
800 printed += scnprintf(bf + printed, size - printed, "%s%s", #n, show_prefix ? suffix : ""); \ in syscall_arg__scnprintf_access_mode()
810 printed += scnprintf(bf + printed, size - printed, "|%#x", mode); in syscall_arg__scnprintf_access_mode()
812 return printed; in syscall_arg__scnprintf_access_mode()
827 int printed = 0, flags = arg->val; in syscall_arg__scnprintf_pipe_flags() local
831 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in syscall_arg__scnprintf_pipe_flags()
840 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_pipe_flags()
842 return printed; in syscall_arg__scnprintf_pipe_flags()
859 int printed = 0, flags = arg->val; in syscall_arg__scnprintf_getrandom_flags() local
863 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in syscall_arg__scnprintf_getrandom_flags()
872 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_getrandom_flags()
874 return printed; in syscall_arg__scnprintf_getrandom_flags()
1232 size_t printed = fprintf(fp, "("); in fprintf_duration() local
1235 printed += fprintf(fp, " "); in fprintf_duration()
1237 printed += color_fprintf(fp, PERF_COLOR_RED, "%6.3f ms", duration); in fprintf_duration()
1239 printed += color_fprintf(fp, PERF_COLOR_YELLOW, "%6.3f ms", duration); in fprintf_duration()
1241 printed += color_fprintf(fp, PERF_COLOR_NORMAL, "%6.3f ms", duration); in fprintf_duration()
1242 return printed + fprintf(fp, "): "); in fprintf_duration()
1422 size_t printed = scnprintf(bf, size, "%d", fd); in syscall_arg__scnprintf_fd() local
1426 printed += scnprintf(bf + printed, size - printed, "<%s>", path); in syscall_arg__scnprintf_fd()
1428 return printed; in syscall_arg__scnprintf_fd()
1433 size_t printed = scnprintf(bf, size, "%d", fd); in pid__scnprintf_fd() local
1440 printed += scnprintf(bf + printed, size - printed, "<%s>", path); in pid__scnprintf_fd()
1445 return printed; in pid__scnprintf_fd()
1452 size_t printed = syscall_arg__scnprintf_fd(bf, size, arg); in syscall_arg__scnprintf_close_fd() local
1458 return printed; in syscall_arg__scnprintf_close_fd()
1473 size_t printed = scnprintf(bf, size, "\"%.*s\"", augmented_arg->size, augmented_arg->value); in syscall_arg__scnprintf_augmented_string() local
1483 return printed; in syscall_arg__scnprintf_augmented_string()
1538 size_t printed = 0; in trace__fprintf_comm_tid() local
1542 printed += fprintf(fp, "%.14s/", thread__comm_str(thread)); in trace__fprintf_comm_tid()
1543 printed += fprintf(fp, "%d ", thread->tid); in trace__fprintf_comm_tid()
1546 return printed; in trace__fprintf_comm_tid()
1552 size_t printed = 0; in trace__fprintf_entry_head() local
1555 printed = trace__fprintf_tstamp(trace, tstamp, fp); in trace__fprintf_entry_head()
1557 printed += fprintf_duration(duration, duration_calculated, fp); in trace__fprintf_entry_head()
1558 return printed + trace__fprintf_comm_tid(trace, thread, fp); in trace__fprintf_entry_head()
1982 size_t printed = 0; in syscall__scnprintf_args() local
2036 printed += scnprintf(bf + printed, size - printed, "%s", printed ? ", " : ""); in syscall__scnprintf_args()
2039 printed += scnprintf(bf + printed, size - printed, "%s: ", field->name); in syscall__scnprintf_args()
2041 printed += syscall_arg_fmt__scnprintf_val(&sc->arg_fmt[arg.idx], in syscall__scnprintf_args()
2042 bf + printed, size - printed, &arg, val); in syscall__scnprintf_args()
2054 if (printed) in syscall__scnprintf_args()
2055 printed += scnprintf(bf + printed, size - printed, ", "); in syscall__scnprintf_args()
2056 printed += syscall__scnprintf_name(sc, bf + printed, size - printed, &arg); in syscall__scnprintf_args()
2057 …printed += syscall_arg_fmt__scnprintf_val(&sc->arg_fmt[arg.idx], bf + printed, size - printed, &ar… in syscall__scnprintf_args()
2064 return printed; in syscall__scnprintf_args()
2201 size_t printed; local
2212 …printed = trace__fprintf_entry_head(trace, trace->current, 0, false, ttrace->entry_time, trace->o…
2213 printed += len = fprintf(trace->output, "%s)", ttrace->entry_str);
2216 printed += fprintf(trace->output, "%-*s", trace->args_alignment - 4 - len, " ");
2218 printed += fprintf(trace->output, " ...\n");
2223 return printed;
2229 int printed = 0; local
2234 printed += fprintf(trace->output, "%22s %10.3f %s %d/%d [%d]\n",
2240 return printed;
2275 int printed = 0; local
2317 printed += scnprintf(msg + printed, trace__entry_str_size - printed, "%s(", sc->name);
2319 printed += syscall__scnprintf_args(sc, msg + printed, trace__entry_str_size - printed,
2327 printed = fprintf(trace->output, "%s)", ttrace->entry_str);
2328 if (trace->args_alignment > printed)
2329 alignment = trace->args_alignment - printed;
2425 int id = perf_evsel__sc_tp_uint(evsel, id, sample), err = -1, callchain_ret = 0, printed = 0; local
2474 printed = fprintf(trace->output, "%s", ttrace->entry_str);
2476 printed += fprintf(trace->output, " ... [");
2478 printed += 9;
2479 printed += fprintf(trace->output, "]: %s()", sc->name);
2482 printed++; /* the closing ')' */
2484 if (alignment > printed)
2485 alignment -= printed;
2681 size_t printed = 0; local
2733 printed += scnprintf(bf + printed, size - printed, "%s", printed ? ", " : "");
2740 printed += scnprintf(bf + printed, size - printed, "%s: ", field->name);
2742 printed += syscall_arg_fmt__scnprintf_val(arg, bf + printed, size - printed, &syscall_arg, val);
2745 return printed + fprintf(trace->output, "%s", bf);
2758 * have already been considered/printed.
4283 size_t printed; local
4285 printed = fprintf(fp, "\n Summary of events:\n\n");
4287 return printed;
4307 size_t printed = 0; local
4315 printed += fprintf(fp, "\n");
4317 …printed += fprintf(fp, " syscall calls errors total min avg max …
4318 …printed += fprintf(fp, " (msec) (msec) (msec) (msec) …
4319 …printed += fprintf(fp, " --------------- -------- ------ -------- --------- --------- ---------…
4334 printed += fprintf(fp, " %-15s", sc->name);
4335 printed += fprintf(fp, " %8" PRIu64 " %6" PRIu64 " %9.3f %9.3f %9.3f",
4337 printed += fprintf(fp, " %9.3f %9.2f%%\n", max, pct);
4352 printed += fprintf(fp, "\n\n");
4354 return printed;
4359 size_t printed = 0; local
4368 printed += fprintf(fp, " %s (%d), ", thread__comm_str(thread), thread->tid);
4369 printed += fprintf(fp, "%lu events, ", ttrace->nr_events);
4370 printed += fprintf(fp, "%.1f%%", ratio);
4372 printed += fprintf(fp, ", %lu majfaults", ttrace->pfmaj);
4374 printed += fprintf(fp, ", %lu minfaults", ttrace->pfmin);
4376 printed += fprintf(fp, ", %.3f msec\n", ttrace->runtime_ms);
4378 ++printed;
4380 printed += thread__dump_stats(ttrace, trace, fp);
4382 return printed;
4399 size_t printed = trace__fprintf_threads_header(fp); local
4412 printed += trace__fprintf_thread(fp, threads_entry->thread, trace);
4416 return printed;