summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_prof.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2003-02-17 09:55:10 +0000
committerjulian <julian@FreeBSD.org>2003-02-17 09:55:10 +0000
commitaf55753a063a04a847a53c2946cd5fbf413a1e0f (patch)
tree775429b184310789a1eb3bc1be8451f6faf1abf4 /sys/kern/subr_prof.c
parent653bc68f5387baeae2f13b7f346d29659904e188 (diff)
downloadFreeBSD-src-af55753a063a04a847a53c2946cd5fbf413a1e0f.zip
FreeBSD-src-af55753a063a04a847a53c2946cd5fbf413a1e0f.tar.gz
Move a bunch of flags from the KSE to the thread.
I was in two minds as to where to put them in the first case.. I should have listenned to the other mind. Submitted by: parts by davidxu@ Reviewed by: jeff@ mini@
Diffstat (limited to 'sys/kern/subr_prof.c')
-rw-r--r--sys/kern/subr_prof.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/subr_prof.c b/sys/kern/subr_prof.c
index b8cd61e..894309d 100644
--- a/sys/kern/subr_prof.c
+++ b/sys/kern/subr_prof.c
@@ -478,7 +478,7 @@ done2:
* inaccurate.
*/
void
-addupc_intr(struct kse *ke, uintptr_t pc, u_int ticks)
+addupc_intr(struct thread *td, uintptr_t pc, u_int ticks)
{
struct uprof *prof;
caddr_t addr;
@@ -487,7 +487,7 @@ addupc_intr(struct kse *ke, uintptr_t pc, u_int ticks)
if (ticks == 0)
return;
- prof = &ke->ke_proc->p_stats->p_prof;
+ prof = &td->td_proc->p_stats->p_prof;
if (pc < prof->pr_off ||
(i = PC_TO_INDEX(pc, prof)) >= prof->pr_size)
return; /* out of range; ignore */
@@ -497,7 +497,7 @@ addupc_intr(struct kse *ke, uintptr_t pc, u_int ticks)
mtx_lock_spin(&sched_lock);
prof->pr_addr = pc;
prof->pr_ticks = ticks;
- ke->ke_flags |= KEF_OWEUPC | KEF_ASTPENDING ;
+ td->td_flags |= TDF_OWEUPC | TDF_ASTPENDING ;
mtx_unlock_spin(&sched_lock);
}
}
@@ -508,9 +508,9 @@ addupc_intr(struct kse *ke, uintptr_t pc, u_int ticks)
* XXXKSE, don't use kse unless we got sched lock.
*/
void
-addupc_task(struct kse *ke, uintptr_t pc, u_int ticks)
+addupc_task(struct thread *td, uintptr_t pc, u_int ticks)
{
- struct proc *p = ke->ke_proc;
+ struct proc *p = td->td_proc;
struct uprof *prof;
caddr_t addr;
u_int i;
OpenPOWER on IntegriCloud