summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pmcstat/pmcstat.8
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>2005-06-30 19:01:26 +0000
committerjkoshy <jkoshy@FreeBSD.org>2005-06-30 19:01:26 +0000
commit3cade8d074f10ed4002c26e30494d70bb274b767 (patch)
tree65d154e0d10e4dfd78924cb57c52e53ed80a41dd /usr.sbin/pmcstat/pmcstat.8
parentca20bf4b48c565fd16ea813e7cce4e94862c31aa (diff)
downloadFreeBSD-src-3cade8d074f10ed4002c26e30494d70bb274b767.zip
FreeBSD-src-3cade8d074f10ed4002c26e30494d70bb274b767.tar.gz
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)
Diffstat (limited to 'usr.sbin/pmcstat/pmcstat.8')
-rw-r--r--usr.sbin/pmcstat/pmcstat.88
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/pmcstat/pmcstat.8 b/usr.sbin/pmcstat/pmcstat.8
index 482d0f9..881c3b5 100644
--- a/usr.sbin/pmcstat/pmcstat.8
+++ b/usr.sbin/pmcstat/pmcstat.8
@@ -31,8 +31,8 @@
.Nd "performance measurement with performance monitoring hardware"
.Sh SYNOPSIS
.Nm
-.Op Fl D Ar pathname
.Op Fl C
+.Op Fl D Ar pathname
.Op Fl E
.Op Fl O Ar logfilename
.Op Fl P Ar event-spec
@@ -42,6 +42,7 @@
.Op Fl c Ar cpu
.Op Fl d
.Op Fl g
+.Op Fl k Ar kernelfile
.Op Fl n Ar rate
.Op Fl o Ar outputfile
.Op Fl p Ar event-spec
@@ -154,6 +155,11 @@ The default is to measure events for the target process alone.
.It Fl g
Produce execution profiles in a format compatible with
.Xr gprof 1 .
+.It Fl k Ar kernelfile
+Set the pathname of the kernel to argument
+.Ar kernelfile .
+The default is
+.Pa "/boot/kernel/kernel" .
.It Fl n Ar rate
Set the default sampling rate for subsequent sampling mode
PMCs specified on the command line.
OpenPOWER on IntegriCloud