diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2012-03-23 15:51:27 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2012-03-23 15:51:27 +0000 |
commit | 3a829b1c12609aae928c035b8f17ae238f6e809b (patch) | |
tree | 5ad109cbb6d1159db7d5a8d765f4995f015b7155 /sys/miscfs | |
parent | fe805d3568ba38f32e5785ef64ed5e07e2d1df00 (diff) |
Make rusage totals, itimers, and profile settings per-process instead
of per-rthread. Handling of per-thread tick and runtime counters
inspired by how FreeBSD does it.
ok kettenis@
Diffstat (limited to 'sys/miscfs')
-rw-r--r-- | sys/miscfs/procfs/procfs_status.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/miscfs/procfs/procfs_status.c b/sys/miscfs/procfs/procfs_status.c index 0a629e92a04..c19175825ef 100644 --- a/sys/miscfs/procfs/procfs_status.c +++ b/sys/miscfs/procfs/procfs_status.c @@ -1,4 +1,4 @@ -/* $OpenBSD: procfs_status.c,v 1.11 2010/07/26 01:56:27 guenther Exp $ */ +/* $OpenBSD: procfs_status.c,v 1.12 2012/03/23 15:51:26 guenther Exp $ */ /* $NetBSD: procfs_status.c,v 1.11 1996/03/16 23:52:50 christos Exp $ */ /* @@ -118,10 +118,10 @@ procfs_stat_gen(struct proc *p, char *s, int l) } snprintf(ps, sizeof(ps), " %ld,%ld", - p->p_stats->p_start.tv_sec, p->p_stats->p_start.tv_usec); + pr->ps_start.tv_sec, pr->ps_start.tv_usec); COUNTORCAT(s, l, ps, n); - calcru(p, &ut, &st, (void *) 0); + calcru(&pr->ps_tu, &ut, &st, (void *) 0); snprintf(ps, sizeof(ps), " %ld,%ld %ld,%ld", ut.tv_sec, ut.tv_usec, st.tv_sec, st.tv_usec); COUNTORCAT(s, l, ps, n); |