diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-12-24 20:28:45 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-12-24 20:28:45 +0000 |
commit | 0ece0a5e4e73b44f42815ab3f5f0bc9f7e3bb7c8 (patch) | |
tree | 4a106f32dff65720bde9cb69719d5c0b67e2b1c0 /sys/kern | |
parent | 98342a9545e1049ffd5a129a3781dd1d4e2adc01 (diff) |
Keep a counter for addupc_intr() invocations, and pass its value, instead of 1,
to addupc_task() in ADDUPROF(). From NetBSD via art@.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/subr_prof.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/subr_prof.c b/sys/kern/subr_prof.c index c5ca25d4126..e12fee6d5d1 100644 --- a/sys/kern/subr_prof.c +++ b/sys/kern/subr_prof.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_prof.c,v 1.15 2005/12/09 09:09:52 jsg Exp $ */ +/* $OpenBSD: subr_prof.c,v 1.16 2006/12/24 20:28:43 miod Exp $ */ /* $NetBSD: subr_prof.c,v 1.12 1996/04/22 01:38:50 christos Exp $ */ /*- @@ -200,6 +200,7 @@ addupc_intr(struct proc *p, u_long pc) return; /* out of range; ignore */ prof->pr_addr = pc; + prof->pr_ticks++; need_proftick(p); } |