Display kernel interrupt counter information in
.BR top (1)
style view.
+.PP
+The default output is subject to change. So whenever
+possible, you should avoid using default outputs in your scripts. Always explicitly define expected columns
+by using \fB\-\-columns\fR.
.SH OPTIONS
.TP
.BR \-d ,\ \-\-delay\ \c
.I seconds
intervals.
.TP
+.BR \-J ,\ \-\-json
+Use JSON output format. It's strongly recommended to use --columns to keep
+the output stable.
+.TP
.BR \-o ,\ \-\-once
Collect interrupt information and output it. This mode does not use
ncurses, so the output can easily be redirected to a pipe, file, or such.
{"delay", required_argument, NULL, 'd'},
{"sort", required_argument, NULL, 's'},
{"once", no_argument, NULL, 'o'},
- {"json", no_argument, NULL, JSON_OPT},
+ {"json", no_argument, NULL, 'J'},
{"columns", required_argument, NULL, COLUMNS_OPT},
{"help", no_argument, NULL, 'h'},
{"version", no_argument, NULL, 'V'},
};
int o;
- while ((o = getopt_long(argc, argv, "d:os:hV", longopts, NULL)) != -1) {
+ while ((o = getopt_long(argc, argv, "d:os:hJV", longopts, NULL)) != -1) {
switch (o) {
case 'd':
{
ctl->run_once = 1;
ctl->request_exit = 1;
break;
- case JSON_OPT:
+ case 'J':
ctl->json = 1;
ctl->run_once = 1;
ctl->request_exit = 1;