summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pmcstat/pmcstat.h
diff options
context:
space:
mode:
authorgnn <gnn@FreeBSD.org>2014-05-30 15:02:29 +0000
committergnn <gnn@FreeBSD.org>2014-05-30 15:02:29 +0000
commitcc6785bd5fbd26d9748c28753819c47ad6f05e03 (patch)
tree073c4abaf2340e043ef2f1e3840568baeddc6b7e /usr.sbin/pmcstat/pmcstat.h
parent96656f614a93e7fab45881d9ad811d6eda098d44 (diff)
downloadFreeBSD-src-cc6785bd5fbd26d9748c28753819c47ad6f05e03.zip
FreeBSD-src-cc6785bd5fbd26d9748c28753819c47ad6f05e03.tar.gz
MFC: 266209
Add a command line argument (-l) to end event collection after some number of seconds. The number of seconds may be a fraction. Submitted by: Julien Charbon <jcharbon@versign.com> Relnotes: yes
Diffstat (limited to 'usr.sbin/pmcstat/pmcstat.h')
-rw-r--r--usr.sbin/pmcstat/pmcstat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/pmcstat/pmcstat.h b/usr.sbin/pmcstat/pmcstat.h
index c8ec14d..a3738c1 100644
--- a/usr.sbin/pmcstat/pmcstat.h
+++ b/usr.sbin/pmcstat/pmcstat.h
@@ -54,6 +54,7 @@
#define FLAG_DO_TOP 0x00010000 /* -T */
#define FLAG_DO_ANALYSIS 0x00020000 /* -g or -G or -m or -T */
#define FLAGS_HAS_CPUMASK 0x00040000 /* -c */
+#define FLAG_HAS_DURATION 0x00080000 /* -l secs */
#define DEFAULT_SAMPLE_COUNT 65536
#define DEFAULT_WAIT_INTERVAL 5.0
@@ -149,6 +150,7 @@ struct pmcstat_args {
int pa_toptty; /* output to tty or file */
int pa_topcolor; /* terminal support color */
int pa_mergepmc; /* merge PMC with same name */
+ double pa_duration; /* time duration */
int pa_argc;
char **pa_argv;
STAILQ_HEAD(, pmcstat_ev) pa_events;
OpenPOWER on IntegriCloud