Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Nov 2008 09:00:47 +0000 (UTC)
From:      Joseph Koshy <jkoshy@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/lib/libpmc libpmc.c libpmcinternal.h pmclog.c src/sys/amd64/include pmc_mdep.h src/sys/conf files.amd64 files.i386 src/sys/dev/hwpmc hwpmc_core.c hwpmc_core.h hwpmc_intel.c hwpmc_logging.c hwpmc_mod.c pmc_events.h ...
Message-ID:  <200811270904.mAR94emk096175@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jkoshy      2008-11-27 09:00:47 UTC

  FreeBSD src repository

  Modified files:
    lib/libpmc           libpmc.c pmclog.c 
    sys/amd64/include    pmc_mdep.h 
    sys/conf             files.amd64 files.i386 
    sys/dev/hwpmc        hwpmc_intel.c hwpmc_logging.c hwpmc_mod.c 
                         pmc_events.h 
    sys/i386/include     pmc_mdep.h 
    sys/modules/hwpmc    Makefile 
    sys/sys              param.h pmc.h pmclog.h 
  Added files:
    lib/libpmc           libpmcinternal.h 
    sys/dev/hwpmc        hwpmc_core.c hwpmc_core.h 
  Log:
  SVN rev 185363 on 2008-11-27 09:00:47Z by jkoshy
  
  - Add support for PMCs in Intel CPUs of Family 6, model 0xE (Core Solo
    and Core Duo), models 0xF (Core2), model 0x17 (Core2Extreme) and
    model 0x1C (Atom).
  
    In these CPUs, the actual numbers, kinds and widths of PMCs present
    need to queried at run time.  Support for specific "architectural"
    events also needs to be queried at run time.
  
    Model 0xE CPUs support programmable PMCs, subsequent CPUs
    additionally support "fixed-function" counters.
  
  - Use event names that are close to vendor documentation, taking in
    account that:
    - events with identical semantics on two or more CPUs in this family
      can have differing names in vendor documentation,
    - identical vendor event names may map to differing events across
      CPUs,
    - each type of CPU supports a different subset of measurable
      events.
  
    Fixed-function and programmable counters both use the same vendor
    names for events.  The use of a class name prefix ("iaf-" or
    "iap-" respectively) permits these to be distinguished.
  
  - In libpmc, refactor pmc_name_of_event() into a public interface
    and an internal helper function, for use by log handling code.
  
  - Minor code tweaks: staticize a global, freshen a few comments.
  
  Tested by:      gnn
  
  Revision  Changes    Path
  1.18      +406 -36   src/lib/libpmc/libpmc.c
  1.1       +37 -0     src/lib/libpmc/libpmcinternal.h (new)
  1.6       +4 -1      src/lib/libpmc/pmclog.c
  1.8       +7 -2      src/sys/amd64/include/pmc_mdep.h
  1.125     +1 -0      src/sys/conf/files.amd64
  1.610     +1 -0      src/sys/conf/files.i386
  1.1       +1747 -0   src/sys/dev/hwpmc/hwpmc_core.c (new)
  1.1       +121 -0    src/sys/dev/hwpmc/hwpmc_core.h (new)
  1.9       +37 -5     src/sys/dev/hwpmc/hwpmc_intel.c
  1.12      +4 -3      src/sys/dev/hwpmc/hwpmc_logging.c
  1.41      +5 -6      src/sys/dev/hwpmc/hwpmc_mod.c
  1.7       +964 -6    src/sys/dev/hwpmc/pmc_events.h
  1.10      +11 -6     src/sys/i386/include/pmc_mdep.h
  1.7       +4 -3      src/sys/modules/hwpmc/Makefile
  1.374     +1 -1      src/sys/sys/param.h
  1.19      +4 -4      src/sys/sys/pmc.h
  1.7       +2 -1      src/sys/sys/pmclog.h



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