Lines Matching refs:pid
150 tslog_user(pid_t pid, pid_t ppid, const char * execname, const char * namei) in tslog_user() argument
155 if (procs[pid].reused) in tslog_user()
161 if (procs[pid].ppid) { in tslog_user()
162 procs[pid].reused = 1; in tslog_user()
167 procs[pid].ppid = ppid; in tslog_user()
168 procs[pid].tsc_forked = tsc; in tslog_user()
174 if (procs[pid].execname != NULL) in tslog_user()
175 free(procs[pid].execname, M_TSLOGUSER); in tslog_user()
176 procs[pid].execname = strdup(execname, M_TSLOGUSER); in tslog_user()
182 if (procs[pid].namei == NULL) in tslog_user()
183 procs[pid].namei = strdup(namei, M_TSLOGUSER); in tslog_user()
188 procs[pid].tsc_exited = tsc; in tslog_user()
196 pid_t pid; in sysctl_debug_tslog_user() local
201 for (pid = 0; pid <= PID_MAX; pid++) { in sysctl_debug_tslog_user()
202 sbuf_printf(sb, "%zu", (size_t)pid); in sysctl_debug_tslog_user()
203 sbuf_printf(sb, " %zu", (size_t)procs[pid].ppid); in sysctl_debug_tslog_user()
205 (unsigned long long)procs[pid].tsc_forked); in sysctl_debug_tslog_user()
207 (unsigned long long)procs[pid].tsc_exited); in sysctl_debug_tslog_user()
208 sbuf_printf(sb, " \"%s\"", procs[pid].execname ? in sysctl_debug_tslog_user()
209 procs[pid].execname : ""); in sysctl_debug_tslog_user()
210 sbuf_printf(sb, " \"%s\"", procs[pid].namei ? in sysctl_debug_tslog_user()
211 procs[pid].namei : ""); in sysctl_debug_tslog_user()