summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pmcstat/pmcstat_log.c
Commit message (Collapse)AuthorAgeFilesLines
* Handle 32 bit executables better on AMD64 platforms.jkoshy2005-10-181-30/+69
|
* Determine where the runtime loader got mapped to when a dynamicallyjkoshy2005-09-141-85/+119
| | | | | | | | linked process was exec()'ed, and map samples in that address range into the appropriate buckets in the runtime loader's profile. Improve a few comments. MFC after: 3 days
* Fix a bug that caused generated gmon.out profiles to be out ofjkoshy2005-09-131-10/+31
| | | | | | | whack. Use saturating arithmetic when incrementing a bucket. Improve a few comments. MFC after: 3 days
* Fix a bug that affected on-the-fly gmon.out file generation.jkoshy2005-07-091-5/+3
| | | | Approved by: re (scottl)
* Unbreak tinderbox builds. Remove a debug printf.jkoshy2005-07-011-14/+12
| | | | Approved by: re (blanket hwpmc)
* MFP4:jkoshy2005-06-301-0/+1255
- 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)
OpenPOWER on IntegriCloud