summaryrefslogtreecommitdiffstats
path: root/sys/sys/resourcevar.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2011-07-18 17:33:08 +0000
committerjhb <jhb@FreeBSD.org>2011-07-18 17:33:08 +0000
commit4e1a6d0e6744fbd594114870804c3a5062815280 (patch)
treec9ca0ce831e01fabc0898005bf23fb41dcc1c5e9 /sys/sys/resourcevar.h
parent9a6ff5ad378cfaaa99c5162e2b0f6e4cb6a3c796 (diff)
downloadFreeBSD-src-4e1a6d0e6744fbd594114870804c3a5062815280.zip
FreeBSD-src-4e1a6d0e6744fbd594114870804c3a5062815280.tar.gz
- Export each thread's individual resource usage in in struct kinfo_proc's
ki_rusage member when KERN_PROC_INC_THREAD is passed to one of the process sysctls. - Correctly account for the current thread's cputime in the thread when doing the runtime fixup in calcru(). - Use TIDs as the key to lookup the previous thread to compute IO stat deltas in IO mode in top when thread display is enabled. Reviewed by: kib Approved by: re (kib)
Diffstat (limited to 'sys/sys/resourcevar.h')
-rw-r--r--sys/sys/resourcevar.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/resourcevar.h b/sys/sys/resourcevar.h
index f17d95f..d091d85 100644
--- a/sys/sys/resourcevar.h
+++ b/sys/sys/resourcevar.h
@@ -136,6 +136,7 @@ void rucollect(struct rusage *ru, struct rusage *ru2);
void rufetch(struct proc *p, struct rusage *ru);
void rufetchcalc(struct proc *p, struct rusage *ru, struct timeval *up,
struct timeval *sp);
+void rufetchtd(struct thread *td, struct rusage *ru);
void ruxagg(struct proc *p, struct thread *td);
int suswintr(void *base, int word);
struct uidinfo
OpenPOWER on IntegriCloud