Lines Matching refs:sbuf_printf

411 		sbuf_printf(header, "  %s", ps.thread_id ? " THR" : "PID");  in format_header()
412 sbuf_printf(header, "%*s", ps.jail ? TOP_JID_LEN : 0, in format_header()
414 sbuf_printf(header, " %-*.*s ", namelength, namelength, uname_field); in format_header()
420 sbuf_printf(header, "%*s ", TOP_SWAP_LEN - 1, "SWAP"); in format_header()
427 sbuf_printf(header, " %6s ", ps.wcpu ? "WCPU" : "CPU"); in format_header()
433 sbuf_printf(header, " %s%*s %-*.*s", in format_header()
1110 sbuf_printf(procbuf, "%5d ", (ps.thread_id) ? pp->ki_tid : pp->ki_pid); in format_next_process()
1113 sbuf_printf(procbuf, "%*d ", TOP_JID_LEN - 1, pp->ki_jid); in format_next_process()
1115 sbuf_printf(procbuf, "%-*.*s", namelength, namelength, (*get_userid)(pp->ki_ruid)); in format_next_process()
1116 sbuf_printf(procbuf, "%6ld ", rup->ru_nvcsw); in format_next_process()
1117 sbuf_printf(procbuf, "%6ld ", rup->ru_nivcsw); in format_next_process()
1118 sbuf_printf(procbuf, "%6ld ", rup->ru_inblock); in format_next_process()
1119 sbuf_printf(procbuf, "%6ld ", rup->ru_oublock); in format_next_process()
1120 sbuf_printf(procbuf, "%6ld ", rup->ru_majflt); in format_next_process()
1121 sbuf_printf(procbuf, "%6ld ", p_tot); in format_next_process()
1122 sbuf_printf(procbuf, "%6.2f%% ", s_tot == 0 ? 0.0 : (p_tot * 100.0 / s_tot)); in format_next_process()
1125 sbuf_printf(procbuf, "%5d ", (ps.thread_id) ? pp->ki_tid : pp->ki_pid); in format_next_process()
1127 sbuf_printf(procbuf, "%*d ", TOP_JID_LEN - 1, pp->ki_jid); in format_next_process()
1129 sbuf_printf(procbuf, "%-*.*s ", namelength, namelength, (*get_userid)(pp->ki_ruid)); in format_next_process()
1132 sbuf_printf(procbuf, "%4d ", pp->ki_numthreads); in format_next_process()
1134 sbuf_printf(procbuf, " "); in format_next_process()
1137 sbuf_printf(procbuf, "%3d ", pp->ki_pri.pri_level - PZERO); in format_next_process()
1138 sbuf_printf(procbuf, "%4s", format_nice(pp)); in format_next_process()
1139 sbuf_printf(procbuf, "%7s ", format_k(PROCSIZE(pp))); in format_next_process()
1140 sbuf_printf(procbuf, "%6s ", format_k(pagetok(pp->ki_rssize))); in format_next_process()
1142 sbuf_printf(procbuf, "%*s ", in format_next_process()
1146 sbuf_printf(procbuf, "%-6.6s ", status); in format_next_process()
1154 sbuf_printf(procbuf, "%3d ", cpu); in format_next_process()
1156 sbuf_printf(procbuf, "%6s ", format_time(cputime)); in format_next_process()
1157sbuf_printf(procbuf, "%6.2f%% ", ps.wcpu ? 100.0 * weighted_cpu(PCTCPU(pp), pp) : 100.0 * PCTCPU(p… in format_next_process()
1159 sbuf_printf(procbuf, "%s", cmdbuf); in format_next_process()