Date: Thu, 30 Jun 2005 19:01:26 +0000 (UTC) From: Joseph Koshy <jkoshy@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: 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 Message-ID: <200506301901.j5UJ1QMc063221@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506301901.j5UJ1QMc063221>