diff options
author | jeff <jeff@FreeBSD.org> | 2009-01-17 07:17:57 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2009-01-17 07:17:57 +0000 |
commit | 3d8d825555e01db8b5e675c6852c0b611791c3eb (patch) | |
tree | de5dcf2f543f8bc9f57e15ad2509863476bbe371 /sys/kern/kern_clock.c | |
parent | c4410efa0c6a38771669b82f73318d656bd1edd6 (diff) | |
download | FreeBSD-src-3d8d825555e01db8b5e675c6852c0b611791c3eb.zip FreeBSD-src-3d8d825555e01db8b5e675c6852c0b611791c3eb.tar.gz |
- Implement generic macros for producing KTR records that are compatible
with src/tools/sched/schedgraph.py. This allows developers to quickly
create a graphical view of ktr data for any resource in the system.
- Add sched_tdname() and the pcpu field 'name' for quickly and uniformly
identifying records associated with a thread or cpu.
- Reimplement the KTR_SCHED traces using the new generic facility.
Obtained from: attilio
Discussed with: jhb
Sponsored by: Nokia
Diffstat (limited to 'sys/kern/kern_clock.c')
-rw-r--r-- | sys/kern/kern_clock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index 1c8e7bd..b311d30 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -498,8 +498,8 @@ statclock(int usermode) rss = pgtok(vmspace_resident_count(vm)); if (ru->ru_maxrss < rss) ru->ru_maxrss = rss; - CTR4(KTR_SCHED, "statclock: %p(%s) prio %d stathz %d", - td, td->td_name, td->td_priority, (stathz)?stathz:hz); + KTR_POINT2(KTR_SCHED, "thread", sched_tdname(td), "statclock", + "prio:%d", td->td_priority, "stathz:%d", (stathz)?stathz:hz); thread_lock_flags(td, MTX_QUIET); sched_clock(td); thread_unlock(td); |