cvs commit: src/sys/kern kern_exec.c src/lib/libpmc pmclog.c
pmclog.h src/sys/dev/hwpmc hwpmc_logging.c hwpmc_mod.c src/sys/sys
pmc.h pmckern.h pmclog.h src/usr.sbin/pmcstat Makefile pmcstat.8
pmcstat.c pmcstat.h pmcstat_log.c
Joseph Koshy
jkoshy at FreeBSD.org
Thu Jun 30 19:01:27 GMT 2005
jkoshy 2005-06-30 19:01:26 UTC
FreeBSD src repository
Modified files:
sys/kern kern_exec.c
lib/libpmc pmclog.c pmclog.h
sys/dev/hwpmc hwpmc_logging.c hwpmc_mod.c
sys/sys pmc.h pmckern.h pmclog.h
usr.sbin/pmcstat Makefile pmcstat.8 pmcstat.c
Added files:
usr.sbin/pmcstat pmcstat.h pmcstat_log.c
Log:
MFP4:
- pmcstat(8) gprof output mode fixes:
lib/libpmc/pmclog.{c,h}, sys/sys/pmclog.h:
+ Add a 'is_usermode' field to the PMCLOG_PCSAMPLE event
+ Add an 'entryaddr' field to the PMCLOG_PROCEXEC event,
so that pmcstat(8) can determine where the runtime loader
/libexec/ld-elf.so.1 is getting loaded.
sys/kern/kern_exec.c:
+ Use a local struct to group the entry address of the image being
exec()'ed and the process credential changed flag to the exec
handling hook inside hwpmc(4).
usr.sbin/pmcstat/*:
+ Support "-k kernelpath", "-D sampledir".
+ Implement the ELF bits of 'gmon.out' profile generation in a new
file "pmcstat_log.c". Move all log related functions to this
file.
+ Move local definitions and prototypes to "pmcstat.h"
- Other bug fixes:
+ lib/libpmc/pmclog.c: correctly handle EOF in pmclog_read().
+ sys/dev/hwpmc_mod.c: unconditionally log a PROCEXIT event to all
attached PMCs when a process exits.
+ sys/sys/pmc.h: correct a function prototype.
+ Improve usage checks in pmcstat(8).
Approved by: re (blanket hwpmc)
Revision Changes Path
1.2 +7 -2 src/lib/libpmc/pmclog.c
1.2 +3 -0 src/lib/libpmc/pmclog.h
1.2 +10 -7 src/sys/dev/hwpmc/hwpmc_logging.c
1.9 +20 -17 src/sys/dev/hwpmc/hwpmc_mod.c
1.275 +7 -2 src/sys/kern/kern_exec.c
1.7 +1 -1 src/sys/sys/pmc.h
1.4 +5 -0 src/sys/sys/pmckern.h
1.2 +5 -1 src/sys/sys/pmclog.h
1.3 +1 -1 src/usr.sbin/pmcstat/Makefile
1.4 +7 -1 src/usr.sbin/pmcstat/pmcstat.8
1.5 +214 -347 src/usr.sbin/pmcstat/pmcstat.c
1.1 +127 -0 src/usr.sbin/pmcstat/pmcstat.h (new)
1.1 +1255 -0 src/usr.sbin/pmcstat/pmcstat_log.c (new)
More information about the cvs-src
mailing list