summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2021-08-14Build pcp-htop.5 only when --enable-pcpDaniel Lange
2021-08-13Introduce versioned config files and config_reader_min_versionDaniel Lange
2021-08-13netbsd: Add NetworkIOMeter supportnia
2021-08-13Merge pull request #705 from natoscott/pcp-htop-manualNathan Scott
docs: updates and new manual page for pcp-htop
2021-08-13Apply suggestions from code reviewNathan Scott
Co-authored-by: BenBE <BenBE@geshi.org>
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-10Linux: do not include zram devices in DiskIOChristian Göttsche
The meter is intended to show *real* IO, which is significantly slower than zram.
2021-08-10Add assert to improve backtraces on NULL function pointerChristian Göttsche
2021-08-10CPUMeter: show if a CPU is offline in text modeChristian Göttsche
Related to #729 as the text mode displays all zero values for offline CPUs.
2021-08-10Correct grammatical error in crash informationChristian Göttsche
Spotted by @natoscott
2021-08-10ScreenManager: drop unused memberChristian Göttsche
2021-08-10Solaris: the average CPU utilization value must never be marked 'offline'Christian Göttsche
Similar to #729 only for Solaris
2021-08-10The average CPU utilization value must never be marked 'offline'Nathan Scott
Fixes https://github.com/htop-dev/htop/issues/729
2021-08-09netbsd: handle repeated ENOMEM from HW_IOSTATS safelynia
2021-08-09Merge branch 'pcp-dynamic-cpu'Nathan Scott
2021-08-09netbsd: add more robust error handling for sysctl HW_IOSTATSnia
2021-08-09netbsd: Add support for DiskIOMeternia
2021-08-09Add Shift-F7, Shift-F8 keybindings for autogroupsDaniel Lange
2021-08-09Add columns for process autogroup identifier and nice valueNathan Scott
Adds AGRP (autogroup) and ANI (autogroup nice) columns that report the information from /proc/PID/autogroup, as well as handlers for '{' and '}' to change the autogroup nice value. This is guarded by /proc/sys/kernel/sched_autogroup_enabled such that sampling and/or changing values wont be attempted unless the kernel feature is enabled. Fixes: #720
2021-08-09PCP: implement a missing piece for offline and hotplug CPUsNathan Scott
Related: #656
2021-08-08configure: check for NaN compiler supportChristian Göttsche
Compilers might due to optimizations, like -ffast-math (included in -Ofast) expect floating point variables to be never NaN and replace each call to isnan() with false. Htop uses the value NaN for signaling no data available for various information. Warn at configure time if the compiler will ignore NaN values. Note: this can not be implemented as a compile time static assert, as some compilers handle compile NaNs differently than runtime NaNs.
2021-08-08Fix misc typosChristian Göttsche
[ci skip]
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-08-03docs: updates and new manual page for pcp-htopNathan Scott
Add some words about pcp-htop to the main man page, and add a new man page describing the pcp-htop configuration files that allow new meters and columns to be defined at runtime.
2021-08-02Read settings after applying defaultsBart Bakker
Default settings are used as a base and only settings specified in `htoprc` are applied on top of it. This patch removes the special case for applying some defaults when the config does not contain a `meters` key. All defauls are set before any attempt to read settings, so only keys actually present in the config file are overridden.
2021-08-02Merge branch 'cpu_count' of cgzones/htopDaniel Lange
2021-08-02Properly handle multiple batteries on darwinBenny Baumann
This makes the behaviour consistent with other platforms where AC is marked as present if at least one power source is marked as AC_PRESENT. Fixes: #711
2021-08-02Makefile.am fix that actually does a proper substitutionBenny Baumann
2021-08-02Fix portability issue in Makefile.amBenny Baumann
Fixes #662
2021-07-29PCP: fix per-process user and system time conversionsNathan Scott
2021-07-29PCP: use the correct metric for shared memory calculationsNathan Scott
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-18Merge branch 'fix-dragon' of smalinux/htopDaniel Lange
2021-07-18DragonFlyBSD: fixup: ProcessList_new declaration & definition mismatchSohaib Mohamed
2021-07-18PCP: fixup: missing setter for isUserlandThreadSohaib Mohamed
fixes the color of PROC_COMM for PCP...
2021-07-18Merge branch 'show-thread-names-fix' of BenBE/htopDaniel Lange
2021-07-18PCP: fixup: Missing headers for DynamicMeterSohaib Mohamed
2021-07-18OpenBSD: support offline CPUs and hot-swappingChristian Göttsche
2021-07-18OpenBSD: fix compile errorsChristian Göttsche
openbsd/OpenBSDProcessList.c:176:56: error: no member named 'ki_pid' in 'struct kinfo_proc'; did you mean 'p_pid'? const int mib[] = { CTL_KERN, KERN_PROC_CWD, kproc->ki_pid }; ^~~~~~ p_pid /usr/include/sys/sysctl.h:375:10: note: 'p_pid' declared here int32_t p_pid; /* PID_T: Process identifier. */ ^ openbsd/OpenBSDProcessList.c:458:33: error: comparison of integers of different signs: 'int' and 'unsigned int' [-Werror,-Wsign-compare] if (opl->cpus[i].cpuIndex == id) ~~~~~~~~~~~~~~~~~~~~~ ^ ~~
2021-07-18Solaris: support offline CPUs and hot-swappingChristian Göttsche
Example hot-swapping: psradm -F -f 2
2021-07-18DragonFlyBSD: calculate whether to show entry lastChristian Göttsche
Wait until it has been decided what kind of task the entry actually is.