From owner-cvs-src-old@FreeBSD.ORG Sat May 1 22:05:16 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 93B761065686 for ; Sat, 1 May 2010 22:05:16 +0000 (UTC) (envelope-from rstone@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 828A38FC19 for ; Sat, 1 May 2010 22:05:16 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o41M5GfO088380 for ; Sat, 1 May 2010 22:05:16 GMT (envelope-from rstone@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o41M5GI1088379 for cvs-src-old@freebsd.org; Sat, 1 May 2010 22:05:16 GMT (envelope-from rstone@repoman.freebsd.org) Message-Id: <201005012205.o41M5GI1088379@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to rstone@repoman.freebsd.org using -f From: Ryan Stone Date: Sat, 1 May 2010 22:04:58 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/hwpmc hwpmc_mod.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 May 2010 22:05:16 -0000 rstone 2010-05-01 22:04:58 UTC FreeBSD src repository Modified files: sys/dev/hwpmc hwpmc_mod.c Log: SVN rev 207484 on 2010-05-01 22:04:58Z by rstone 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: jkoshy (mentor) MFC after: 2 weeks Revision Changes Path 1.50 +9 -9 src/sys/dev/hwpmc/hwpmc_mod.c