summaryrefslogtreecommitdiffstats
path: root/netbsd
Commit message (Collapse)AuthorAgeFilesLines
* Ensure buffer for environment is large enough on NetBSDBenny Baumann2022-05-061-1/+8
|
* Auto-size (normalized) CPU usage columnsBenny Baumann2022-03-062-0/+5
|
* Use correct command field as default fieldChristian Göttsche2021-12-171-1/+1
| | | | | The default htop command process field has the enum identifier `COMM` but the name `Command` (`COMM` is the field name for /proc/<PID>/comm).
* Mark ScreenDefaults constChristian Göttsche2021-12-172-2/+2
|
* Drop unused Platform variablesChristian Göttsche2021-12-172-4/+0
|
* Introduce screen tabsHisham Muhammad2021-12-073-1/+15
| | | | This is a forward port (by nathans) of Hisham's original code.
* Correct the order of xCalloc parameters in a couple of placesNathan Scott2021-11-051-1/+1
| | | | No functional change. Thanks to @BenBE for pointing these out.
* Tidy up process state handlingmarcluque2021-11-021-14/+15
|
* Early program termination only from main()Volodymyr Vasiutyk2021-10-312-4/+6
|
* Dynamically scale the ST_UID size to support 32-bit UIDsSilke Hofstra2021-10-271-2/+2
| | | | | | | | | | | | | | | | | | While most Unix-like systems use 16-bit user IDs, Linux supports 32-bit UIDs since version 2.6. UIDs above 65535 are used for UID namespacing of containers, where a container has its own set of 16-bit user IDs. Processes in such containers will have (much) larger UIDs than 65535. Because the current format strings for `ST_UID` and `USER` are `%5d` and `%9d` respectively, processes with such UIDs lead to misaligned columns. Dynamically scale the `ST_UID` column and increase the size of `USER` to 10 characters (length of UINT32_MAX) to ensure that the user ID always fits. Additionally: clean up how the titlebuffer size calculation and ensure the PID column has a minimum size of 5.
* Memory leak on NetBSD when querying full command lineBenny Baumann2021-10-031-0/+2
|
* Update license headers to explicitly say GPLv2+Daniel Lange2021-09-227-7/+7
|
* 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: misc const additionsChristian Göttsche2021-09-031-2/+2
|
* NetBSD: update process fieldsChristian Göttsche2021-09-031-3/+14
| | | | Populate fields to ttyname, minflt, majflt and processor.
* NetBSD: fix reading environment variables of processesChristian Göttsche2021-09-031-3/+3
| | | | | kvm_getenvv(3) seems not to work with kvm_openfiles(..., KVM_NO_FILES, ...)
* NetBSD: simplify Platform_setMemoryValuesChristian Göttsche2021-09-031-6/+3
|
* Add completion handling for dynamic meters and columnsNathan Scott2021-09-031-0/+4
| | | | | | | Be sure to free dynamic memory allocated for meters and columns strings, no-op on platforms other than pcp. Closes #774
* Add combined memory and swap meterChristian Göttsche2021-08-171-0/+2
| | | | Closes: #699
* 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-162-3/+3
|
* netbsd: Add NetworkIOMeter supportnia2021-08-131-3/+27
|
* Merge branch 'dynamic-columns' of https://github.com/smalinux/htop into ↵Nathan Scott2021-08-131-3/+7
|\ | | | | | | smalinux-dynamic-columns
| * PCP: support for 'dynamic columns' added at runtimeSohaib Mohamed2021-08-131-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | netbsd: handle repeated ENOMEM from HW_IOSTATS safelynia2021-08-091-0/+5
| |
* | netbsd: add more robust error handling for sysctl HW_IOSTATSnia2021-08-091-9/+17
| |
* | netbsd: Add support for DiskIOMeternia2021-08-091-3/+37
| |
* | netbsd: Use newer proplib API. Create aliases so it works on 9.x.nia2021-08-051-20/+26
| | | | | | | | | | This way we avoid deprecation warnings on the development branch of NetBSD while keeping the code functioning on the stable branch.
* | netbsd: If at least one AC adapter is connected, keep its state.nia2021-08-051-1/+1
| |
* | netbsd: style: declare variables on first use rather than C89-stylenia2021-08-051-24/+18
| |
* | netbsd: Add battery supportnia2021-08-052-4/+103
| | | | | | | | | | | | 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.
* | NetBSD: Rework CPU counting.fraggerfox2021-08-053-29/+77
|/
* 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-213-0/+66
|
* Whitespace around operatorsBenny Baumann2021-07-151-2/+2
|
* Code indentationBenny Baumann2021-07-152-7/+7
|
* Split statements that should go onto multiple linesBenny Baumann2021-07-151-1/+3
|
* netbsd: update README.md (#694)nia2021-07-151-18/+22
| | | netbsd: update README.md
* netbsd: Fix display of in-use and cached memorynia2021-07-132-9/+3
|
* netbsd: Add dyanmicMeters stubs to fix the buildnia2021-07-133-3/+11
| | | | Signed-off-by: Nia Alarie <nia@NetBSD.org>
* Always update `proc->st_uid` + `proc->user`BenBE2021-06-261-2/+5
| | | Avoids issue #661.
* Redo the memory values based on the other BSD implementations.fraggerfox2021-06-261-1/+3
|
* Adds support for counting user and kernel threads.fraggerfox2021-06-261-1/+8
|
* Adds support for PROC_EXE and CWD.fraggerfox2021-06-262-0/+56
|
* Adds the ELAPSED column for NetBSD.fraggerfox2021-06-261-0/+6
| | | | Additional details regarding ELAPSED column can be found in #627.
* Fixes minor whitespace issues and re-arrange headers to conform to style guide.fraggerfox2021-06-264-4/+6
|
* Implements the NetBSD specific changes for makeCommandStr refactor.fraggerfox2021-06-263-20/+28
| | | | Refer to #388 PR for more details.

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