Benny Baumann
edf319e53d
Auto-size (normalized) CPU usage columns
4 years ago
Hisham Muhammad
72ba20fa5f
Introduce screen tabs
...
This is a forward port (by nathans) of Hisham's original code.
4 years ago
marcluque
d8dfbbd37c
Tidy up process state handling
4 years ago
Benny Baumann
d520199e62
Memory leak on NetBSD when querying full command line
5 years ago
Daniel Lange
94ad111391
Update license headers to explicitly say GPLv2+
5 years ago
Christian Göttsche
2844429f15
NetBSD: scale CPU frequencies
...
Use a value type of 'long int' to avoid ENOMEM failures of sysctl(3).
Also check for "machdep.tsc_freq", scaled in MHz.
5 years ago
Christian Göttsche
343c2e58be
NetBSD: update process fields
...
Populate fields to ttyname, minflt, majflt and processor.
5 years ago
Benny Baumann
b42c441ee0
Use proper metric to detect kernel threads
...
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.
5 years ago
fraggerfox
68123adb6f
Build fix for NetBSD
5 years ago
fraggerfox
2e3f34f5c1
NetBSD: Rework CPU counting.
5 years ago
nia
4f3ba680fb
Fix indentation style
5 years ago
nia
3fced48eea
netbsd: convert snprintf use to xSnprintf
5 years ago
nia
a4b650fdec
netbsd: re-initialize freqSize before sysctlbyname()
5 years ago
nia
72cea2881c
netbsd: Remove conditional compilation of CPU frequency variables
5 years ago
nia
b4884373e5
netbsd: Support display of CPU frequency
5 years ago
Benny Baumann
0d85af2872
Whitespace around operators
5 years ago
nia
4865e643ad
netbsd: Fix display of in-use and cached memory
5 years ago
nia
67ca214cbe
netbsd: Add dyanmicMeters stubs to fix the build
...
Signed-off-by: Nia Alarie <nia@NetBSD.org>
5 years ago
BenBE
3bed682b1e
Always update `proc->st_uid` + `proc->user`
...
Avoids issue #661 .
5 years ago
fraggerfox
5fe9bcb21c
Adds support for counting user and kernel threads.
5 years ago
fraggerfox
336acb0309
Adds support for PROC_EXE and CWD.
5 years ago
fraggerfox
58a895e54c
Fixes minor whitespace issues and re-arrange headers to conform to style guide.
5 years ago
fraggerfox
9de463e756
Implements the NetBSD specific changes for makeCommandStr refactor.
...
Refer to #388 PR for more details.
5 years ago
fraggerfox
fa65c30976
Sets a non-NULL process state in case of kvm_getlwps(3) returns NULL. Thanks @cgzone .
5 years ago
fraggerfox
2f5b3ef733
Refactor saturatingSub() to be part of Macros.h
5 years ago
fraggerfox
e42ae55d69
Renames variable from opl to npl for consistency.
5 years ago
fraggerfox
497f468ed0
Fix include paths and minor whitespace issues
5 years ago
fraggerfox
ddcfb179b4
Remove unwanted code, updates the comments
5 years ago
Benny Baumann
b900e70e80
Update copyright notices
5 years ago
fraggerfox
db98623684
Sync changes from master and fix minor warnings
5 years ago
fraggerfox
4b49de44a8
Add NetBSD platform support without procfs dependency
...
- TODO, clean up the code base and update comments in code.
5 years ago