aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMatt Macy <mmacy@FreeBSD.org>2018-05-23 17:25:00 +0000
committerMatt Macy <mmacy@FreeBSD.org>2018-05-23 17:25:00 +0000
commit0b5dc7f64fcbbcebce577bb267ba4bd861d62251 (patch)
tree1f0553274902ce652d135787848d7087fb4103f1 /usr.sbin
parent9c4a7c50aeebc645b13007066b018cbc802d688e (diff)
Notes
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pmcstat/pmcstat.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/pmcstat/pmcstat.c b/usr.sbin/pmcstat/pmcstat.c
index 198a29ddd466..f7ae30ad3f83 100644
--- a/usr.sbin/pmcstat/pmcstat.c
+++ b/usr.sbin/pmcstat/pmcstat.c
@@ -500,7 +500,7 @@ main(int argc, char **argv)
CPU_COPY(&rootmask, &cpumask);
while ((option = getopt(argc, argv,
- "CD:EF:G:IM:NO:P:R:S:TWa:c:def:gk:l:m:n:o:p:qr:s:t:vw:z:")) != -1)
+ "CD:EF:G:IL:M:NO:P:R:S:TWa:c:def:gk:l:m:n:o:p:qr:s:t:vw:z:")) != -1)
switch (option) {
case 'a': /* Annotate + callgraph */
args.pa_flags |= FLAG_DO_ANNOTATE;
@@ -581,6 +581,10 @@ main(int argc, char **argv)
args.pa_flags |= FLAG_HAS_KERNELPATH;
break;
+ case 'L':
+ args.pa_flags |= FLAG_FILTER_THREAD_ID;
+ args.pa_tid = strtol(optarg, &end, 0);
+ break;
case 'l': /* time duration in seconds */
duration = strtod(optarg, &end);
if (*end != '\0' || duration <= 0)