summaryrefslogtreecommitdiffstats
path: root/netbsd/NetBSDProcessList.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename ProcessList to ProcessTable throughoutNathan Scott2023-08-311-273/+0
| | | | | | | | | | | | Following up with some discusson from a few months back, where it was proposed that ProcessTable is a better name. This data structure is definitely not a list ... if it was one-dimensional it'd be a set, but in practice it has much more in common with a two-dimensional table. The Process table is a familiar operating system concept for many people too so it resonates a little in that way as well.
* Introduce Row and Table classes for screens beyond top-processesNathan Scott2023-08-301-11/+12
| | | | | | | | | This commit refactors the Process and ProcessList structures such they each have a new parent - Row and Table, respectively. These new classes handle screen updates relating to anything that could be represented in tabular format, e.g. cgroups, filesystems, etc, without us having to reimplement the display logic repeatedly for each new entity.
* Adapt platform code for the new Machine base classNathan Scott2023-05-081-263/+17
| | | | | Move host-centric data to new derived <Platform>Machine classes, separate from process-list-centric data.
* Introduce Machine class for host-specific info (split from ProcessList)Nathan Scott2023-05-081-25/+39
| | | | | | | | | | | First stage in sanitizing the process list structure so that htop can support other types of lists too (cgroups, filesystems, ...), in the not-too-distant future. This introduces struct Machine for system-wide information while keeping process-list information in ProcessList (now much less). Next step is to propogate this separation into each platform, to match these core changes.
* Refactor and consolidate dynamic meters/columns pointersNathan Scott2023-04-061-2/+2
| | | | | | | | This removes the duplication of dynamic meter/column hashtable pointers that has come in between the Settings and ProcessList structures - only one copy of these is needed. With the future planned dynamic screens feature adding another pointer, let us first clean this up before any further duplication happens.
* Auto-size (normalized) CPU usage columnsBenny Baumann2022-03-061-0/+3
|
* Introduce screen tabsHisham Muhammad2021-12-071-1/+1
| | | | This is a forward port (by nathans) of Hisham's original code.
* Tidy up process state handlingmarcluque2021-11-021-14/+15
|
* Memory leak on NetBSD when querying full command lineBenny Baumann2021-10-031-0/+2
|
* Update license headers to explicitly say GPLv2+Daniel Lange2021-09-221-1/+1
|
* NetBSD: scale CPU frequenciesChristian Göttsche2021-09-031-12/+16
| | | | | | Use a value type of 'long int' to avoid ENOMEM failures of sysctl(3). Also check for "machdep.tsc_freq", scaled in MHz.
* NetBSD: update process fieldsChristian Göttsche2021-09-031-3/+14
| | | | Populate fields to ttyname, minflt, majflt and processor.
* Use proper metric to detect kernel threadsBenny Baumann2021-08-161-1/+1
| | | | | | Querying kernel threads with `ps -o pid,lid,flags,state,lname -sp 0` gives that kernel threads have state `K` and flags have mask `0x20000` set. This corresponds to `LW_SYSTEM` in kernel which is mapped as `L_SYSTEM`/`P_SYSTEM` for userspace.
* Build fix for NetBSDfraggerfox2021-08-161-2/+2
|
* NetBSD: Rework CPU counting.fraggerfox2021-08-051-27/+75
|
* Fix indentation stylenia2021-07-211-1/+1
|
* netbsd: convert snprintf use to xSnprintfnia2021-07-211-1/+1
|
* netbsd: re-initialize freqSize before sysctlbyname()nia2021-07-211-1/+3
|
* netbsd: Remove conditional compilation of CPU frequency variablesnia2021-07-211-8/+2
|
* netbsd: Support display of CPU frequencynia2021-07-211-0/+63
|
* Whitespace around operatorsBenny Baumann2021-07-151-2/+2
|
* netbsd: Fix display of in-use and cached memorynia2021-07-131-8/+3
|
* netbsd: Add dyanmicMeters stubs to fix the buildnia2021-07-131-2/+2
| | | | Signed-off-by: Nia Alarie <nia@NetBSD.org>
* Always update `proc->st_uid` + `proc->user`BenBE2021-06-261-2/+5
| | | Avoids issue #661.
* Adds support for counting user and kernel threads.fraggerfox2021-06-261-1/+8
|
* Adds support for PROC_EXE and CWD.fraggerfox2021-06-261-0/+43
|
* Fixes minor whitespace issues and re-arrange headers to conform to style guide.fraggerfox2021-06-261-1/+1
|
* Implements the NetBSD specific changes for makeCommandStr refactor.fraggerfox2021-06-261-10/+22
| | | | Refer to #388 PR for more details.
* Sets a non-NULL process state in case of kvm_getlwps(3) returns NULL. Thanks ↵fraggerfox2021-06-261-14/+17
| | | | @cgzone.
* Refactor saturatingSub() to be part of Macros.hfraggerfox2021-06-261-4/+0
|
* Renames variable from opl to npl for consistency.fraggerfox2021-06-261-13/+13
|
* Fix include paths and minor whitespace issuesfraggerfox2021-06-261-2/+3
|
* Remove unwanted code, updates the commentsfraggerfox2021-06-261-90/+6
|
* Update copyright noticesBenny Baumann2021-06-261-0/+2
|
* Sync changes from master and fix minor warningsfraggerfox2021-06-261-2/+2
|
* Add NetBSD platform support without procfs dependencyfraggerfox2021-06-261-0/+398
- TODO, clean up the code base and update comments in code.

© 2014-2024 Faster IT GmbH | imprint | privacy policy