Lines Matching refs:sbuf_printf

387 		sbuf_printf(header, "  %s", ps.thread_id ? " THR" : "PID");  in format_header()
388 sbuf_printf(header, "%*s", ps.jail ? TOP_JID_LEN : 0, in format_header()
390 sbuf_printf(header, " %-*.*s ", namelength, namelength, uname_field); in format_header()
396 sbuf_printf(header, "%*s ", TOP_SWAP_LEN - 1, "SWAP"); in format_header()
403 sbuf_printf(header, " %6s ", ps.wcpu ? "WCPU" : "CPU"); in format_header()
409 sbuf_printf(header, " %s%*s %-*.*s", in format_header()
1047 sbuf_printf(procbuf, "%5d ", (ps.thread_id) ? pp->ki_tid : pp->ki_pid); in format_next_process()
1050 sbuf_printf(procbuf, "%*d ", TOP_JID_LEN - 1, pp->ki_jid); in format_next_process()
1052 sbuf_printf(procbuf, "%-*.*s", namelength, namelength, (*get_userid)(pp->ki_ruid)); in format_next_process()
1053 sbuf_printf(procbuf, "%6ld ", rup->ru_nvcsw); in format_next_process()
1054 sbuf_printf(procbuf, "%6ld ", rup->ru_nivcsw); in format_next_process()
1055 sbuf_printf(procbuf, "%6ld ", rup->ru_inblock); in format_next_process()
1056 sbuf_printf(procbuf, "%6ld ", rup->ru_oublock); in format_next_process()
1057 sbuf_printf(procbuf, "%6ld ", rup->ru_majflt); in format_next_process()
1058 sbuf_printf(procbuf, "%6ld ", p_tot); in format_next_process()
1059 sbuf_printf(procbuf, "%6.2f%% ", s_tot == 0 ? 0.0 : (p_tot * 100.0 / s_tot)); in format_next_process()
1062 sbuf_printf(procbuf, "%5d ", (ps.thread_id) ? pp->ki_tid : pp->ki_pid); in format_next_process()
1064 sbuf_printf(procbuf, "%*d ", TOP_JID_LEN - 1, pp->ki_jid); in format_next_process()
1066 sbuf_printf(procbuf, "%-*.*s ", namelength, namelength, (*get_userid)(pp->ki_ruid)); in format_next_process()
1069 sbuf_printf(procbuf, "%4d ", pp->ki_numthreads); in format_next_process()
1071 sbuf_printf(procbuf, " "); in format_next_process()
1074 sbuf_printf(procbuf, "%3d ", pp->ki_pri.pri_level - PZERO); in format_next_process()
1075 sbuf_printf(procbuf, "%4s", format_nice(pp)); in format_next_process()
1076 sbuf_printf(procbuf, "%7s ", format_k(PROCSIZE(pp))); in format_next_process()
1077 sbuf_printf(procbuf, "%6s ", format_k(pagetok(pp->ki_rssize))); in format_next_process()
1079 sbuf_printf(procbuf, "%*s ", in format_next_process()
1083 sbuf_printf(procbuf, "%-6.6s ", status); in format_next_process()
1091 sbuf_printf(procbuf, "%3d ", cpu); in format_next_process()
1093 sbuf_printf(procbuf, "%6s ", format_time(cputime)); in format_next_process()
1094sbuf_printf(procbuf, "%6.2f%% ", ps.wcpu ? 100.0 * weighted_cpu(PCTCPU(pp), pp) : 100.0 * PCTCPU(p… in format_next_process()
1096 sbuf_printf(procbuf, "%s", printable(cmdbuf)); in format_next_process()