From e4e3f6c390452b4996ece4c92284410e58634052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Fri, 19 Mar 2021 17:34:12 +0100 Subject: 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 --- ProcessList.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ProcessList.h') 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 -- cgit v1.2.3