Changeset View
Changeset View
Standalone View
Standalone View
documentation/content/en/books/handbook/dtrace/_index.adoc
Show First 20 Lines • Show All 130 Lines • ▼ Show 20 Lines | |||||
Each probe has an `ID`, a `PROVIDER` (dtrace or fbt), a `MODULE`, and a `FUNCTION NAME`. Refer to man:dtrace[1] for more information about this command. | Each probe has an `ID`, a `PROVIDER` (dtrace or fbt), a `MODULE`, and a `FUNCTION NAME`. Refer to man:dtrace[1] for more information about this command. | ||||
The examples in this section provide an overview of how to use two of the fully supported scripts from the DTrace Toolkit: the [.filename]#hotkernel# and [.filename]#procsystime# scripts. | The examples in this section provide an overview of how to use two of the fully supported scripts from the DTrace Toolkit: the [.filename]#hotkernel# and [.filename]#procsystime# scripts. | ||||
The [.filename]#hotkernel# script is designed to identify which function is using the most kernel time. It will produce output similar to the following: | The [.filename]#hotkernel# script is designed to identify which function is using the most kernel time. It will produce output similar to the following: | ||||
[source,shell] | [source,shell] | ||||
.... | .... | ||||
# cd /usr/local/shared/dtrace-toolkit | # cd /usr/local/share/dtrace-toolkit | ||||
# ./hotkernel | # ./hotkernel | ||||
Sampling... Hit Ctrl-C to end. | Sampling... Hit Ctrl-C to end. | ||||
.... | .... | ||||
As instructed, use the kbd:[Ctrl+C] key combination to stop the process. Upon termination, the script will display a list of kernel functions and timing information, sorting the output in increasing order of time: | As instructed, use the kbd:[Ctrl+C] key combination to stop the process. Upon termination, the script will display a list of kernel functions and timing information, sorting the output in increasing order of time: | ||||
[source,shell] | [source,shell] | ||||
.... | .... | ||||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |