kern_clock.c (172207) | kern_clock.c (173600) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)kern_clock.c 8.5 (Berkeley) 1/21/94 35 */ 36 37#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1982, 1986, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)kern_clock.c 8.5 (Berkeley) 1/21/94 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/kern/kern_clock.c 172207 2007-09-17 05:31:39Z jeff $"); | 38__FBSDID("$FreeBSD: head/sys/kern/kern_clock.c 173600 2007-11-14 06:21:24Z julian $"); |
39 40#include "opt_kdb.h" 41#include "opt_device_polling.h" 42#include "opt_hwpmc_hooks.h" 43#include "opt_ntp.h" 44#include "opt_watchdog.h" 45 46#include <sys/param.h> --- 413 unchanged lines hidden (view full) --- 460 ru = &td->td_ru; 461 ru->ru_ixrss += pgtok(vm->vm_tsize); 462 ru->ru_idrss += pgtok(vm->vm_dsize); 463 ru->ru_isrss += pgtok(vm->vm_ssize); 464 rss = pgtok(vmspace_resident_count(vm)); 465 if (ru->ru_maxrss < rss) 466 ru->ru_maxrss = rss; 467 CTR4(KTR_SCHED, "statclock: %p(%s) prio %d stathz %d", | 39 40#include "opt_kdb.h" 41#include "opt_device_polling.h" 42#include "opt_hwpmc_hooks.h" 43#include "opt_ntp.h" 44#include "opt_watchdog.h" 45 46#include <sys/param.h> --- 413 unchanged lines hidden (view full) --- 460 ru = &td->td_ru; 461 ru->ru_ixrss += pgtok(vm->vm_tsize); 462 ru->ru_idrss += pgtok(vm->vm_dsize); 463 ru->ru_isrss += pgtok(vm->vm_ssize); 464 rss = pgtok(vmspace_resident_count(vm)); 465 if (ru->ru_maxrss < rss) 466 ru->ru_maxrss = rss; 467 CTR4(KTR_SCHED, "statclock: %p(%s) prio %d stathz %d", |
468 td, td->td_proc->p_comm, td->td_priority, (stathz)?stathz:hz); | 468 td, td->td_name, td->td_priority, (stathz)?stathz:hz); |
469 sched_clock(td); 470 thread_unlock(td); 471} 472 473void 474profclock(int usermode, uintfptr_t pc) 475{ 476 struct thread *td; --- 106 unchanged lines hidden --- | 469 sched_clock(td); 470 thread_unlock(td); 471} 472 473void 474profclock(int usermode, uintfptr_t pc) 475{ 476 struct thread *td; --- 106 unchanged lines hidden --- |