]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Use uintfptr_t rather than int for the kernel profiling index (though it
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 16 Dec 2005 22:11:52 +0000 (22:11 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 16 Dec 2005 22:11:52 +0000 (22:11 +0000)
commit5c8b4441537d0b30a7d7f65424b4d02365390cf6
tree493437f5cdeee5220e2201f1ad01080bdf11d1e4
parentcb49fcd1454855d23a1f4a88de686cc296986aa0
- Use uintfptr_t rather than int for the kernel profiling index (though it
  really should be a fptrdiff_t if we had that) in profclock().
- Don't try to profile kernel pc's that are >= the kernel lowpc to avoid
  underflows when computing a profiling index.
- Use the PC_TO_I() macro to compute the kernel profiling index rather than
  doing it inline.

Discussed with: bde
sys/kern/kern_clock.c