cat and ct subcommands
The cat subcommand erases all trace points. The ct subcommand erases individual trace points.
Format
cat
ct slot | [-p | -v] Address
Parameters
Item | Description |
---|---|
slot | Identifies the slot number for a trace point. This parameter must be a decimal value. |
-p | Indicates the trace address is a physical or real address. |
-v | Indicate the trace address is an effective or virtual address. |
Address | Identifies the address of the trace point. Symbols, hexadecimal values, or hexadecimal expressions can be used to specify an address. |
You can specify the trace point cleared by the ct subcommand by a slot number or by an address. By default, KDB kernel debugger chooses the current state of the machine. If the subcommand is entered before VMM initialization, the address is the physical or real address. If the subcommand is entered after VMM initialization, the address is the effective or virtual address.
Note: Slot numbers are not fixed. To clear slot 1 and slot 2 type ct
2; ct 1 or typect 1; ct 1. Do not type ct 1; ct
2.
Other
No aliases.
Examples
The following is an example of how to use the cat and the ct subcommands:
KDB(0)> bt open //enable trace on open()
KDB(0)> bt close //enable trace on close()
KDB(0)> bt readlink //enable trace on readlink()
KDB(0)> bt //display current active traces
0: .open+000000 (sid:00000000) trace {hit: 0}
1: .close+000000 (sid:00000000) trace {hit: 0}
2: .readlink+000000 (sid:00000000) trace {hit: 0}
KDB(0)> ct 1 //clear trace slot 1
KDB(0)> bt //display current active traces
0: .open+000000 (sid:00000000) trace {hit: 0}
1: .readlink+000000 (sid:00000000) trace {hit: 0}
KDB(0)> cat //clear all active traces
KDB(0)> bt //display current active traces
No breakpoints are set.
KDB(0)>