aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorSean Bruno <sbruno@FreeBSD.org>2018-05-25 18:11:13 +0000
committerSean Bruno <sbruno@FreeBSD.org>2018-05-25 18:11:13 +0000
commite22ee9b24735e17a2facc7c646d2d7b4f4b49941 (patch)
tree047d83a0d613e04e9a544c48efe61bdb05d69891 /usr.sbin
parent097f721b803365cb02e68dc8511195ad94be01b2 (diff)
downloadsrc-e22ee9b24735e17a2facc7c646d2d7b4f4b49941.tar.gz
src-e22ee9b24735e17a2facc7c646d2d7b4f4b49941.zip
pmcstat(8)
- Document per thread filtering. Submitted by: kbowling Sponsored by: Limelight Networks Differential Revision: https://reviews.freebsd.org/D15549
Notes
Notes: svn path=/head/; revision=334215
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pmcstat/pmcstat.813
-rw-r--r--usr.sbin/pmcstat/pmcstat.c4
2 files changed, 14 insertions, 3 deletions
diff --git a/usr.sbin/pmcstat/pmcstat.8 b/usr.sbin/pmcstat/pmcstat.8
index bc4bb74fada5..fa68a39a1483 100644
--- a/usr.sbin/pmcstat/pmcstat.8
+++ b/usr.sbin/pmcstat/pmcstat.8
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd November 18, 2015
+.Dd May 25, 2018
.Dt PMCSTAT 8
.Os
.Sh NAME
@@ -38,6 +38,8 @@
.Op Fl E
.Op Fl F Ar pathname
.Op Fl G Ar pathname
+.Op Fl I
+.Op Fl L Ar lwp
.Op Fl M Ar mapfilename
.Op Fl N
.Op Fl O Ar logfilename
@@ -155,6 +157,15 @@ is a
this information is sent to the output file specified by the
.Fl o
option.
+.It Fl I
+Skip symbol lookup and display address instead.
+.It Fl L Ar lwp
+Filter on thread ID
+.Ar lwp ,
+which you can get from
+.Xr ps 1
+.Fl o
+.Li lwp .
.It Fl M Ar mapfilename
Write the mapping between executable objects encountered in the event
log and the abbreviated pathnames used for
diff --git a/usr.sbin/pmcstat/pmcstat.c b/usr.sbin/pmcstat/pmcstat.c
index 1ae47403d12c..63716e0e5c0d 100644
--- a/usr.sbin/pmcstat/pmcstat.c
+++ b/usr.sbin/pmcstat/pmcstat.c
@@ -365,8 +365,8 @@ pmcstat_show_usage(void)
"\t -F file\t write a system-wide callgraph (Kcachegrind format)"
" to \"file\"\n"
"\t -G file\t write a system-wide callgraph to \"file\"\n"
- "\t -I don't resolve leaf function but show address instead"
- "\t -L \"tid\" filter on thread id in post-processing"
+ "\t -I don't resolve leaf function name, show address instead\n"
+ "\t -L lwp\t filter on thread id \"lwp\" in post-processing\n"
"\t -M file\t print executable/gmon file map to \"file\"\n"
"\t -N\t\t (toggle) capture callchains\n"
"\t -O file\t send log output to \"file\"\n"