]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r207484:
authorrstone <rstone@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 24 May 2010 18:21:42 +0000 (18:21 +0000)
committerrstone <rstone@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 24 May 2010 18:21:42 +0000 (18:21 +0000)
commitda06e6e2958782c175c0f60b1c1c4fb81eaa2f27
tree514d454bb114cd84b8b4552baaec3b92b86f71fc
parent71c25841f52645878e61266cf70717477e1a1b69
MFC r207484:

 When configuring a system-wide couting PMC, hwpmc was incorrectly logging
 process mappings for that PMC.  Nothing ever reads pmc logs out of a
 counting PMC, so the log buffers were leaked when the PMC was
 deconfigured.  The process mappings are only useful for sampling PMCs
 anyway, so only log the mappings if the PMC is a sampling PMC.

 This bug would cause allocating sample-mode PMCs to fail with ENOMEM
 after allocating several counting-mode PMCs.

Approved by: emaste (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@208517 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/hwpmc/hwpmc_mod.c