Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Ensure buffer for environment is large enough on NetBSD | Benny Baumann | 2022-05-06 | 1 | -1/+8 |
| | |||||
* | Auto-size (normalized) CPU usage columns | Benny Baumann | 2022-03-06 | 2 | -0/+5 |
| | |||||
* | Use correct command field as default field | Christian Göttsche | 2021-12-17 | 1 | -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 const | Christian Göttsche | 2021-12-17 | 2 | -2/+2 |
| | |||||
* | Drop unused Platform variables | Christian Göttsche | 2021-12-17 | 2 | -4/+0 |
| | |||||
* | Introduce screen tabs | Hisham Muhammad | 2021-12-07 | 3 | -1/+15 |
| | | | | This is a forward port (by nathans) of Hisham's original code. | ||||
* | Correct the order of xCalloc parameters in a couple of places | Nathan Scott | 2021-11-05 | 1 | -1/+1 |
| | | | | No functional change. Thanks to @BenBE for pointing these out. | ||||
* | Tidy up process state handling | marcluque | 2021-11-02 | 1 | -14/+15 |
| | |||||
* | Early program termination only from main() | Volodymyr Vasiutyk | 2021-10-31 | 2 | -4/+6 |
| | |||||
* | Dynamically scale the ST_UID size to support 32-bit UIDs | Silke Hofstra | 2021-10-27 | 1 | -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 line | Benny Baumann | 2021-10-03 | 1 | -0/+2 |
| | |||||
* | Update license headers to explicitly say GPLv2+ | Daniel Lange | 2021-09-22 | 7 | -7/+7 |
| | |||||
* | NetBSD: scale CPU frequencies | Christian Göttsche | 2021-09-03 | 1 | -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 additions | Christian Göttsche | 2021-09-03 | 1 | -2/+2 |
| | |||||
* | NetBSD: update process fields | Christian Göttsche | 2021-09-03 | 1 | -3/+14 |
| | | | | Populate fields to ttyname, minflt, majflt and processor. | ||||
* | NetBSD: fix reading environment variables of processes | Christian Göttsche | 2021-09-03 | 1 | -3/+3 |
| | | | | | kvm_getenvv(3) seems not to work with kvm_openfiles(..., KVM_NO_FILES, ...) | ||||
* | NetBSD: simplify Platform_setMemoryValues | Christian Göttsche | 2021-09-03 | 1 | -6/+3 |
| | |||||
* | Add completion handling for dynamic meters and columns | Nathan Scott | 2021-09-03 | 1 | -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 meter | Christian Göttsche | 2021-08-17 | 1 | -0/+2 |
| | | | | Closes: #699 | ||||
* | Use proper metric to detect kernel threads | Benny Baumann | 2021-08-16 | 1 | -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 NetBSD | fraggerfox | 2021-08-16 | 2 | -3/+3 |
| | |||||
* | netbsd: Add NetworkIOMeter support | nia | 2021-08-13 | 1 | -3/+27 |
| | |||||
* | Merge branch 'dynamic-columns' of https://github.com/smalinux/htop into ↵ | Nathan Scott | 2021-08-13 | 1 | -3/+7 |
|\ | | | | | | | smalinux-dynamic-columns | ||||
| * | PCP: support for 'dynamic columns' added at runtime | Sohaib Mohamed | 2021-08-13 | 1 | -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 safely | nia | 2021-08-09 | 1 | -0/+5 |
| | | |||||
* | | netbsd: add more robust error handling for sysctl HW_IOSTATS | nia | 2021-08-09 | 1 | -9/+17 |
| | | |||||
* | | netbsd: Add support for DiskIOMeter | nia | 2021-08-09 | 1 | -3/+37 |
| | | |||||
* | | netbsd: Use newer proplib API. Create aliases so it works on 9.x. | nia | 2021-08-05 | 1 | -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. | nia | 2021-08-05 | 1 | -1/+1 |
| | | |||||
* | | netbsd: style: declare variables on first use rather than C89-style | nia | 2021-08-05 | 1 | -24/+18 |
| | | |||||
* | | netbsd: Add battery support | nia | 2021-08-05 | 2 | -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. | fraggerfox | 2021-08-05 | 3 | -29/+77 |
|/ | |||||
* | Fix indentation style | nia | 2021-07-21 | 1 | -1/+1 |
| | |||||
* | netbsd: convert snprintf use to xSnprintf | nia | 2021-07-21 | 1 | -1/+1 |
| | |||||
* | netbsd: re-initialize freqSize before sysctlbyname() | nia | 2021-07-21 | 1 | -1/+3 |
| | |||||
* | netbsd: Remove conditional compilation of CPU frequency variables | nia | 2021-07-21 | 1 | -8/+2 |
| | |||||
* | netbsd: Support display of CPU frequency | nia | 2021-07-21 | 3 | -0/+66 |
| | |||||
* | Whitespace around operators | Benny Baumann | 2021-07-15 | 1 | -2/+2 |
| | |||||
* | Code indentation | Benny Baumann | 2021-07-15 | 2 | -7/+7 |
| | |||||
* | Split statements that should go onto multiple lines | Benny Baumann | 2021-07-15 | 1 | -1/+3 |
| | |||||
* | netbsd: update README.md (#694) | nia | 2021-07-15 | 1 | -18/+22 |
| | | | netbsd: update README.md | ||||
* | netbsd: Fix display of in-use and cached memory | nia | 2021-07-13 | 2 | -9/+3 |
| | |||||
* | netbsd: Add dyanmicMeters stubs to fix the build | nia | 2021-07-13 | 3 | -3/+11 |
| | | | | Signed-off-by: Nia Alarie <nia@NetBSD.org> | ||||
* | Always update `proc->st_uid` + `proc->user` | BenBE | 2021-06-26 | 1 | -2/+5 |
| | | | Avoids issue #661. | ||||
* | Redo the memory values based on the other BSD implementations. | fraggerfox | 2021-06-26 | 1 | -1/+3 |
| | |||||
* | Adds support for counting user and kernel threads. | fraggerfox | 2021-06-26 | 1 | -1/+8 |
| | |||||
* | Adds support for PROC_EXE and CWD. | fraggerfox | 2021-06-26 | 2 | -0/+56 |
| | |||||
* | Adds the ELAPSED column for NetBSD. | fraggerfox | 2021-06-26 | 1 | -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. | fraggerfox | 2021-06-26 | 4 | -4/+6 |
| | |||||
* | Implements the NetBSD specific changes for makeCommandStr refactor. | fraggerfox | 2021-06-26 | 3 | -20/+28 |
| | | | | Refer to #388 PR for more details. |