Lines Matching refs:s
135 const struct taskstats* s = &stats->stats; in print_task_stats() local
138 printf("%-25s%d\n", "Stats version:", s->version); in print_task_stats()
139 printf("%-25s%d\n", "Exit code:", s->ac_exitcode); in print_task_stats()
140 printf("%-25s0x%x\n", "Flags:", s->ac_flag); in print_task_stats()
141 printf("%-25s%d\n", "Nice value:", s->ac_nice); in print_task_stats()
142 printf("%-25s%s\n", "Command name:", s->ac_comm); in print_task_stats()
143 printf("%-25s%d\n", "Scheduling discipline:", s->ac_sched); in print_task_stats()
144 printf("%-25s%d\n", "UID:", s->ac_uid); in print_task_stats()
145 printf("%-25s%d\n", "GID:", s->ac_gid); in print_task_stats()
146 printf("%-25s%d\n", "PID:", s->ac_pid); in print_task_stats()
147 printf("%-25s%d\n", "PPID:", s->ac_ppid); in print_task_stats()
150 time_t begin_time = s->ac_btime; in print_task_stats()
153 printf("%-25s%d sec\n", "Begin time:", s->ac_btime); in print_task_stats()
155 printf("%-25s%llu usec\n", "Elapsed time:", s->ac_etime); in print_task_stats()
156 printf("%-25s%llu usec\n", "User CPU time:", s->ac_utime); in print_task_stats()
157 printf("%-25s%llu\n", "Minor page faults:", s->ac_minflt); in print_task_stats()
158 printf("%-25s%llu\n", "Major page faults:", s->ac_majflt); in print_task_stats()
159 printf("%-25s%llu usec\n", "Scaled user time:", s->ac_utimescaled); in print_task_stats()
160 printf("%-25s%llu usec\n", "Scaled system time:", s->ac_stimescaled); in print_task_stats()
174 s->cpu_count, in print_task_stats()
175 s->cpu_delay_total, in print_task_stats()
176 average_ns(s->cpu_delay_total, s->cpu_count), in print_task_stats()
177 s->cpu_run_real_total, in print_task_stats()
178 s->cpu_scaled_run_real_total, in print_task_stats()
179 s->cpu_run_virtual_total); in print_task_stats()
181 s->blkio_count, in print_task_stats()
182 s->blkio_delay_total, in print_task_stats()
183 average_ns(s->blkio_delay_total, s->blkio_count)); in print_task_stats()
185 s->swapin_count, in print_task_stats()
186 s->swapin_delay_total, in print_task_stats()
187 average_ns(s->swapin_delay_total, s->swapin_count)); in print_task_stats()
189 s->freepages_count, in print_task_stats()
190 s->freepages_delay_total, in print_task_stats()
191 average_ns(s->freepages_delay_total, s->freepages_count)); in print_task_stats()
195 s->cpu_count, in print_task_stats()
196 s->cpu_delay_total / ms_per_ns, in print_task_stats()
197 average_ms(s->cpu_delay_total, s->cpu_count), in print_task_stats()
198 s->cpu_run_real_total / ms_per_ns, in print_task_stats()
199 s->cpu_scaled_run_real_total / ms_per_ns, in print_task_stats()
200 s->cpu_run_virtual_total / ms_per_ns); in print_task_stats()
202 s->blkio_count, in print_task_stats()
203 s->blkio_delay_total / ms_per_ns, in print_task_stats()
204 average_ms(s->blkio_delay_total, s->blkio_count)); in print_task_stats()
206 s->swapin_count, in print_task_stats()
207 s->swapin_delay_total / ms_per_ns, in print_task_stats()
208 average_ms(s->swapin_delay_total, s->swapin_count)); in print_task_stats()
210 s->freepages_count, in print_task_stats()
211 s->freepages_delay_total / ms_per_ns, in print_task_stats()
212 average_ms(s->freepages_delay_total, s->freepages_count)); in print_task_stats()
217 if (human_readable && s->ac_stime) { in print_task_stats()
219 (double)s->coremem / s->ac_stime); in print_task_stats()
221 (double)s->virtmem / s->ac_stime); in print_task_stats()
223 printf("%-25s%llu MB\n", "Accumulated RSS usage:", s->coremem); in print_task_stats()
224 printf("%-25s%llu MB\n", "Accumulated VM usage:", s->virtmem); in print_task_stats()
226 printf("%-25s%llu KB\n", "RSS high water mark:", s->hiwater_rss); in print_task_stats()
227 printf("%-25s%llu KB\n", "VM high water mark:", s->hiwater_vm); in print_task_stats()
228 printf("%-25s%llu\n", "IO bytes read:", s->read_char); in print_task_stats()
229 printf("%-25s%llu\n", "IO bytes written:", s->write_char); in print_task_stats()
230 printf("%-25s%llu\n", "IO read syscalls:", s->read_syscalls); in print_task_stats()
231 printf("%-25s%llu\n", "IO write syscalls:", s->write_syscalls); in print_task_stats()
235 printf("%-25s%llu\n", "Voluntary switches:", s->nvcsw); in print_task_stats()
236 printf("%-25s%llu\n", "Involuntary switches:", s->nivcsw); in print_task_stats()
239 if (s->version > 8) { in print_task_stats()
240 printf("%-25s%llu\n", "Thrashing count:", s->thrashing_count); in print_task_stats()
241 printf("%-25s%llu\n", "Thrashing delay total:", s->thrashing_delay_total); in print_task_stats()