* Fill in a kinfo_proc structure for the specified process. * Must be called with the target process locked. */
| 1323 | * Must be called with the target process locked. |
| 1324 | */ |
| 1325 | void |
| 1326 | fill_kinfo_proc(struct proc *p, struct kinfo_proc *kp) |
| 1327 | { |
| 1328 | MPASS(FIRST_THREAD_IN_PROC(p) != NULL); |
| 1329 | |
| 1330 | bzero(kp, sizeof(*kp)); |
| 1331 | |
| 1332 | fill_kinfo_proc_pgrp(p,kp); |
| 1333 | fill_kinfo_proc_only(p, kp); |
| 1334 | fill_kinfo_thread(FIRST_THREAD_IN_PROC(p), kp, 0); |
| 1335 | fill_kinfo_aggregate(p, kp); |
| 1336 | } |
| 1337 | |
| 1338 | struct pstats * |
| 1339 | pstats_alloc(void) |
no test coverage detected