16.3 Process Model Translators

The DTrace library file /usr/lib64/dtrace/procfs.d provides a set of translators for use in your D programs to translate from the operating system kernel implementation structure for a process descriptor (struct task_struct) to the stable structures psinfo and lwpsinfo. These structures define useful Stable information about processes and threads such as the process ID, process priority, command name, initial arguments, and other data displayed by the ps command.

Table 16.1 procfs.d Translators

Input Type

Input Type Attributes

Output Type

Output Type Attributes

struct task_struct *

Private/Private/Common

psinfo_t *

Stable/Stable/Common

struct task_struct *

Private/Private/Common

lwpsinfo_t *

Stable/Stable/Common