summaryrefslogtreecommitdiff
path: root/usr/src/man/man4/tnf_kernel_probes.4
blob: 12ab068ccb52415bd4bd3cc97115f9bd3cbff76b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
'\" te
.\"  Copyright 1999 Sun Microsystems, Inc. All Rights Reserved.
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
.TH TNF_KERNEL_PROBES 4 "June 20, 2021"
.SH NAME
tnf_kernel_probes \- TNF kernel probes
.SH DESCRIPTION
The set of probes (trace instrumentation points) available in the standard
kernel.  The probes log trace data to a kernel trace buffer in Trace Normal
Form  (TNF).  Kernel probes are controlled by \fBprex\fR(1). A snapshot of the
kernel trace buffer can be made using \fBtnfxtract\fR(1) and examined using
\fBtnfdump\fR(1).
.sp
.LP
Each probe has a \fIname\fR and is associated with a set of symbolic
\fIkeys\fR, or \fIcategories\fR. These are used to select and control probes
from \fBprex\fR(1). A probe that is enabled for tracing generates a  \fBTNF\fR
record, called an \fIevent record\fR. An event record contains two common
members and may contain other probe-specific data members.
.SS "Common Members"
.in +2
.nf
\fBtnf_probe_event\fR    \fItag\fR
\fBtnf_time_delta\fR     \fItime_delta\fR
.fi
.in -2

.sp
.ne 2
.na
\fB\fItag\fR\fR
.ad
.RS 14n
Encodes  \fBTNF\fR references to two other records:
.sp
.ne 2
.na
\fB\fItag\fR\fR
.ad
.RS 12n
Describes the layout of the event record.
.RE

.sp
.ne 2
.na
\fB\fIschedule\fR\fR
.ad
.RS 12n
Identifies the writing thread and also contains a 64-bit base time in
nanoseconds.
.RE

.RE

.sp
.ne 2
.na
\fB\fItime_delta\fR\fR
.ad
.RS 14n
A 32-bit time offset from the base time; the sum of the two times is the actual
time of the event.
.RE

.SS "Threads"
.SS "\fBthread_create\fR"
.in +2
.nf
\fBtnf_kthread_id\fR    \fItid\fR
\fBtnf_pid\fR           \fIpid\fR
\fBtnf_symbol\fR        \fIstart_pc\fR
.fi
.in -2

.sp
.LP
Thread creation event.
.sp
.ne 2
.na
\fB\fItid\fR\fR
.ad
.RS 12n
The thread identifier for the new thread.
.RE

.sp
.ne 2
.na
\fB\fIpid\fR\fR
.ad
.RS 12n
The process identifier for the new thread.
.RE

.sp
.ne 2
.na
\fB\fIstart_pc\fR\fR
.ad
.RS 12n
The kernel address of its start routine.
.RE

.SS "\fBthread_state\fR"
.in +2
.nf
\fBtnf_kthread_id\fR    \fItid\fR
\fBtnf_microstate\fR    \fIstate\fR
.fi
.in -2

.sp
.LP
Thread microstate transition events.
.sp
.ne 2
.na
\fB\fItid\fR\fR
.ad
.RS 9n
Optional; if it is absent, the event is for the writing thread, otherwise the
event is for the specified thread.
.RE

.sp
.ne 2
.na
\fB\fIstate\fR\fR
.ad
.RS 9n
Indicates the thread state:
.RS +4
.TP
.ie t \(bu
.el o
Running in user mode.
.RE
.RS +4
.TP
.ie t \(bu
.el o
Running in system mode.
.RE
.RS +4
.TP
.ie t \(bu
.el o
Asleep waiting for a user-mode lock.
.RE
.RS +4
.TP
.ie t \(bu
.el o
Asleep on a kernel object.
.RE
.RS +4
.TP
.ie t \(bu
.el o
Runnable (waiting for a cpu).
.RE
.RS +4
.TP
.ie t \(bu
.el o
Stopped.
.RE
The values of this member are defined in <\fBsys/msacct.h\fR>. Note that to
reduce trace output, transitions between the \fIsystem\fR and \fIuser\fR
microstates that are induced by system calls are not traced.  This  information
is implicit in the system call entry and exit events.
.RE

.SS "thread_exit"
Thread termination event for writing thread.  This probe has no data members
other than the common members.
.SS "Scheduling"
\fB\fR
.SS "thread_queue"
.in +2
.nf
\fBtnf_kthread_id\fR    \fItid\fR
\fBtnf_cpuid\fR         \fIcpuid\fR
\fBtnf_long\fR          \fIpriority\fR
\fBtnf_ulong\fR         \fIqueue_length\fR
.fi
.in -2

.sp
.LP
Thread scheduling events.  These are triggered when a runnable thread is placed
on a dispatch queue.
.sp
.ne 2
.na
\fB\fIcpuid\fR\fR
.ad
.RS 16n
Specifies the cpu to which the queue is attached.
.RE

.sp
.ne 2
.na
\fB\fIpriority\fR\fR
.ad
.RS 16n
The (global) dispatch priority of the thread.
.RE

.sp
.ne 2
.na
\fB\fIqueue_length\fR\fR
.ad
.RS 16n
The current length of the cpu's dispatch queue.
.RE

.SS "Blocking"
.SS "\fBthread_block\fR"
.in +2
.nf
\fBtnf_opaque\fR     \fIreason\fR
\fBtnf_symbols\fR    \fIstack\fR
.fi
.in -2

.sp
.LP
Thread blockage event.  This probe captures a partial stack backtrace when the
current thread blocks.
.sp
.ne 2
.na
\fB\fIreason\fR\fR
.ad
.RS 11n
The address of the object on which the thread is blocking.
.RE

.sp
.ne 2
.na
\fB\fIsymbols\fR\fR
.ad
.RS 11n
References a \fBTNF\fR array of kernel addresses representing the PCs on the
stack at the time the thread blocks.
.RE

.SS "System Calls"
.SS "\fBsyscall_start\fR"
.in +2
.nf
\fBtnf_sysnum\fR    \fIsysnum\fR
.fi
.in -2

.sp
.LP
System call entry event.
.sp
.ne 2
.na
\fB\fIsysnum\fR\fR
.ad
.RS 10n
The system call number.  The writing thread implicitly enters the \fIsystem\fR
microstate with this event.
.RE

.SS "\fBsyscall_end\fR"
.in +2
.nf
\fBtnf_long\fR    \fIrval1\fR
\fBtnf_long\fR    \fIrval2\fR
\fBtnf_long\fR    \fIerrno\fR
.fi
.in -2

.sp
.LP
System call exit event.
.sp
.ne 2
.na
\fB\fIrval1\fR and \fIrval2\fR\fR
.ad
.RS 19n
The two return values of the system call
.RE

.sp
.ne 2
.na
\fB\fIerrno\fR\fR
.ad
.RS 19n
The error return.
.RE

.sp
.LP
The writing thread implicitly enters the \fIuser\fR microstate with this event.
.SS "Page Faults"
.SS "\fBaddress_fault\fR"
.in +2
.nf
\fBtnf_opaque\fR      \fIaddress\fR
\fBtnf_fault_type\fR  \fIfault_type\fR
\fBtnf_seg_access\fR  \fIaccess\fR
.fi
.in -2

.sp
.LP
Address-space fault event.
.sp
.ne 2
.na
\fB\fIaddress\fR\fR
.ad
.RS 14n
Gives the faulting virtual address.
.RE

.sp
.ne 2
.na
\fB\fIfault_type\fR\fR
.ad
.RS 14n
Gives the fault type: invalid page, protection fault, software requested
locking or unlocking.
.RE

.sp
.ne 2
.na
\fB\fIaccess\fR\fR
.ad
.RS 14n
Gives the desired access protection: read, write, execute or create. The values
for these two members are defined in <\fBvm/seg_enum.h\fR>.
.RE

.SS "\fBmajor_fault\fR"
.in +2
.nf
\fBtnf_opaque\fR    \fIvnode\fR
\fBtnf_offset\fR    \fIoffset\fR
.fi
.in -2

.sp
.LP
Major page fault event.  The faulting page is mapped to the file given by the
\fIvnode\fR member, at the given \fIoffset\fR into the file.  (The faulting
virtual address is in the most recent \fBaddress_fault\fR event for the writing
thread.)
.SS "\fBanon_private\fR"
.in +2
.nf
\fBtnf_opaque\fR    \fIaddress\fR
.fi
.in -2

.sp
.LP
Copy-on-write page fault event.
.sp
.ne 2
.na
\fB\fIaddress\fR\fR
.ad
.RS 11n
The virtual address at which the new page is mapped.
.RE

.SS "\fBanon_zero\fR"
.in +2
.nf
\fBtnf_opaque\fR    \fIaddress\fR
.fi
.in -2

.sp
.LP
Zero-fill page fault event.
.sp
.ne 2
.na
\fB\fIaddress\fR\fR
.ad
.RS 11n
The virtual address at which the new page is mapped.
.RE

.SS "\fBpage_unmap\fR"
.in +2
.nf
\fBtnf_opaque\fR    \fIvnode\fR
\fBtnf_offset\fR    \fIoffset\fR
.fi
.in -2

.sp
.LP
Page unmapping event.  This probe marks the unmapping of a file system page
from the system.
.sp
.ne 2
.na
\fB\fIvnode\fR and \fIoffset\fR\fR
.ad
.RS 20n
Identifies the file and offset of the page being unmapped.
.RE

.SS "Pageins and Pageouts"
.SS "\fBpagein\fR"
.in +2
.nf
\fBtnf_opaque\fR    \fIvnode\fR
\fBtnf_offset\fR    \fIoffset\fR
\fBtnf_size\fR      \fIsize\fR
.fi
.in -2

.sp
.LP
Pagein start event.  This event signals the initiation of pagein I/O.
.sp
.ne 2
.na
\fB\fIvnode\fR and \fIoffset\fR\fR
.ad
.RS 18n
Identifies the file and offset to be paged in.
.RE

.sp
.ne 2
.na
\fB\fIsize\fR\fR
.ad
.RS 18n
Specifies the number of bytes to be paged in.
.RE

.SS "\fBpageout\fR"
.in +2
.nf
\fBtnf_opaque\fR    \fIvnode\fR
\fBtnf_ulong\fR     \fIpages_pageout\fR
\fBtnf_ulong\fR     \fIpages_freed\fR
\fBtnf_ulong\fR     \fIpages_reclaimed\fR
.fi
.in -2

.sp
.LP
Pageout completion event.  This event signals the completion of pageout I/O.
.sp
.ne 2
.na
\fB\fIvnode\fR\fR
.ad
.RS 19n
Identifies the file of the pageout request.
.RE

.sp
.ne 2
.na
\fB\fIpages_pageout\fR\fR
.ad
.RS 19n
The number of pages written out.
.RE

.sp
.ne 2
.na
\fB\fIpages_freed\fR\fR
.ad
.RS 19n
The number of pages freed after being written out.
.RE

.sp
.ne 2
.na
\fB\fIpages_reclaimed\fR\fR
.ad
.RS 19n
The number of pages reclaimed after being written out.
.RE

.SS "Page Daemon (Page Stealer)"
.SS "\fBpageout_scan_start\fR"
.in +2
.nf
\fBtnf_ulong\fR    \fIpages_free\fR
\fBtnf_ulong\fR    \fIpages_needed\fR
.fi
.in -2

.sp
.LP
Page daemon scan start event.  This event signals the beginning of one
iteration of the page daemon.
.sp
.ne 2
.na
\fB\fIpages_free\fR\fR
.ad
.RS 16n
The number of free pages in the system.
.RE

.sp
.ne 2
.na
\fB\fIpages_needed\fR\fR
.ad
.RS 16n
The number of pages desired free.
.RE

.SS "\fBpageout_scan_end\fR"
.in +2
.nf
\fBtnf_ulong\fR    \fIpages_free\fR
\fBtnf_ulong\fR    \fIpages_scanned\fR
.fi
.in -2

.sp
.LP
Page daemon scan end event.  This event signals the end of one iteration of the
page daemon.
.sp
.ne 2
.na
\fB\fIpages_free\fR\fR
.ad
.RS 17n
The number of free pages in the system.
.RE

.sp
.ne 2
.na
\fB\fIpages_scanned\fR\fR
.ad
.RS 17n
The number of pages examined by the page daemon.  (Potentially more pages will
be freed when any queued pageout requests complete.)
.RE

.SS "Swapper"
.SS "\fBswapout_process\fR"
.in +2
.nf
\fBtnf_pid\fR      \fIpid\fR
\fBtnf_ulong\fR    \fIpage_count\fR
.fi
.in -2

.sp
.LP
Address space swapout event.  This event marks the swapping out of a process
address space.
.sp
.ne 2
.na
\fB\fIpid\fR\fR
.ad
.RS 14n
Identifies the process.
.RE

.sp
.ne 2
.na
\fB\fIpage_count\fR\fR
.ad
.RS 14n
Reports the number of pages either freed or queued for pageout.
.RE

.SS "\fBswapout_lwp\fR"
.in +2
.nf
\fBtnf_pid\fR         \fIpid\fR
\fBtnf_lwpid\fR       \fIlwpid\fR
\fBtnf_kthread_id\fR  \fItid\fR
\fBtnf_ulong\fR       \fIpage_count\fR
.fi
.in -2

.sp
.LP
Light-weight process swapout event.  This event marks the swapping out of an
\fBLWP\fR and its stack.
.sp
.ne 2
.na
\fB\fIpid\fR\fR
.ad
.RS 14n
The  \fBLWP's\fR process identifier
.RE

.sp
.ne 2
.na
\fB\fIlwpid\fR\fR
.ad
.RS 14n
The \fBLWP\fR identifier
.RE

.sp
.ne 2
.na
\fB\fItid\fR \fImember\fR\fR
.ad
.RS 14n
The \fBLWP's\fR kernel thread identifier.
.RE

.sp
.ne 2
.na
\fB\fIpage_count\fR\fR
.ad
.RS 14n
The number of pages swapped out.
.RE

.SS "\fBswapin_lwp\fR"
.in +2
.nf
\fBtnf_pid\fR         \fIpid\fR
\fBtnf_lwpid\fR       \fIlwpid\fR
\fBtnf_kthread_id\fR  \fItid\fR
\fBtnf_ulong\fR       \fIpage_count\fR
.fi
.in -2

.sp
.LP
Light-weight process swapin event.  This event marks the swapping in of an
\fBLWP\fR and its stack.
.sp
.ne 2
.na
\fB\fIpid\fR\fR
.ad
.RS 14n
The \fBLWP's\fR process identifier.
.RE

.sp
.ne 2
.na
\fB\fIlwpid\fR\fR
.ad
.RS 14n
The \fBLWP\fR identifier.
.RE

.sp
.ne 2
.na
\fB\fItid\fR\fR
.ad
.RS 14n
The \fBLWP's\fR kernel thread identifier.
.RE

.sp
.ne 2
.na
\fB\fIpage_count\fR\fR
.ad
.RS 14n
The number of pages swapped in.
.RE

.SS "Local I/O"
.SS "\fBstrategy\fR"
.in +2
.nf
\fBtnf_device\fR      \fIdevice\fR
\fBtnf_diskaddr\fR    \fIblock\fR
\fBtnf_size\fR        \fIsize\fR
\fBtnf_opaque\fR      \fIbuf\fR
\fBtnf_bioflags\fR   \fI flags\fR
.fi
.in -2

.sp
.LP
Block I/O strategy event.  This event marks a call to the \fBstrategy\fR(9E)
function of a block device driver.
.sp
.ne 2
.na
\fB\fIdevice\fR\fR
.ad
.RS 10n
Contains the major and minor numbers of the device.
.RE

.sp
.ne 2
.na
\fB\fIblock\fR\fR
.ad
.RS 10n
The logical block number to be accessed on the device.
.RE

.sp
.ne 2
.na
\fB\fIsize\fR\fR
.ad
.RS 10n
The size of the I/O request.
.RE

.sp
.ne 2
.na
\fB\fIbuf\fR\fR
.ad
.RS 10n
The kernel address of the \fBbuf\fR(9S) structure associated with the transfer.
.RE

.sp
.ne 2
.na
\fB\fIflags\fR\fR
.ad
.RS 10n
The \fBbuf\fR(9S) flags associated with the transfer.
.RE

.SS "\fBbiodone\fR"
.in +2
.nf
\fBtnf_device\fR     \fIdevice\fR
\fBtnf_diskaddr\fR   \fIblock\fR
\fBtnf_opaque\fR     \fIbuf\fR
.fi
.in -2

.sp
.LP
Buffered I/O completion event.  This event marks calls to the \fBbiodone\fR(9F)
function.
.sp
.ne 2
.na
\fB\fIdevice\fR\fR
.ad
.RS 10n
Contains the major and minor numbers of the device.
.RE

.sp
.ne 2
.na
\fB\fIblock\fR\fR
.ad
.RS 10n
The logical block number accessed on the device.
.RE

.sp
.ne 2
.na
\fB\fIbuf\fR\fR
.ad
.RS 10n
The kernel address of the \fBbuf\fR(9S) structure associated with the transfer.
.RE

.SS "\fBphysio_start\fR"
.in +2
.nf
\fBtnf_device\fR     \fIdevice\fR
\fBtnf_offset\fR     \fIoffset\fR
\fBtnf_size\fR       \fIsize\fR
\fBtnf_bioflags\fR   \fIrw\fR
.fi
.in -2

.sp
.LP
Raw I/O start event.  This event marks entry into the \fBphysio\fR(9F)
function which performs unbuffered I/O.
.sp
.ne 2
.na
\fB\fIdevice\fR\fR
.ad
.RS 10n
Contains the major and minor numbers of the device of the transfer.
.RE

.sp
.ne 2
.na
\fB\fIoffset\fR\fR
.ad
.RS 10n
The logical offset on the device for the transfer.
.RE

.sp
.ne 2
.na
\fB\fIsize\fR\fR
.ad
.RS 10n
The number of bytes to be transferred.
.RE

.sp
.ne 2
.na
\fB\fIrw\fR\fR
.ad
.RS 10n
The direction of the transfer: read or write (see \fBbuf\fR(9S)).
.RE

.SS "\fBphysio_end\fR"
.in +2
.nf
\fBtnf_device\fR    \fIdevice\fR
.fi
.in -2

.sp
.LP
Raw I/O end event.  This event marks exit from the \fBphysio\fR(9F) function.
.sp
.ne 2
.na
\fB\fIdevice\fR\fR
.ad
.RS 10n
The major and minor numbers of the device of the transfer.
.RE

.SH USAGE
Use the \fBprex\fR utility to control kernel probes. The standard \fBprex\fR
commands to list and manipulate probes are available to you, along with
commands to set up and manage kernel tracing.
.sp
.LP
Kernel probes write trace records into a kernel trace buffer. You must copy the
buffer into a TNF file for post-processing; use the \fBtnfxtract\fR utility for
this.
.sp
.LP
You use the \fBtnfdump\fR utility to examine a kernel trace file. This is
exactly the same as examining a user-level trace file.
.sp
.LP
The steps you typically follow to take a kernel trace are:
.RS +4
.TP
1.
Become superuser (\fBsu\fR).
.RE
.RS +4
.TP
2.
Allocate a kernel trace buffer of the desired size (\fBprex\fR).
.RE
.RS +4
.TP
3.
Select the probes you want to trace and enable (\fBprex\fR).
.RE
.RS +4
.TP
4.
Turn kernel tracing on (\fBprex\fR).
.RE
.RS +4
.TP
5.
Run your application.
.RE
.RS +4
.TP
6.
Turn kernel tracing off (\fBprex\fR).
.RE
.RS +4
.TP
7.
Extract the kernel trace buffer (\fBtnfxtract\fR).
.RE
.RS +4
.TP
8.
Disable all probes (\fBprex\fR).
.RE
.RS +4
.TP
9.
Deallocate the kernel trace buffer (\fBprex\fR).
.RE
.RS +4
.TP
10.
Examine the trace file (\fBtnfdump\fR).
.RE
.sp
.LP
A convenient way to follow these steps is to use two shell windows; run an
interactive \fBprex\fR session in one, and run your application and
\fBtnfxtract\fR in the other.
.SH SEE ALSO
\fBprex\fR(1), \fBtnfdump\fR(1), \fBtnfxtract\fR(1), \fBlibtnfctl\fR(3TNF),
\fBTNF_PROBE\fR(3TNF), \fBtracing\fR(3TNF), \fBstrategy\fR(9E),
\fBbiodone\fR(9F), \fBphysio\fR(9F), \fBbuf\fR(9S)