diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-03-19 17:34:12 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2021-03-20 18:30:08 +0100 |
commit | e4e3f6c390452b4996ece4c92284410e58634052 (patch) | |
tree | 4eecba9bef2671700dd171d787b33f451fa938d6 /ProcessList.h | |
parent | 58ad020aca933de5f1e975ccba041ff720261926 (diff) |
OpenBSD: update
* Set process data for:
- minflt
- majflt
- processor
- nlwp
* Drop unimplemented nlwp column
* Scan userland threads
* Mark a 'Thread is currently on a CPU.' with 'R', and processes
'Currently runnable' with 'P', do confine with man:ps(1) and Linux.
See https://man.openbsd.org/ps.1
* Show CPU frequency
Diffstat (limited to 'ProcessList.h')
-rw-r--r-- | ProcessList.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ProcessList.h b/ProcessList.h index d4fd1f60..853ad35e 100644 --- a/ProcessList.h +++ b/ProcessList.h @@ -115,4 +115,8 @@ Process* ProcessList_getProcess(ProcessList* this, pid_t pid, bool* preExisting, void ProcessList_scan(ProcessList* this, bool pauseProcessUpdate); +static inline Process* ProcessList_findProcess(ProcessList* this, pid_t pid) { + return (Process*) Hashtable_get(this->processTable, pid); +} + #endif |