cdt subcommand

The cdt subcommand displays information about component-dump tables in a system memory dump.

Restriction: This subcommand is only available within the kdb command. You can use this subcommand only when analyzing a dump file. The subcommand does not display any information when you use the kdb command on a live system. The cdt subcommand is not included in the KDB kernel debugger.

Format

cdt [-f] [index]
cdt -p [-f]  index [entry]
cdt -d [-f]  index
cdt [-f] index entry [addr [count]]
cdt  [-f] [-p] -a addr
cdt [-f]

Parameters

Item Description
-a Displays a list of entries containing the address addr.
-d Indicates that the dump routines in the /usr/lib/ras/dmprtns directory are used to display data from the component-dump table specified by the index parameter. If you specify the -d parameter, any dump-formatting routines for the component that the index parameter specifies are invoked to format the data in the component-dump table.
-f Specifies the cdt command to display CDT data of the firmware-assisted dump specific CDTs.
-p Requests that a list of paged-in-memory regions is displayed from the specified component-dump table or entry. If you specify the -p flag, a more detailed list showing the paged-in-memory regions within each entry is displayed.
addr Indicates the address from which to start displaying an entry's data. If you do not specify this parameter, the data display starts at the beginning of the entry. This must be a hexadecimal value or a symbolic name.
count Indicates the total number of words to display when you view an entry's data. The number can range between 0 and 4294967296. If you do not specify this parameter, all of the entry's data starting at the address addr is displayed. This must be a decimal value.
entry Indicates the data area of the indicated component to be viewed. This must be a decimal value.
index Indicates the component-dump table to be viewed. This must be a decimal value.

With no parameters, a list of all component-dump tables is displayed. If index is specified, the list of entries belonging to the specified component-dump table is displayed.

If you specify the -a parameter, the kdb command searches all of the entries in the dump, and displays a list of entries that include the address that you specify. If you use the -p and -a parameters together, the kdb command lists only those paged-in-memory regions in the dump file that includes the address that you specify.

If you specify both the index and entry parameters without any other parameters, the raw data for the indicated entry is displayed in both hexadecimal and ASCII. You can use the optional addr and count parameters to control how much of the entry's data is displayed. If neither of these parameters are specified, all of that entry's raw data is displayed.

Other

No aliases.

Examples

The following is an example of how to use the cdt subcommand:

(0)> cdt
Component dump tables included in dump:

CDT ENTRS NAME
  1     2 minidump
  2    10 dmp_minimal
  3   249 proc
  4   750 thrd
  5     1 rasct
  6     2 ldr
  7     3 errlg
  8    14 mtrc
  9     1 lfs
 10     2 bos
 11     7 ipc
 12    13 vmm
 13   256 alloc_kheap
 14    16 alloc_other
 15     1 rtastrc
 16     1 cvscsi
 17     3 aixpcm
 18     6 scsidisk
 19     2 lvm
 20     4 tty
 21    10 netstat
 22     1 dump_statistics
(0)> cdt 11
Dump table entries in CDT:

CDT ENTRY VMHANDLE         ADDRESS          LENGTH   NAME
 11     1 000000001C027400 F100000270000000 10000000 msgid
 11     2 0000000020028400 F100000280000000 10000000 semid
 11     3 0000000024029400 F100000290000000 10000000 shmid
 11     4 000000003402D400 F1000002D0000000 10000000 msg000
 11     5 000000003802E400 F1000002E0000000 10000000 msg001
 11     6 000000003C02F400 F1000002F0000000 10000000 msg002
 11     7 0000000040030400 F100000300000000 10000000 msg003
(0)> cdt -p 11 7
Paged in regions of dump table entry:

CDT ENTRY VMHANDLE         ADDRESS          LENGTH   NAME
 11     7 0000000040030400 F100000300000000 00001000 msg003
 11     7 0000000040030400 F100000300008000 00001000 msg003
 11     7 0000000040030400 F100000300107000 00001000 msg003
(0)> cdt -a F100000300000000
Dump table entries containing address:

CDT ENTRY VMHANDLE         ADDRESS          LENGTH   NAME
 11     7 0000000040030400 F100000300000000 10000000 msg003
(0)> cdt 11 7 F100000300000000 8
Data in dump table entry:

F100000300000000: 48454150 00000000 00000000 00108000  HEAP............
F100000300000010: 00000000 00000000 00000001 00000000  ................
(0)>