Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 May 2010 22:04:58 +0000 (UTC)
From:      Ryan Stone <rstone@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/dev/hwpmc hwpmc_mod.c
Message-ID:  <201005012205.o41M5GI1088379@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005012205.o41M5GI1088379>