Print this page
12743 man page spelling mistakes

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man4/tnf_kernel_probes.4
          +++ new/usr/src/man/man4/tnf_kernel_probes.4
   1    1  '\" te
   2    2  .\"  Copyright 1999 Sun Microsystems, Inc. All Rights Reserved.
   3    3  .\" 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.
   4    4  .\" 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.
   5    5  .\" 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]
   6      -.TH TNF_KERNEL_PROBES 4 "Nov 8, 1999"
        6 +.TH TNF_KERNEL_PROBES 4 "May 16, 2020"
   7    7  .SH NAME
   8    8  tnf_kernel_probes \- TNF kernel probes
   9    9  .SH DESCRIPTION
  10      -.sp
  11      -.LP
  12   10  The set of probes (trace instrumentation points) available in the standard
  13   11  kernel.  The probes log trace data to a kernel trace buffer in Trace Normal
  14   12  Form  (TNF).  Kernel probes are controlled by \fBprex\fR(1). A snapshot of the
  15   13  kernel trace buffer can be made using \fBtnfxtract\fR(1) and examined using
  16   14  \fBtnfdump\fR(1).
  17   15  .sp
  18   16  .LP
  19   17  Each probe has a \fIname\fR and is associated with a set of symbolic
  20   18  \fIkeys\fR, or \fIcategories\fR. These are used to select and control probes
  21   19  from \fBprex\fR(1). A probe that is enabled for tracing generates a  \fBTNF\fR
  22   20  record, called an \fIevent record\fR. An event record contains two common
  23   21  members and may contain other probe-specific data members.
  24   22  .SS "Common Members"
  25      -.sp
  26   23  .in +2
  27   24  .nf
  28   25  \fBtnf_probe_event\fR    \fItag\fR
  29   26  \fBtnf_time_delta\fR     \fItime_delta\fR
  30   27  .fi
  31   28  .in -2
  32   29  
  33   30  .sp
  34   31  .ne 2
  35   32  .na
↓ open down ↓ 27 lines elided ↑ open up ↑
  63   60  .na
  64   61  \fB\fItime_delta\fR\fR
  65   62  .ad
  66   63  .RS 14n
  67   64  A 32-bit time offset from the base time; the sum of the two times is the actual
  68   65  time of the event.
  69   66  .RE
  70   67  
  71   68  .SS "Threads"
  72   69  .SS "\fBthread_create\fR"
  73      -.sp
  74   70  .in +2
  75   71  .nf
  76   72  \fBtnf_kthread_id\fR    \fItid\fR
  77   73  \fBtnf_pid\fR           \fIpid\fR
  78   74  \fBtnf_symbol\fR        \fIstart_pc\fR
  79   75  .fi
  80   76  .in -2
  81   77  
  82   78  .sp
  83   79  .LP
↓ open down ↓ 19 lines elided ↑ open up ↑
 103   99  .sp
 104  100  .ne 2
 105  101  .na
 106  102  \fB\fIstart_pc\fR\fR
 107  103  .ad
 108  104  .RS 12n
 109  105  The kernel address of its start routine.
 110  106  .RE
 111  107  
 112  108  .SS "\fBthread_state\fR"
 113      -.sp
 114  109  .in +2
 115  110  .nf
 116  111  \fBtnf_kthread_id\fR    \fItid\fR
 117  112  \fBtnf_microstate\fR    \fIstate\fR
 118  113  .fi
 119  114  .in -2
 120  115  
 121  116  .sp
 122  117  .LP
 123  118  Thread microstate transition events.
↓ open down ↓ 50 lines elided ↑ open up ↑
 174  169  .el o
 175  170  Stopped.
 176  171  .RE
 177  172  The values of this member are defined in <\fBsys/msacct.h\fR>. Note that to
 178  173  reduce trace output, transitions between the \fIsystem\fR and \fIuser\fR
 179  174  microstates that are induced by system calls are not traced.  This  information
 180  175  is implicit in the system call entry and exit events.
 181  176  .RE
 182  177  
 183  178  .SS "thread_exit"
 184      -.sp
 185      -.LP
 186  179  Thread termination event for writing thread.  This probe has no data members
 187  180  other than the common members.
 188  181  .SS "Scheduling"
 189      -.sp
 190      -.LP
 191  182  \fB\fR
 192  183  .SS "thread_queue"
 193      -.sp
 194  184  .in +2
 195  185  .nf
 196  186  \fBtnf_kthread_id\fR    \fItid\fR
 197  187  \fBtnf_cpuid\fR         \fIcpuid\fR
 198  188  \fBtnf_long\fR          \fIpriority\fR
 199  189  \fBtnf_ulong\fR         \fIqueue_length\fR
 200  190  .fi
 201  191  .in -2
 202  192  
 203  193  .sp
↓ open down ↓ 22 lines elided ↑ open up ↑
 226  216  .ne 2
 227  217  .na
 228  218  \fB\fIqueue_length\fR\fR
 229  219  .ad
 230  220  .RS 16n
 231  221  The current length of the cpu's dispatch queue.
 232  222  .RE
 233  223  
 234  224  .SS "Blocking"
 235  225  .SS "\fBthread_block\fR"
 236      -.sp
 237  226  .in +2
 238  227  .nf
 239  228  \fBtnf_opaque\fR     \fIreason\fR
 240  229  \fBtnf_symbols\fR    \fIstack\fR
 241  230  .fi
 242  231  .in -2
 243  232  
 244  233  .sp
 245  234  .LP
 246  235  Thread blockage event.  This probe captures a partial stack backtrace when the
↓ open down ↓ 12 lines elided ↑ open up ↑
 259  248  .na
 260  249  \fB\fIsymbols\fR\fR
 261  250  .ad
 262  251  .RS 11n
 263  252  References a \fBTNF\fR array of kernel addresses representing the PCs on the
 264  253  stack at the time the thread blocks.
 265  254  .RE
 266  255  
 267  256  .SS "System Calls"
 268  257  .SS "\fBsyscall_start\fR"
 269      -.sp
 270  258  .in +2
 271  259  .nf
 272  260  \fBtnf_sysnum\fR    \fIsysnum\fR
 273  261  .fi
 274  262  .in -2
 275  263  
 276  264  .sp
 277  265  .LP
 278  266  System call entry event.
 279  267  .sp
 280  268  .ne 2
 281  269  .na
 282  270  \fB\fIsysnum\fR\fR
 283  271  .ad
 284  272  .RS 10n
 285  273  The system call number.  The writing thread implicitly enters the \fIsystem\fR
 286  274  microstate with this event.
 287  275  .RE
 288  276  
 289  277  .SS "\fBsyscall_end\fR"
 290      -.sp
 291  278  .in +2
 292  279  .nf
 293  280  \fBtnf_long\fR    \fIrval1\fR
 294  281  \fBtnf_long\fR    \fIrval2\fR
 295  282  \fBtnf_long\fR    \fIerrno\fR
 296  283  .fi
 297  284  .in -2
 298  285  
 299  286  .sp
 300  287  .LP
↓ open down ↓ 14 lines elided ↑ open up ↑
 315  302  .ad
 316  303  .RS 19n
 317  304  The error return.
 318  305  .RE
 319  306  
 320  307  .sp
 321  308  .LP
 322  309  The writing thread implicitly enters the \fIuser\fR microstate with this event.
 323  310  .SS "Page Faults"
 324  311  .SS "\fBaddress_fault\fR"
 325      -.sp
 326  312  .in +2
 327  313  .nf
 328  314  \fBtnf_opaque\fR      \fIaddress\fR
 329  315  \fBtnf_fault_type\fR  \fIfault_type\fR
 330  316  \fBtnf_seg_access\fR  \fIaccess\fR
 331  317  .fi
 332  318  .in -2
 333  319  
 334  320  .sp
 335  321  .LP
↓ open down ↓ 21 lines elided ↑ open up ↑
 357  343  .ne 2
 358  344  .na
 359  345  \fB\fIaccess\fR\fR
 360  346  .ad
 361  347  .RS 14n
 362  348  Gives the desired access protection: read, write, execute or create. The values
 363  349  for these two members are defined in <\fBvm/seg_enum.h\fR>.
 364  350  .RE
 365  351  
 366  352  .SS "\fBmajor_fault\fR"
 367      -.sp
 368  353  .in +2
 369  354  .nf
 370  355  \fBtnf_opaque\fR    \fIvnode\fR
 371  356  \fBtnf_offset\fR    \fIoffset\fR
 372  357  .fi
 373  358  .in -2
 374  359  
 375  360  .sp
 376  361  .LP
 377  362  Major page fault event.  The faulting page is mapped to the file given by the
 378  363  \fIvnode\fR member, at the given \fIoffset\fR into the file.  (The faulting
 379  364  virtual address is in the most recent \fBaddress_fault\fR event for the writing
 380  365  thread.)
 381  366  .SS "\fBanon_private\fR"
 382      -.sp
 383  367  .in +2
 384  368  .nf
 385  369  \fBtnf_opaque\fR    \fIaddress\fR
 386  370  .fi
 387  371  .in -2
 388  372  
 389  373  .sp
 390  374  .LP
 391  375  Copy-on-write page fault event.
 392  376  .sp
 393  377  .ne 2
 394  378  .na
 395  379  \fB\fIaddress\fR\fR
 396  380  .ad
 397  381  .RS 11n
 398  382  The virtual address at which the new page is mapped.
 399  383  .RE
 400  384  
 401  385  .SS "\fBanon_zero\fR"
 402      -.sp
 403  386  .in +2
 404  387  .nf
 405  388  \fBtnf_opaque\fR    \fIaddress\fR
 406  389  .fi
 407  390  .in -2
 408  391  
 409  392  .sp
 410  393  .LP
 411  394  Zero-fill page fault event.
 412  395  .sp
 413  396  .ne 2
 414  397  .na
 415  398  \fB\fIaddress\fR\fR
 416  399  .ad
 417  400  .RS 11n
 418  401  The virtual address at which the new page is mapped.
 419  402  .RE
 420  403  
 421  404  .SS "\fBpage_unmap\fR"
 422      -.sp
 423  405  .in +2
 424  406  .nf
 425  407  \fBtnf_opaque\fR    \fIvnode\fR
 426  408  \fBtnf_offset\fR    \fIoffset\fR
 427  409  .fi
 428  410  .in -2
 429  411  
 430  412  .sp
 431  413  .LP
 432  414  Page unmapping event.  This probe marks the unmapping of a file system page
↓ open down ↓ 2 lines elided ↑ open up ↑
 435  417  .ne 2
 436  418  .na
 437  419  \fB\fIvnode\fR and \fIoffset\fR\fR
 438  420  .ad
 439  421  .RS 20n
 440  422  Identifies the file and offset of the page being unmapped.
 441  423  .RE
 442  424  
 443  425  .SS "Pageins and Pageouts"
 444  426  .SS "\fBpagein\fR"
 445      -.sp
 446  427  .in +2
 447  428  .nf
 448  429  \fBtnf_opaque\fR    \fIvnode\fR
 449  430  \fBtnf_offset\fR    \fIoffset\fR
 450  431  \fBtnf_size\fR      \fIsize\fR
 451  432  .fi
 452  433  .in -2
 453  434  
 454  435  .sp
 455  436  .LP
 456  437  Pagein start event.  This event signals the initiation of pagein I/O.
 457  438  .sp
 458  439  .ne 2
 459  440  .na
 460  441  \fB\fIvnode\fRand\fIoffset\fR\fR
 461  442  .ad
 462  443  .RS 18n
 463      -Identifyies the file and offset to be paged in.
      444 +Identifies the file and offset to be paged in.
 464  445  .RE
 465  446  
 466  447  .sp
 467  448  .ne 2
 468  449  .na
 469  450  \fB\fIsize\fR\fR
 470  451  .ad
 471  452  .RS 18n
 472  453  Specifies the number of bytes to be paged in.
 473  454  .RE
 474  455  
 475  456  .SS "\fBpageout\fR"
 476      -.sp
 477  457  .in +2
 478  458  .nf
 479  459  \fBtnf_opaque\fR    \fIvnode\fR
 480  460  \fBtnf_ulong\fR     \fIpages_pageout\fR
 481  461  \fBtnf_ulong\fR     \fIpages_freed\fR
 482  462  \fBtnf_ulong\fR     \fIpages_reclaimed\fR
 483  463  .fi
 484  464  .in -2
 485  465  
 486  466  .sp
↓ open down ↓ 30 lines elided ↑ open up ↑
 517  497  .ne 2
 518  498  .na
 519  499  \fB\fIpages_reclaimed\fR\fR
 520  500  .ad
 521  501  .RS 19n
 522  502  The number of pages reclaimed after being written out.
 523  503  .RE
 524  504  
 525  505  .SS "Page Daemon (Page Stealer)"
 526  506  .SS "\fBpageout_scan_start\fR"
 527      -.sp
 528  507  .in +2
 529  508  .nf
 530  509  \fBtnf_ulong\fR    \fIpages_free\fR
 531  510  \fBtnf_ulong\fR    \fIpages_needed\fR
 532  511  .fi
 533  512  .in -2
 534  513  
 535  514  .sp
 536  515  .LP
 537  516  Page daemon scan start event.  This event signals the beginning of one
↓ open down ↓ 10 lines elided ↑ open up ↑
 548  527  .sp
 549  528  .ne 2
 550  529  .na
 551  530  \fB\fIpages_needed\fR\fR
 552  531  .ad
 553  532  .RS 16n
 554  533  The number of pages desired free.
 555  534  .RE
 556  535  
 557  536  .SS "\fBpageout_scan_end\fR"
 558      -.sp
 559  537  .in +2
 560  538  .nf
 561  539  \fBtnf_ulong\fR    \fIpages_free\fR
 562  540  \fBtnf_ulong\fR    \fIpages_scanned\fR
 563  541  .fi
 564  542  .in -2
 565  543  
 566  544  .sp
 567  545  .LP
 568  546  Page daemon scan end event.  This event signals the end of one iteration of the
↓ open down ↓ 12 lines elided ↑ open up ↑
 581  559  .na
 582  560  \fB\fIpages_scanned\fR\fR
 583  561  .ad
 584  562  .RS 17n
 585  563  The number of pages examined by the page daemon.  (Potentially more pages will
 586  564  be freed when any queued pageout requests complete.)
 587  565  .RE
 588  566  
 589  567  .SS "Swapper"
 590  568  .SS "\fBswapout_process\fR"
 591      -.sp
 592  569  .in +2
 593  570  .nf
 594  571  \fBtnf_pid\fR      \fIpid\fR
 595  572  \fBtnf_ulong\fR    \fIpage_count\fR
 596  573  .fi
 597  574  .in -2
 598  575  
 599  576  .sp
 600  577  .LP
 601  578  Address space swapout event.  This event marks the swapping out of a process
↓ open down ↓ 10 lines elided ↑ open up ↑
 612  589  .sp
 613  590  .ne 2
 614  591  .na
 615  592  \fB\fIpage_count\fR\fR
 616  593  .ad
 617  594  .RS 14n
 618  595  Reports the number of pages either freed or queued for pageout.
 619  596  .RE
 620  597  
 621  598  .SS "\fBswapout_lwp\fR"
 622      -.sp
 623  599  .in +2
 624  600  .nf
 625  601  \fBtnf_pid\fR         \fIpid\fR
 626  602  \fBtnf_lwpid\fR       \fIlwpid\fR
 627  603  \fBtnf_kthread_id\fR  \fItid\fR
 628  604  \fBtnf_ulong\fR       \fIpage_count\fR
 629  605  .fi
 630  606  .in -2
 631  607  
 632  608  .sp
↓ open down ↓ 30 lines elided ↑ open up ↑
 663  639  .sp
 664  640  .ne 2
 665  641  .na
 666  642  \fB\fIpage_count\fR\fR
 667  643  .ad
 668  644  .RS 14n
 669  645  The number of pages swapped out.
 670  646  .RE
 671  647  
 672  648  .SS "\fBswapin_lwp\fR"
 673      -.sp
 674  649  .in +2
 675  650  .nf
 676  651  \fBtnf_pid\fR         \fIpid\fR
 677  652  \fBtnf_lwpid\fR       \fIlwpid\fR
 678  653  \fBtnf_kthread_id\fR  \fItid\fR
 679  654  \fBtnf_ulong\fR       \fIpage_count\fR
 680  655  .fi
 681  656  .in -2
 682  657  
 683  658  .sp
↓ open down ↓ 31 lines elided ↑ open up ↑
 715  690  .ne 2
 716  691  .na
 717  692  \fB\fIpage_count\fR\fR
 718  693  .ad
 719  694  .RS 14n
 720  695  The number of pages swapped in.
 721  696  .RE
 722  697  
 723  698  .SS "Local I/O"
 724  699  .SS "\fBstrategy\fR"
 725      -.sp
 726  700  .in +2
 727  701  .nf
 728  702  \fBtnf_device\fR      \fIdevice\fR
 729  703  \fBtnf_diskaddr\fR    \fIblock\fR
 730  704  \fBtnf_size\fR        \fIsize\fR
 731  705  \fBtnf_opaque\fR      \fIbuf\fR
 732  706  \fBtnf_bioflags\fR   \fI flags\fR
 733  707  .fi
 734  708  .in -2
 735  709  
↓ open down ↓ 40 lines elided ↑ open up ↑
 776  750  .sp
 777  751  .ne 2
 778  752  .na
 779  753  \fB\fIflags\fR\fR
 780  754  .ad
 781  755  .RS 10n
 782  756  The \fBbuf\fR(9S) flags associated with the transfer.
 783  757  .RE
 784  758  
 785  759  .SS "\fBbiodone\fR"
 786      -.sp
 787  760  .in +2
 788  761  .nf
 789  762  \fBtnf_device\fR     \fIdevice\fR
 790  763  \fBtnf_diskaddr\fR   \fIblock\fR
 791  764  \fBtnf_opaque\fR     \fIbuf\fR
 792  765  .fi
 793  766  .in -2
 794  767  
 795  768  .sp
 796  769  .LP
↓ open down ↓ 20 lines elided ↑ open up ↑
 817  790  .sp
 818  791  .ne 2
 819  792  .na
 820  793  \fB\fIbuf\fR\fR
 821  794  .ad
 822  795  .RS 10n
 823  796  The kernel address of the \fBbuf\fR(9S) structure associated with the transfer.
 824  797  .RE
 825  798  
 826  799  .SS "\fBphysio_start\fR"
 827      -.sp
 828  800  .in +2
 829  801  .nf
 830  802  \fBtnf_device\fR     \fIdevice\fR
 831  803  \fBtnf_offset\fR     \fIoffset\fR
 832  804  \fBtnf_size\fR       \fIsize\fR
 833  805  \fBtnf_bioflags\fR   \fIrw\fR
 834  806  .fi
 835  807  .in -2
 836  808  
 837  809  .sp
 838  810  .LP
 839  811  Raw I/O start event.  This event marks entry into the \fBphysio\fR(9F)
 840      -fufnction which performs unbuffered I/O.
      812 +function which performs unbuffered I/O.
 841  813  .sp
 842  814  .ne 2
 843  815  .na
 844  816  \fB\fIdevice\fR\fR
 845  817  .ad
 846  818  .RS 10n
 847  819  Contains the major and minor numbers of the device of the transfer.
 848  820  .RE
 849  821  
 850  822  .sp
↓ open down ↓ 17 lines elided ↑ open up ↑
 868  840  .sp
 869  841  .ne 2
 870  842  .na
 871  843  \fB\fIrw\fR\fR
 872  844  .ad
 873  845  .RS 10n
 874  846  The direction of the transfer: read or write (see \fBbuf\fR(9S)).
 875  847  .RE
 876  848  
 877  849  .SS "\fBphysio_end\fR"
 878      -.sp
 879  850  .in +2
 880  851  .nf
 881  852  \fBtnf_device\fR    \fIdevice\fR
 882  853  .fi
 883  854  .in -2
 884  855  
 885  856  .sp
 886  857  .LP
 887      -Raw I/O end event.  This event marks exit from the \fBphysio\fR(9F) fufnction.
      858 +Raw I/O end event.  This event marks exit from the \fBphysio\fR(9F) function.
 888  859  .sp
 889  860  .ne 2
 890  861  .na
 891  862  \fB\fIdevice\fR\fR
 892  863  .ad
 893  864  .RS 10n
 894  865  The major and minor numbers of the device of the transfer.
 895  866  .RE
 896  867  
 897  868  .SH USAGE
 898      -.sp
 899      -.LP
 900  869  Use the \fBprex\fR utility to control kernel probes. The standard \fBprex\fR
 901  870  commands to list and manipulate probes are available to you, along with
 902  871  commands to set up and manage kernel tracing.
 903  872  .sp
 904  873  .LP
 905  874  Kernel probes write trace records into a kernel trace buffer. You must copy the
 906  875  buffer into a TNF file for post-processing; use the \fBtnfxtract\fR utility for
 907  876  this.
 908  877  .sp
 909  878  .LP
↓ open down ↓ 51 lines elided ↑ open up ↑
 961  930  .TP
 962  931  10.
 963  932  Examine the trace file (\fBtnfdump\fR).
 964  933  .RE
 965  934  .sp
 966  935  .LP
 967  936  A convenient way to follow these steps is to use two shell windows; run an
 968  937  interactive \fBprex\fR session in one, and run your application and
 969  938  \fBtnfxtract\fR in the other.
 970  939  .SH SEE ALSO
 971      -.sp
 972      -.LP
 973  940  \fBprex\fR(1), \fBtnfdump\fR(1), \fBtnfxtract\fR(1), \fBlibtnfctl\fR(3TNF),
 974  941  \fBTNF_PROBE\fR(3TNF), \fBtracing\fR(3TNF), \fBstrategy\fR(9E),
 975  942  \fBbiodone\fR(9F), \fBphysio\fR(9F), \fBbuf\fR(9S)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX