STREAMS/UX for the HP 9000 Reference Manual

193
Debugging STREAMS/UX Modules and Drivers
Using adb
Important User Area Fields
The table below describes the adb command to use to print important user
area fields. u means the value marked u printed on adb entry (see example
above). When executing the adb commands in the table below, substitute
the u value printed on adb entry for the letter u.
For example, to print u_comm, given the adb entry printout u 7FFE6000
u.u_procp 4D2F20, type:
0x7FFE6000+0x260/s
See /usr/include/sys/user.h for more information on fields in the user area.
These offset values are for HP-UX release 10.0, and may change from
release to release.
Important Process Table Fields
The table below describes the adb command to use to print important
process table fields. p means the value marked u.u_procp printed on adb
entry (see example above). When executing the adb commands in the table
below, substitute the u.u_procp value printed out on adb entry for the letter
p. For example, to print out p_flag, given the adb entry printout at the
beginning of this section, type:
0x4D2F20+0x20/X
See /usr/include/sys/proc.h for more information on fields in the proc
structure. These offset values are for HP-UX release 10.0, and may change
from release to release.
Field Name Address Description
u_procp
u+0x258/X Pointer to process table entry.
u_comm
u+0x260/s [Series 700]
u+0x264/s [Series 800]
Name of command used to start this process. For
STREAMS/UX, this is usually strsched.
u_arg
u+0x270/10X [Series 700]
u+0x274/10X [Series 800]
Arguments to current system call. For
STREAMS/UX service routines being run by
strsched, these should all be zero.