Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys



Module Name:    src
Committed By:   dsl
Date:           Sun Feb 18 16:58:16 UTC 2007

Modified Files:
        src/sys/arch/i386/i386: syscall.c
        src/sys/kern: kern_lwp.c kern_proc.c kern_synch.c
Added Files:
        src/sys/kern: subr_syscall_stats.c
        src/sys/sys: syscall_stats.h

Log Message:
Add code to support per-system call statistics:
option SYSCALL_STATS    counts the number of times each system call is made
option SYSCALL_TIMES    counts the amount of time spent in each system call
Currently the counting hooks have only been added to the i386 system call
handler, and the time spent in interrupts is not subtracted.
It ought also be possible to add the times to the processes profiling
counters in order to get a more accurate user/system/interrupt split.
The counts themselves are readable via the sysctl interface.


To generate a diff of this commit:
cvs rdiff -r1.42 -r1.43 src/sys/arch/i386/i386/syscall.c
cvs rdiff -r1.56 -r1.57 src/sys/kern/kern_lwp.c
cvs rdiff -r1.102 -r1.103 src/sys/kern/kern_proc.c
cvs rdiff -r1.179 -r1.180 src/sys/kern/kern_synch.c
cvs rdiff -r0 -r1.1 src/sys/kern/subr_syscall_stats.c
cvs rdiff -r0 -r1.1 src/sys/sys/syscall_stats.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index