cvs commit: src/lib/libpmc pmclog.3 pmclog.c pmclog.h src/sys/dev/hwpmc hwpmc_logging.c hwpmc_mod.c src/sys/kern kern_linker.c src/sys/sys linker.h param.h pmc.h pmckern.h pmclog.h src/sys/vm vm_mmap.c src/usr.sbin/pmcstat pmcstat.8 ...

Joseph Koshy jkoshy at
Sun Mar 26 12:20:56 UTC 2006

jkoshy      2006-03-26 12:20:54 UTC

  FreeBSD src repository

  Modified files:
    lib/libpmc           pmclog.h pmclog.c pmclog.3 
    sys/dev/hwpmc        hwpmc_logging.c hwpmc_mod.c 
    sys/kern             kern_linker.c 
    sys/sys              linker.h param.h pmc.h pmckern.h pmclog.h 
    sys/vm               vm_mmap.c 
    usr.sbin/pmcstat     pmcstat.8 pmcstat.c pmcstat.h 
  MFP4: Support for profiling dynamically loaded objects.
  Kernel changes:
    Inform hwpmc of executable objects brought into the system by
    kldload() and mmap(), and of their removal by kldunload() and
    munmap().  A helper function linker_hwpmc_list_objects() has been
    added to "sys/kern/kern_linker.c" and is used by hwpmc to retrieve
    the list of currently loaded kernel modules.
    The unused `MAPPINGCHANGE' event has been deprecated in favour
    of separate `MAP_IN' and `MAP_OUT' events; this change reduces
    space wastage in the log.
    Bump the hwpmc's ABI version to "2.0.00".  Teach hwpmc(4) to
    handle the map change callbacks.
    Change the default per-cpu sample buffer size to hold
    32 samples (up from 16).
    Increment __FreeBSD_version.
  libpmc(3) changes:
    Update libpmc(3) to deal with the new events in the log file; bring
    the pmclog(3) manual page in sync with the code.
  pmcstat(8) changes:
    Introduce new options to pmcstat(8): "-r" (root fs path), "-M"
    (mapfile name), "-q"/"-v" (verbosity control).  Option "-k" now
    takes a kernel directory as its argument but will also work with
    the older invocation syntax.
    Rework string handling in pmcstat(8) to use an opaque type for
    interned strings.  Clean up ELF parsing code and add support for
    tracking dynamic object mappings reported by a v2.0.00 hwpmc(4).
    Report statistics at the end of a log conversion run depending
    on the requested verbosity level.
  Reviewed by:    jhb, dds (kernel parts of an earlier patch)
  Tested by:      gallatin (earlier patch)
  Revision  Changes    Path
  1.5       +31 -13    src/lib/libpmc/pmclog.3
  1.4       +11 -8     src/lib/libpmc/pmclog.c
  1.3       +10 -5     src/lib/libpmc/pmclog.h
  1.6       +24 -11    src/sys/dev/hwpmc/hwpmc_logging.c
  1.22      +165 -5    src/sys/dev/hwpmc/hwpmc_mod.c
  1.119     +78 -0     src/sys/kern/kern_linker.c
  1.41      +3 -0      src/sys/sys/linker.h
  1.264     +1 -1      src/sys/sys/param.h
  1.10      +5 -5      src/sys/sys/pmc.h
  1.6       +16 -2     src/sys/sys/pmckern.h
  1.3       +28 -11    src/sys/sys/pmclog.h
  1.204     +41 -0     src/sys/vm/vm_mmap.c
  1.8       +39 -7     src/usr.sbin/pmcstat/pmcstat.8
  1.12      +86 -17    src/usr.sbin/pmcstat/pmcstat.c
  1.3       +7 -6      src/usr.sbin/pmcstat/pmcstat.h
  1.8       +853 -416  src/usr.sbin/pmcstat/pmcstat_log.c

More information about the cvs-src mailing list