PCPProcess.c 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. /*
  2. htop - PCPProcess.c
  3. (C) 2014 Hisham H. Muhammad
  4. (C) 2020-2021 htop dev team
  5. (C) 2020-2021 Red Hat, Inc.
  6. Released under the GNU GPLv2+, see the COPYING file
  7. in the source distribution for its full text.
  8. */
  9. #include "config.h" // IWYU pragma: keep
  10. #include "pcp/PCPProcess.h"
  11. #include <math.h>
  12. #include <stdio.h>
  13. #include <stdlib.h>
  14. #include "CRT.h"
  15. #include "Macros.h"
  16. #include "Process.h"
  17. #include "ProvideCurses.h"
  18. #include "RichString.h"
  19. #include "XUtils.h"
  20. #include "pcp/PCPDynamicColumn.h"
  21. const ProcessFieldData Process_fields[] = {
  22. [0] = { .name = "", .title = NULL, .description = NULL, .flags = 0, },
  23. [PID] = { .name = "PID", .title = "PID", .description = "Process/thread ID", .flags = 0, .pidColumn = true, },
  24. [COMM] = { .name = "Command", .title = "Command ", .description = "Command line", .flags = 0, },
  25. [STATE] = { .name = "STATE", .title = "S ", .description = "Process state (S sleeping, R running, D disk, Z zombie, T traced, W paging, I idle)", .flags = 0, },
  26. [PPID] = { .name = "PPID", .title = "PPID", .description = "Parent process ID", .flags = 0, },
  27. [PGRP] = { .name = "PGRP", .title = "PGRP", .description = "Process group ID", .flags = 0, },
  28. [SESSION] = { .name = "SESSION", .title = "SID", .description = "Process's session ID", .flags = 0, },
  29. [TTY] = { .name = "TTY", .title = "TTY ", .description = "Controlling terminal", .flags = 0, },
  30. [TPGID] = { .name = "TPGID", .title = "TPGID", .description = "Process ID of the fg process group of the controlling terminal", .flags = 0, },
  31. [MINFLT] = { .name = "MINFLT", .title = " MINFLT ", .description = "Number of minor faults which have not required loading a memory page from disk", .flags = 0, .defaultSortDesc = true, },
  32. [CMINFLT] = { .name = "CMINFLT", .title = " CMINFLT ", .description = "Children processes' minor faults", .flags = 0, .defaultSortDesc = true, },
  33. [MAJFLT] = { .name = "MAJFLT", .title = " MAJFLT ", .description = "Number of major faults which have required loading a memory page from disk", .flags = 0, .defaultSortDesc = true, },
  34. [CMAJFLT] = { .name = "CMAJFLT", .title = " CMAJFLT ", .description = "Children processes' major faults", .flags = 0, .defaultSortDesc = true, },
  35. [UTIME] = { .name = "UTIME", .title = " UTIME+ ", .description = "User CPU time - time the process spent executing in user mode", .flags = 0, .defaultSortDesc = true, },
  36. [STIME] = { .name = "STIME", .title = " STIME+ ", .description = "System CPU time - time the kernel spent running system calls for this process", .flags = 0, .defaultSortDesc = true, },
  37. [CUTIME] = { .name = "CUTIME", .title = " CUTIME+ ", .description = "Children processes' user CPU time", .flags = 0, .defaultSortDesc = true, },
  38. [CSTIME] = { .name = "CSTIME", .title = " CSTIME+ ", .description = "Children processes' system CPU time", .flags = 0, .defaultSortDesc = true, },
  39. [PRIORITY] = { .name = "PRIORITY", .title = "PRI ", .description = "Kernel's internal priority for the process", .flags = 0, },
  40. [NICE] = { .name = "NICE", .title = " NI ", .description = "Nice value (the higher the value, the more it lets other processes take priority)", .flags = 0, },
  41. [STARTTIME] = { .name = "STARTTIME", .title = "START ", .description = "Time the process was started", .flags = 0, },
  42. [ELAPSED] = { .name = "ELAPSED", .title = "ELAPSED ", .description = "Time since the process was started", .flags = 0, },
  43. [PROCESSOR] = { .name = "PROCESSOR", .title = "CPU ", .description = "If of the CPU the process last executed on", .flags = 0, },
  44. [M_VIRT] = { .name = "M_VIRT", .title = " VIRT ", .description = "Total program size in virtual memory", .flags = 0, .defaultSortDesc = true, },
  45. [M_RESIDENT] = { .name = "M_RESIDENT", .title = " RES ", .description = "Resident set size, size of the text and data sections, plus stack usage", .flags = 0, .defaultSortDesc = true, },
  46. [M_SHARE] = { .name = "M_SHARE", .title = " SHR ", .description = "Size of the process's shared pages", .flags = 0, .defaultSortDesc = true, },
  47. [M_PRIV] = { .name = "M_PRIV", .title = " PRIV ", .description = "The private memory size of the process - resident set size minus shared memory", .flags = 0, .defaultSortDesc = true, },
  48. [M_TRS] = { .name = "M_TRS", .title = " CODE ", .description = "Size of the text segment of the process", .flags = 0, .defaultSortDesc = true, },
  49. [M_DRS] = { .name = "M_DRS", .title = " DATA ", .description = "Size of the data segment plus stack usage of the process", .flags = 0, .defaultSortDesc = true, },
  50. [M_LRS] = { .name = "M_LRS", .title = " LIB ", .description = "The library size of the process (unused since Linux 2.6; always 0)", .flags = 0, .defaultSortDesc = true, },
  51. [M_DT] = { .name = "M_DT", .title = " DIRTY ", .description = "Size of the dirty pages of the process (unused since Linux 2.6; always 0)", .flags = 0, .defaultSortDesc = true, },
  52. [ST_UID] = { .name = "ST_UID", .title = "UID", .description = "User ID of the process owner", .flags = 0, },
  53. [PERCENT_CPU] = { .name = "PERCENT_CPU", .title = " CPU%", .description = "Percentage of the CPU time the process used in the last sampling", .flags = 0, .defaultSortDesc = true, .autoWidth = true, .autoTitleRightAlign = true, },
  54. [PERCENT_NORM_CPU] = { .name = "PERCENT_NORM_CPU", .title = "NCPU%", .description = "Normalized percentage of the CPU time the process used in the last sampling (normalized by cpu count)", .flags = 0, .defaultSortDesc = true, .autoWidth = true, },
  55. [PERCENT_MEM] = { .name = "PERCENT_MEM", .title = "MEM% ", .description = "Percentage of the memory the process is using, based on resident memory size", .flags = 0, .defaultSortDesc = true, },
  56. [USER] = { .name = "USER", .title = "USER ", .description = "Username of the process owner (or user ID if name cannot be determined)", .flags = 0, },
  57. [TIME] = { .name = "TIME", .title = " TIME+ ", .description = "Total time the process has spent in user and system time", .flags = 0, .defaultSortDesc = true, },
  58. [NLWP] = { .name = "NLWP", .title = "NLWP ", .description = "Number of threads in the process", .flags = 0, .defaultSortDesc = true, },
  59. [TGID] = { .name = "TGID", .title = "TGID", .description = "Thread group ID (i.e. process ID)", .flags = 0, },
  60. [RCHAR] = { .name = "RCHAR", .title = "RCHAR ", .description = "Number of bytes the process has read", .flags = PROCESS_FLAG_IO, .defaultSortDesc = true, },
  61. [WCHAR] = { .name = "WCHAR", .title = "WCHAR ", .description = "Number of bytes the process has written", .flags = PROCESS_FLAG_IO, .defaultSortDesc = true, },
  62. [SYSCR] = { .name = "SYSCR", .title = " READ_SYSC ", .description = "Number of read(2) syscalls for the process", .flags = PROCESS_FLAG_IO, .defaultSortDesc = true, },
  63. [SYSCW] = { .name = "SYSCW", .title = " WRITE_SYSC ", .description = "Number of write(2) syscalls for the process", .flags = PROCESS_FLAG_IO, .defaultSortDesc = true, },
  64. [RBYTES] = { .name = "RBYTES", .title = " IO_R ", .description = "Bytes of read(2) I/O for the process", .flags = PROCESS_FLAG_IO, .defaultSortDesc = true, },
  65. [WBYTES] = { .name = "WBYTES", .title = " IO_W ", .description = "Bytes of write(2) I/O for the process", .flags = PROCESS_FLAG_IO, .defaultSortDesc = true, },
  66. [CNCLWB] = { .name = "CNCLWB", .title = " IO_C ", .description = "Bytes of cancelled write(2) I/O", .flags = PROCESS_FLAG_IO, .defaultSortDesc = true, },
  67. [IO_READ_RATE] = { .name = "IO_READ_RATE", .title = " DISK READ ", .description = "The I/O rate of read(2) in bytes per second for the process", .flags = PROCESS_FLAG_IO, .defaultSortDesc = true, },
  68. [IO_WRITE_RATE] = { .name = "IO_WRITE_RATE", .title = " DISK WRITE ", .description = "The I/O rate of write(2) in bytes per second for the process", .flags = PROCESS_FLAG_IO, .defaultSortDesc = true, },
  69. [IO_RATE] = { .name = "IO_RATE", .title = " DISK R/W ", .description = "Total I/O rate in bytes per second", .flags = PROCESS_FLAG_IO, .defaultSortDesc = true, },
  70. [CGROUP] = { .name = "CGROUP", .title = "CGROUP (raw) ", .description = "Which cgroup the process is in", .flags = PROCESS_FLAG_LINUX_CGROUP, },
  71. [CCGROUP] = { .name = "CCGROUP", .title = "CGROUP (compressed) ", .description = "Which cgroup the process is in (condensed to essentials)", .flags = PROCESS_FLAG_LINUX_CGROUP, },
  72. [CONTAINER] = { .name = "CONTAINER", .title = "CONTAINER ", .description = "Name of the container the process is in (guessed by heuristics)", .flags = PROCESS_FLAG_LINUX_CGROUP, },
  73. [OOM] = { .name = "OOM", .title = " OOM ", .description = "OOM (Out-of-Memory) killer score", .flags = PROCESS_FLAG_LINUX_OOM, .defaultSortDesc = true, },
  74. [PERCENT_CPU_DELAY] = { .name = "PERCENT_CPU_DELAY", .title = "CPUD% ", .description = "CPU delay %", .flags = 0, .defaultSortDesc = true, },
  75. [PERCENT_IO_DELAY] = { .name = "PERCENT_IO_DELAY", .title = " IOD% ", .description = "Block I/O delay %", .flags = 0, .defaultSortDesc = true, },
  76. [PERCENT_SWAP_DELAY] = { .name = "PERCENT_SWAP_DELAY", .title = "SWAPD% ", .description = "Swapin delay %", .flags = 0, .defaultSortDesc = true, },
  77. [M_PSS] = { .name = "M_PSS", .title = " PSS ", .description = "proportional set size, same as M_RESIDENT but each page is divided by the number of processes sharing it.", .flags = PROCESS_FLAG_LINUX_SMAPS, .defaultSortDesc = true, },
  78. [M_SWAP] = { .name = "M_SWAP", .title = " SWAP ", .description = "Size of the process's swapped pages", .flags = PROCESS_FLAG_LINUX_SMAPS, .defaultSortDesc = true, },
  79. [M_PSSWP] = { .name = "M_PSSWP", .title = " PSSWP ", .description = "shows proportional swap share of this mapping, Unlike \"Swap\", this does not take into account swapped out page of underlying shmem objects.", .flags = PROCESS_FLAG_LINUX_SMAPS, .defaultSortDesc = true, },
  80. [CTXT] = { .name = "CTXT", .title = " CTXT ", .description = "Context switches (incremental sum of voluntary_ctxt_switches and nonvoluntary_ctxt_switches)", .flags = PROCESS_FLAG_LINUX_CTXT, .defaultSortDesc = true, },
  81. [SECATTR] = { .name = "SECATTR", .title = " Security Attribute ", .description = "Security attribute of the process (e.g. SELinux or AppArmor)", .flags = PROCESS_FLAG_LINUX_SECATTR, },
  82. [PROC_COMM] = { .name = "COMM", .title = "COMM ", .description = "comm string of the process", .flags = 0, },
  83. [PROC_EXE] = { .name = "EXE", .title = "EXE ", .description = "Basename of exe of the process", .flags = 0, },
  84. [CWD] = { .name = "CWD", .title = "CWD ", .description = "The current working directory of the process", .flags = PROCESS_FLAG_CWD, },
  85. [AUTOGROUP_ID] = { .name = "AUTOGROUP_ID", .title = "AGRP", .description = "The autogroup identifier of the process", .flags = PROCESS_FLAG_LINUX_AUTOGROUP, },
  86. [AUTOGROUP_NICE] = { .name = "AUTOGROUP_NICE", .title = " ANI", .description = "Nice value (the higher the value, the more other processes take priority) associated with the process autogroup", .flags = PROCESS_FLAG_LINUX_AUTOGROUP, },
  87. };
  88. Process* PCPProcess_new(const Machine* host) {
  89. PCPProcess* this = xCalloc(1, sizeof(PCPProcess));
  90. Object_setClass(this, Class(PCPProcess));
  91. Process_init(&this->super, host);
  92. return (Process*)this;
  93. }
  94. void Process_delete(Object* cast) {
  95. PCPProcess* this = (PCPProcess*) cast;
  96. Process_done((Process*)cast);
  97. free(this->cgroup_short);
  98. free(this->cgroup);
  99. free(this->secattr);
  100. free(this);
  101. }
  102. static void PCPProcess_printDelay(float delay_percent, char* buffer, size_t n) {
  103. if (isNonnegative(delay_percent)) {
  104. xSnprintf(buffer, n, "%4.1f ", delay_percent);
  105. } else {
  106. xSnprintf(buffer, n, " N/A ");
  107. }
  108. }
  109. static double PCPProcess_totalIORate(const PCPProcess* pp) {
  110. double totalRate = NAN;
  111. if (isNonnegative(pp->io_rate_read_bps)) {
  112. totalRate = pp->io_rate_read_bps;
  113. if (isNonnegative(pp->io_rate_write_bps)) {
  114. totalRate += pp->io_rate_write_bps;
  115. }
  116. } else if (isNonnegative(pp->io_rate_write_bps)) {
  117. totalRate = pp->io_rate_write_bps;
  118. }
  119. return totalRate;
  120. }
  121. static void PCPProcess_rowWriteField(const Row* super, RichString* str, ProcessField field) {
  122. const PCPProcess* pp = (const PCPProcess*) super;
  123. bool coloring = super->host->settings->highlightMegabytes;
  124. char buffer[256]; buffer[255] = '\0';
  125. int attr = CRT_colors[DEFAULT_COLOR];
  126. size_t n = sizeof(buffer) - 1;
  127. switch ((int)field) {
  128. case CMINFLT: Row_printCount(str, pp->cminflt, coloring); return;
  129. case CMAJFLT: Row_printCount(str, pp->cmajflt, coloring); return;
  130. case M_DRS: Row_printBytes(str, pp->m_drs, coloring); return;
  131. case M_DT: Row_printBytes(str, pp->m_dt, coloring); return;
  132. case M_LRS: Row_printBytes(str, pp->m_lrs, coloring); return;
  133. case M_TRS: Row_printBytes(str, pp->m_trs, coloring); return;
  134. case M_SHARE: Row_printBytes(str, pp->m_share, coloring); return;
  135. case M_PRIV: Row_printBytes(str, pp->m_priv, coloring); return;
  136. case M_PSS: Row_printKBytes(str, pp->m_pss, coloring); return;
  137. case M_SWAP: Row_printKBytes(str, pp->m_swap, coloring); return;
  138. case M_PSSWP: Row_printKBytes(str, pp->m_psswp, coloring); return;
  139. case UTIME: Row_printTime(str, pp->utime, coloring); return;
  140. case STIME: Row_printTime(str, pp->stime, coloring); return;
  141. case CUTIME: Row_printTime(str, pp->cutime, coloring); return;
  142. case CSTIME: Row_printTime(str, pp->cstime, coloring); return;
  143. case RCHAR: Row_printBytes(str, pp->io_rchar, coloring); return;
  144. case WCHAR: Row_printBytes(str, pp->io_wchar, coloring); return;
  145. case SYSCR: Row_printCount(str, pp->io_syscr, coloring); return;
  146. case SYSCW: Row_printCount(str, pp->io_syscw, coloring); return;
  147. case RBYTES: Row_printBytes(str, pp->io_read_bytes, coloring); return;
  148. case WBYTES: Row_printBytes(str, pp->io_write_bytes, coloring); return;
  149. case CNCLWB: Row_printBytes(str, pp->io_cancelled_write_bytes, coloring); return;
  150. case IO_READ_RATE: Row_printRate(str, pp->io_rate_read_bps, coloring); return;
  151. case IO_WRITE_RATE: Row_printRate(str, pp->io_rate_write_bps, coloring); return;
  152. case IO_RATE: Row_printRate(str, PCPProcess_totalIORate(pp), coloring); return;
  153. case CGROUP: xSnprintf(buffer, n, "%-35.35s ", pp->cgroup ? pp->cgroup : "N/A"); break;
  154. case CCGROUP: xSnprintf(buffer, n, "%-35.35s ", pp->cgroup_short ? pp->cgroup_short : (pp->cgroup ? pp->cgroup : "N/A")); break;
  155. case CONTAINER: xSnprintf(buffer, n, "%-35.35s ", pp->container_short ? pp->container_short : "N/A"); break;
  156. case OOM: xSnprintf(buffer, n, "%4u ", pp->oom); break;
  157. case PERCENT_CPU_DELAY:
  158. PCPProcess_printDelay(pp->cpu_delay_percent, buffer, n);
  159. break;
  160. case PERCENT_IO_DELAY:
  161. PCPProcess_printDelay(pp->blkio_delay_percent, buffer, n);
  162. break;
  163. case PERCENT_SWAP_DELAY:
  164. PCPProcess_printDelay(pp->swapin_delay_percent, buffer, n);
  165. break;
  166. case CTXT:
  167. if (pp->ctxt_diff > 1000) {
  168. attr |= A_BOLD;
  169. }
  170. xSnprintf(buffer, n, "%5lu ", pp->ctxt_diff);
  171. break;
  172. case SECATTR: snprintf(buffer, n, "%-30s ", pp->secattr ? pp->secattr : "?"); break;
  173. case AUTOGROUP_ID:
  174. if (pp->autogroup_id != -1) {
  175. xSnprintf(buffer, n, "%4ld ", pp->autogroup_id);
  176. } else {
  177. attr = CRT_colors[PROCESS_SHADOW];
  178. xSnprintf(buffer, n, " N/A ");
  179. }
  180. break;
  181. case AUTOGROUP_NICE:
  182. if (pp->autogroup_id != -1) {
  183. xSnprintf(buffer, n, "%3d ", pp->autogroup_nice);
  184. attr = pp->autogroup_nice < 0 ? CRT_colors[PROCESS_HIGH_PRIORITY]
  185. : pp->autogroup_nice > 0 ? CRT_colors[PROCESS_LOW_PRIORITY]
  186. : CRT_colors[PROCESS_SHADOW];
  187. } else {
  188. attr = CRT_colors[PROCESS_SHADOW];
  189. xSnprintf(buffer, n, "N/A ");
  190. }
  191. break;
  192. default:
  193. Process_writeField(&pp->super, str, field);
  194. return;
  195. }
  196. RichString_appendWide(str, attr, buffer);
  197. }
  198. static int PCPProcess_compareByKey(const Process* v1, const Process* v2, ProcessField key) {
  199. const PCPProcess* p1 = (const PCPProcess*)v1;
  200. const PCPProcess* p2 = (const PCPProcess*)v2;
  201. switch (key) {
  202. case M_DRS:
  203. return SPACESHIP_NUMBER(p1->m_drs, p2->m_drs);
  204. case M_DT:
  205. return SPACESHIP_NUMBER(p1->m_dt, p2->m_dt);
  206. case M_LRS:
  207. return SPACESHIP_NUMBER(p1->m_lrs, p2->m_lrs);
  208. case M_TRS:
  209. return SPACESHIP_NUMBER(p1->m_trs, p2->m_trs);
  210. case M_SHARE:
  211. return SPACESHIP_NUMBER(p1->m_share, p2->m_share);
  212. case M_PRIV:
  213. return SPACESHIP_NUMBER(p1->m_priv, p2->m_priv);
  214. case M_PSS:
  215. return SPACESHIP_NUMBER(p1->m_pss, p2->m_pss);
  216. case M_SWAP:
  217. return SPACESHIP_NUMBER(p1->m_swap, p2->m_swap);
  218. case M_PSSWP:
  219. return SPACESHIP_NUMBER(p1->m_psswp, p2->m_psswp);
  220. case UTIME:
  221. return SPACESHIP_NUMBER(p1->utime, p2->utime);
  222. case CUTIME:
  223. return SPACESHIP_NUMBER(p1->cutime, p2->cutime);
  224. case STIME:
  225. return SPACESHIP_NUMBER(p1->stime, p2->stime);
  226. case CSTIME:
  227. return SPACESHIP_NUMBER(p1->cstime, p2->cstime);
  228. case RCHAR:
  229. return SPACESHIP_NUMBER(p1->io_rchar, p2->io_rchar);
  230. case WCHAR:
  231. return SPACESHIP_NUMBER(p1->io_wchar, p2->io_wchar);
  232. case SYSCR:
  233. return SPACESHIP_NUMBER(p1->io_syscr, p2->io_syscr);
  234. case SYSCW:
  235. return SPACESHIP_NUMBER(p1->io_syscw, p2->io_syscw);
  236. case RBYTES:
  237. return SPACESHIP_NUMBER(p1->io_read_bytes, p2->io_read_bytes);
  238. case WBYTES:
  239. return SPACESHIP_NUMBER(p1->io_write_bytes, p2->io_write_bytes);
  240. case CNCLWB:
  241. return SPACESHIP_NUMBER(p1->io_cancelled_write_bytes, p2->io_cancelled_write_bytes);
  242. case IO_READ_RATE:
  243. return compareRealNumbers(p1->io_rate_read_bps, p2->io_rate_read_bps);
  244. case IO_WRITE_RATE:
  245. return compareRealNumbers(p1->io_rate_write_bps, p2->io_rate_write_bps);
  246. case IO_RATE:
  247. return compareRealNumbers(PCPProcess_totalIORate(p1), PCPProcess_totalIORate(p2));
  248. case CGROUP:
  249. return SPACESHIP_NULLSTR(p1->cgroup, p2->cgroup);
  250. case CCGROUP:
  251. return SPACESHIP_NULLSTR(p1->cgroup_short, p2->cgroup_short);
  252. case CONTAINER:
  253. return SPACESHIP_NULLSTR(p1->container_short, p2->container_short);
  254. case OOM:
  255. return SPACESHIP_NUMBER(p1->oom, p2->oom);
  256. case PERCENT_CPU_DELAY:
  257. return compareRealNumbers(p1->cpu_delay_percent, p2->cpu_delay_percent);
  258. case PERCENT_IO_DELAY:
  259. return compareRealNumbers(p1->blkio_delay_percent, p2->blkio_delay_percent);
  260. case PERCENT_SWAP_DELAY:
  261. return compareRealNumbers(p1->swapin_delay_percent, p2->swapin_delay_percent);
  262. case CTXT:
  263. return SPACESHIP_NUMBER(p1->ctxt_diff, p2->ctxt_diff);
  264. case SECATTR:
  265. return SPACESHIP_NULLSTR(p1->secattr, p2->secattr);
  266. case AUTOGROUP_ID:
  267. return SPACESHIP_NUMBER(p1->autogroup_id, p2->autogroup_id);
  268. case AUTOGROUP_NICE:
  269. return SPACESHIP_NUMBER(p1->autogroup_nice, p2->autogroup_nice);
  270. default:
  271. if (key < LAST_PROCESSFIELD)
  272. return Process_compareByKey_Base(v1, v2, key);
  273. return PCPDynamicColumn_compareByKey(p1, p2, key);
  274. }
  275. }
  276. const ProcessClass PCPProcess_class = {
  277. .super = {
  278. .super = {
  279. .extends = Class(Process),
  280. .display = Row_display,
  281. .delete = Process_delete,
  282. .compare = Process_compare
  283. },
  284. .isHighlighted = Process_rowIsHighlighted,
  285. .isVisible = Process_rowIsVisible,
  286. .matchesFilter = Process_rowMatchesFilter,
  287. .compareByParent = Process_compareByParent,
  288. .sortKeyString = Process_rowGetSortKey,
  289. .writeField = PCPProcess_rowWriteField,
  290. },
  291. .compareByKey = PCPProcess_compareByKey,
  292. };