Lines Matching refs:sbuf_printf
404 sbuf_printf(header, " %s", ps.thread_id ? " THR" : "PID"); in format_header()
405 sbuf_printf(header, "%*s", ps.jail ? TOP_JID_LEN : 0, in format_header()
407 sbuf_printf(header, " %-*.*s ", namelength, namelength, uname_field); in format_header()
413 sbuf_printf(header, "%*s ", TOP_SWAP_LEN - 1, "SWAP"); in format_header()
420 sbuf_printf(header, " %6s ", ps.wcpu ? "WCPU" : "CPU"); in format_header()
426 sbuf_printf(header, " %s%*s %-*.*s", in format_header()
1104 sbuf_printf(procbuf, "%5d ", (ps.thread_id) ? pp->ki_tid : pp->ki_pid); in format_next_process()
1107 sbuf_printf(procbuf, "%*d ", TOP_JID_LEN - 1, pp->ki_jid); in format_next_process()
1109 sbuf_printf(procbuf, "%-*.*s", namelength, namelength, (*get_userid)(pp->ki_ruid)); in format_next_process()
1110 sbuf_printf(procbuf, "%6ld ", rup->ru_nvcsw); in format_next_process()
1111 sbuf_printf(procbuf, "%6ld ", rup->ru_nivcsw); in format_next_process()
1112 sbuf_printf(procbuf, "%6ld ", rup->ru_inblock); in format_next_process()
1113 sbuf_printf(procbuf, "%6ld ", rup->ru_oublock); in format_next_process()
1114 sbuf_printf(procbuf, "%6ld ", rup->ru_majflt); in format_next_process()
1115 sbuf_printf(procbuf, "%6ld ", p_tot); in format_next_process()
1116 sbuf_printf(procbuf, "%6.2f%% ", s_tot == 0 ? 0.0 : (p_tot * 100.0 / s_tot)); in format_next_process()
1119 sbuf_printf(procbuf, "%5d ", (ps.thread_id) ? pp->ki_tid : pp->ki_pid); in format_next_process()
1121 sbuf_printf(procbuf, "%*d ", TOP_JID_LEN - 1, pp->ki_jid); in format_next_process()
1123 sbuf_printf(procbuf, "%-*.*s ", namelength, namelength, (*get_userid)(pp->ki_ruid)); in format_next_process()
1126 sbuf_printf(procbuf, "%4d ", pp->ki_numthreads); in format_next_process()
1128 sbuf_printf(procbuf, " "); in format_next_process()
1131 sbuf_printf(procbuf, "%3d ", pp->ki_pri.pri_level - PZERO); in format_next_process()
1132 sbuf_printf(procbuf, "%4s", format_nice(pp)); in format_next_process()
1133 sbuf_printf(procbuf, "%7s ", format_k(PROCSIZE(pp))); in format_next_process()
1134 sbuf_printf(procbuf, "%6s ", format_k(pagetok(pp->ki_rssize))); in format_next_process()
1136 sbuf_printf(procbuf, "%*s ", in format_next_process()
1140 sbuf_printf(procbuf, "%-6.6s ", status); in format_next_process()
1148 sbuf_printf(procbuf, "%3d ", cpu); in format_next_process()
1150 sbuf_printf(procbuf, "%6s ", format_time(cputime)); in format_next_process()
1151 …sbuf_printf(procbuf, "%6.2f%% ", ps.wcpu ? 100.0 * weighted_cpu(PCTCPU(pp), pp) : 100.0 * PCTCPU(p… in format_next_process()
1153 sbuf_printf(procbuf, "%s", cmdbuf); in format_next_process()