summaryrefslogtreecommitdiffstats
path: root/netbsd
AgeCommit message (Collapse)Author
2021-09-03NetBSD: scale CPU frequenciesChristian Göttsche
Use a value type of 'long int' to avoid ENOMEM failures of sysctl(3). Also check for "machdep.tsc_freq", scaled in MHz.
2021-09-03NetBSD: misc const additionsChristian Göttsche
2021-09-03NetBSD: update process fieldsChristian Göttsche
Populate fields to ttyname, minflt, majflt and processor.
2021-09-03NetBSD: fix reading environment variables of processesChristian Göttsche
kvm_getenvv(3) seems not to work with kvm_openfiles(..., KVM_NO_FILES, ...)
2021-09-03NetBSD: simplify Platform_setMemoryValuesChristian Göttsche
2021-09-03Add completion handling for dynamic meters and columnsNathan Scott
Be sure to free dynamic memory allocated for meters and columns strings, no-op on platforms other than pcp. Closes #774
2021-08-17Add combined memory and swap meterChristian Göttsche
Closes: #699
2021-08-16Use proper metric to detect kernel threadsBenny Baumann
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.
2021-08-16Build fix for NetBSDfraggerfox
2021-08-13netbsd: Add NetworkIOMeter supportnia
2021-08-13Merge branch 'dynamic-columns' of https://github.com/smalinux/htop into ↵Nathan Scott
smalinux-dynamic-columns
2021-08-13PCP: support for 'dynamic columns' added at runtimeSohaib Mohamed
Implements support for arbitrary Performance Co-Pilot metrics with per-process instance domains to form new htop columns. The column-to-metric mappings are setup using configuration files which will be documented via man pages as part of a follow-up commit. We provide an initial set of column configurations so as to provide new capabilities to pcp-htop: including configs for containers, open fd counts, scheduler run queue time, tcp/udp bytes/calls sent/recv, delay acct, virtual machine guests, detailed virtual memory, swap. Note there is a change to the configuration file path resolution algorithm introduced for 'dynamic meters'. First, look in any custom PCP_HTOP_DIR location. Then iterate, in priority order, users home directory, then local sysadmins files in /etc/pcp/htop, then readonly configuration files below /usr/share/pcp/htop. This final location becomes the preferred place for our own shipped meter and column files. The Settings file (htoprc) writing code is updated to not using the numeric identifier for dynamic columns. The same strategy used for dynamic meters is used here where we write Dynamic(name) so the name can be setup once more at start. Regular (static) columns writing to htoprc - i.e. numerically indexed - is unchanged.
2021-08-09netbsd: handle repeated ENOMEM from HW_IOSTATS safelynia
2021-08-09netbsd: add more robust error handling for sysctl HW_IOSTATSnia
2021-08-09netbsd: Add support for DiskIOMeternia
2021-08-05netbsd: Use newer proplib API. Create aliases so it works on 9.x.nia
This way we avoid deprecation warnings on the development branch of NetBSD while keeping the code functioning on the stable branch.
2021-08-05netbsd: If at least one AC adapter is connected, keep its state.nia
2021-08-05netbsd: style: declare variables on first use rather than C89-stylenia
2021-08-05netbsd: Add battery supportnia
This uses proplib and sysmon_envsys to determine the total charge percentage of any number of connected batteries as well as the AC adapter state. Should work with ACPI and non-ACPI systems.
2021-08-05NetBSD: Rework CPU counting.fraggerfox
2021-07-21Fix indentation stylenia
2021-07-21netbsd: convert snprintf use to xSnprintfnia
2021-07-21netbsd: re-initialize freqSize before sysctlbyname()nia
2021-07-21netbsd: Remove conditional compilation of CPU frequency variablesnia
2021-07-21netbsd: Support display of CPU frequencynia
2021-07-15Whitespace around operatorsBenny Baumann
2021-07-15Code indentationBenny Baumann
2021-07-15Split statements that should go onto multiple linesBenny Baumann
2021-07-15netbsd: update README.md (#694)nia
netbsd: update README.md
2021-07-13netbsd: Fix display of in-use and cached memorynia
2021-07-13netbsd: Add dyanmicMeters stubs to fix the buildnia
Signed-off-by: Nia Alarie <nia@NetBSD.org>
2021-06-26Always update `proc->st_uid` + `proc->user`BenBE
Avoids issue #661.
2021-06-26Redo the memory values based on the other BSD implementations.fraggerfox
2021-06-26Adds support for counting user and kernel threads.fraggerfox
2021-06-26Adds support for PROC_EXE and CWD.fraggerfox
2021-06-26Adds the ELAPSED column for NetBSD.fraggerfox
Additional details regarding ELAPSED column can be found in #627.
2021-06-26Fixes minor whitespace issues and re-arrange headers to conform to style guide.fraggerfox
2021-06-26Implements the NetBSD specific changes for makeCommandStr refactor.fraggerfox
Refer to #388 PR for more details.
2021-06-26Sets a non-NULL process state in case of kvm_getlwps(3) returns NULL. Thanks ↵fraggerfox
@cgzone.
2021-06-26Refactor saturatingSub() to be part of Macros.hfraggerfox
2021-06-26Renames variable from opl to npl for consistency.fraggerfox
2021-06-26Fix include paths and minor whitespace issuesfraggerfox
2021-06-26Replace strlcpy() by safer String_safeStrncpy()fraggerfox
2021-06-26Replace maximum_PID value with INT32_MAXfraggerfox
Thank you @niacat.
2021-06-26Update README for NetBSDfraggerfox
2021-06-26Remove unwanted code, updates the commentsfraggerfox
2021-06-26Update copyright noticesBenny Baumann
2021-06-26Minor code clean up and corrections.fraggerfox
2021-06-26Sync changes from master and fix minor warningsfraggerfox
2021-06-26Add NetBSD platform support without procfs dependencyfraggerfox
- TODO, clean up the code base and update comments in code.