summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pmcstat
diff options
context:
space:
mode:
authorvangyzen <vangyzen@FreeBSD.org>2015-10-02 14:11:44 +0000
committervangyzen <vangyzen@FreeBSD.org>2015-10-02 14:11:44 +0000
commit2101014bc08a28397a999d962792673716d08097 (patch)
treefcf8ba89bc2ecd0364863f02164a890a14e18d8f /usr.sbin/pmcstat
parentc52fb6e472dc93b102df025a3c890d7c138ab9d1 (diff)
downloadFreeBSD-src-2101014bc08a28397a999d962792673716d08097.zip
FreeBSD-src-2101014bc08a28397a999d962792673716d08097.tar.gz
MFC r280793
pmcstat.8: fix -a flag description; improve -m flag to match The -a flag reads a file saved by -O, not -o. The -m flag requires the -R flag. Copy that paragraph from -a. Sponsored by: Dell Inc.
Diffstat (limited to 'usr.sbin/pmcstat')
-rw-r--r--usr.sbin/pmcstat/pmcstat.88
-rw-r--r--usr.sbin/pmcstat/pmcstat.c2
2 files changed, 8 insertions, 2 deletions
diff --git a/usr.sbin/pmcstat/pmcstat.8 b/usr.sbin/pmcstat/pmcstat.8
index 677b21f..7de335d 100644
--- a/usr.sbin/pmcstat/pmcstat.8
+++ b/usr.sbin/pmcstat/pmcstat.8
@@ -236,7 +236,7 @@ This option requires the
.Fl R
option to read in samples that were previously collected and
saved with the
-.Fl o
+.Fl O
option.
.It Fl c Ar cpu-spec
Set the cpus for subsequent system mode PMCs specified on the
@@ -302,6 +302,12 @@ is a
this information is sent to the output file specified by the
.Fl o
option.
+This option requires the
+.Fl R
+option to read in samples that were previously collected and
+saved with the
+.Fl O
+option.
.It Fl n Ar rate
Set the default sampling rate for subsequent sampling mode
PMCs specified on the command line.
diff --git a/usr.sbin/pmcstat/pmcstat.c b/usr.sbin/pmcstat/pmcstat.c
index 9ce4918..5ae53aa 100644
--- a/usr.sbin/pmcstat/pmcstat.c
+++ b/usr.sbin/pmcstat/pmcstat.c
@@ -938,7 +938,7 @@ main(int argc, char **argv)
errx(EX_USAGE, "ERROR: options -T and -l are mutually "
"exclusive.");
- /* -m option is allowed with -R only. */
+ /* -a and -m require -R */
if (args.pa_flags & FLAG_DO_ANNOTATE && args.pa_inputpath == NULL)
errx(EX_USAGE, "ERROR: option %s requires an input file",
args.pa_plugin == PMCSTAT_PL_ANNOTATE ? "-m" : "-a");
OpenPOWER on IntegriCloud