mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
cpumf/lshwc: Add command line flag for run time
Add a command line flag to specify run time of lshwc command in terms of days, hours, minutes and seconds. The command line flag is named -t and has a number as argument followed by one of the letters 's' for seconds (default), 'm' for minutes, 'h' for hours and 'd' for days. Default is seconds when no trailing letter is detected. Signed-off-by: Thomas Richter <tmricht@linux.ibm.com> Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
9f9dddddd4
commit
b4cc30ac10
@@ -14,11 +14,13 @@ lshwc \- extract CPU Measurement Facilities counter sets
|
||||
.
|
||||
.SH SYNOPSIS
|
||||
\*c
|
||||
.RB [ \-a ][ \-d][ \-H][ \-s ][ \-x ][ \-X]
|
||||
.RB [ \-a ][ \-d ][ \-H ][ \-s ][ \-x ][ \-X ]
|
||||
.RB [ \-l
|
||||
.IR count ]
|
||||
.RB [ \-i
|
||||
.IR interval ]
|
||||
.RB [ \-t
|
||||
.IR time ]
|
||||
\fR[\fIcpulist\fR][:\fIsets\fR]\fP
|
||||
.br
|
||||
\*c
|
||||
@@ -99,6 +101,23 @@ Undefined counter.
|
||||
.RE
|
||||
.
|
||||
.TP
|
||||
.BR \-t ", " \-\-time
|
||||
Specifies the runtime in form of days, hours, minutes or seconds.
|
||||
This option can be specified multiple times and the runtime adds up.
|
||||
Time is a number followed by one of the letters
|
||||
.RS
|
||||
.IP d
|
||||
Specifies number as days.
|
||||
.IP h
|
||||
Specifies number as hours.
|
||||
.IP m
|
||||
Specifies number as minutes.
|
||||
.IP s
|
||||
Specifies number as seconds. This is the default when no
|
||||
letter follows the number.
|
||||
.RE
|
||||
.
|
||||
.TP
|
||||
.BR \-x ", " \-\-hex
|
||||
Displays counter values as hexadecimal values.
|
||||
.
|
||||
|
||||
Reference in New Issue
Block a user