Lines Matching refs:sbuf_printf
484 sbuf_printf(header, " %s", ps.thread_id ? " THR" : "PID"); in format_header()
485 sbuf_printf(header, "%*s", ps.jail ? TOP_JID_LEN : 0, in format_header()
487 sbuf_printf(header, " %-*.*s ", namelength, namelength, uname_field); in format_header()
493 sbuf_printf(header, "%*s ", TOP_SWAP_LEN - 1, "SWAP"); in format_header()
500 sbuf_printf(header, " %6s ", ps.wcpu ? "WCPU" : "CPU"); in format_header()
506 sbuf_printf(header, " %s%*s %-*.*s", in format_header()
1223 sbuf_printf(procbuf, "%5d ", (ps.thread_id) ? pp->ki_tid : pp->ki_pid); in format_next_process()
1226 sbuf_printf(procbuf, "%*d ", TOP_JID_LEN - 1, pp->ki_jid); in format_next_process()
1228 sbuf_printf(procbuf, "%-*.*s", namelength, namelength, (*get_userid)(pp->ki_ruid)); in format_next_process()
1229 sbuf_printf(procbuf, "%6ld ", rup->ru_nvcsw); in format_next_process()
1230 sbuf_printf(procbuf, "%6ld ", rup->ru_nivcsw); in format_next_process()
1231 sbuf_printf(procbuf, "%6ld ", rup->ru_inblock); in format_next_process()
1232 sbuf_printf(procbuf, "%6ld ", rup->ru_oublock); in format_next_process()
1233 sbuf_printf(procbuf, "%6ld ", rup->ru_majflt); in format_next_process()
1234 sbuf_printf(procbuf, "%6ld ", p_tot); in format_next_process()
1235 sbuf_printf(procbuf, "%6.2f%% ", s_tot == 0 ? 0.0 : (p_tot * 100.0 / s_tot)); in format_next_process()
1238 sbuf_printf(procbuf, "%5d ", (ps.thread_id) ? pp->ki_tid : pp->ki_pid); in format_next_process()
1240 sbuf_printf(procbuf, "%*d ", TOP_JID_LEN - 1, pp->ki_jid); in format_next_process()
1242 sbuf_printf(procbuf, "%-*.*s ", namelength, namelength, (*get_userid)(pp->ki_ruid)); in format_next_process()
1245 sbuf_printf(procbuf, "%4d ", pp->ki_numthreads); in format_next_process()
1247 sbuf_printf(procbuf, " "); in format_next_process()
1250 sbuf_printf(procbuf, "%3d ", pp->ki_pri.pri_level - PUSER); in format_next_process()
1251 sbuf_printf(procbuf, "%4s", format_nice(pp)); in format_next_process()
1252 sbuf_printf(procbuf, "%7s ", format_k(PROCSIZE(pp))); in format_next_process()
1253 sbuf_printf(procbuf, "%6s ", format_k(pagetok(pp->ki_rssize))); in format_next_process()
1255 sbuf_printf(procbuf, "%*s ", in format_next_process()
1259 sbuf_printf(procbuf, "%-6.6s ", status); in format_next_process()
1267 sbuf_printf(procbuf, "%3d ", cpu); in format_next_process()
1269 sbuf_printf(procbuf, "%6s ", format_time(cputime)); in format_next_process()
1270 …sbuf_printf(procbuf, "%6.2f%% ", ps.wcpu ? 100.0 * weighted_cpu(PCTCPU(pp), pp) : 100.0 * PCTCPU(p… in format_next_process()
1272 sbuf_printf(procbuf, "%s", cmdbuf); in format_next_process()