.Nd display kernel trace data
.Sh SYNOPSIS
.Nm
-.Op Fl djnlRT
+.Op Fl acdjnlRT
.Op Fl f Ar file
.Op Fl m Ar maxdata
.Op Fl t Op cnisuw
.Pp
The options are as follows:
.Bl -tag -width Fl
+.It Fl a
+Display full human readable output.
+This option turns on
+.Fl c
+and
+.Fl R .
+.It Fl c
+Display the cpu the thread is executing on.
.It Fl d
Display all numbers in decimal.
.It Fl j
int timestamp, decimal, fancy = 1, tail, maxdata = 64;
int fixedformat;
+int cpustamp;
const char *tracefile = DEF_TRACEFILE;
struct ktr_header ktr_header;
(void) setlocale(LC_CTYPE, "");
- while ((ch = getopt(argc,argv,"f:djlm:np:RTt:")) != -1)
+ while ((ch = getopt(argc,argv,"acf:djlm:np:RTt:")) != -1)
switch((char)ch) {
case 'f':
tracefile = optarg;
case 'j':
fixedformat = 1;
break;
+ case 'c':
+ cpustamp = 1;
+ break;
+ case 'a':
+ timestamp = 2; /* relative timestamp */
+ cpustamp = 1;
+ break;
case 'd':
decimal = 1;
break;
col = printf("%5d:%-4d", kth->ktr_pid, kth->ktr_tid);
else
col = printf("%5d", kth->ktr_pid);
+ if (cpustamp)
+ col += printf(" %d", KTRH_CPUID_DECODE(kth->ktr_flags));
col += printf(" %-8.*s ", MAXCOMLEN, kth->ktr_comm);
if (timestamp) {
if (timestamp == 2) {