summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Respect "Show custom thread names" setting updateChristian Göttsche2021-08-142-17/+14
| | | | | | | | | | | | | | | | | | | | | Update merged command-line when started with "Show custom thread names" disabled and enabling at runtime. Also only consider showThreadNames when working on userland threads.
* | | TasksMeter: save some float castsExplorer092021-08-141-1/+1
| | | | | | | | | | | | Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
* | | Build pcp-htop.5 only when --enable-pcpDaniel Lange2021-08-141-1/+2
| |/ |/|
* | netbsd: Add NetworkIOMeter supportnia2021-08-131-3/+27
| |
* | Merge pull request #705 from natoscott/pcp-htop-manualNathan Scott2021-08-134-3/+298
|\ \ | | | | | | docs: updates and new manual page for pcp-htop
| * | Apply suggestions from code reviewNathan Scott2021-08-132-6/+6
| | | | | | | | | Co-authored-by: BenBE <BenBE@geshi.org>
| * | docs: updates and new manual page for pcp-htopNathan Scott2021-08-034-3/+298
| | | | | | | | | | | | | | | | | | 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.
* | | Merge branch 'dynamic-columns' of https://github.com/smalinux/htop into ↵Nathan Scott2021-08-1359-174/+1063
|\ \ \ | | | | | | | | | | | | smalinux-dynamic-columns
| * | | PCP: support for 'dynamic columns' added at runtimeSohaib Mohamed2021-08-1359-174/+1063
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Linux: do not include zram devices in DiskIOChristian Göttsche2021-08-101-0/+3
| | | | | | | | | | | | | | | The meter is intended to show *real* IO, which is significantly slower than zram.
* | | Add assert to improve backtraces on NULL function pointerChristian Göttsche2021-08-101-0/+1
| | |
* | | CPUMeter: show if a CPU is offline in text modeChristian Göttsche2021-08-101-1/+7
| | | | | | | | | | | | | | | Related to #729 as the text mode displays all zero values for offline CPUs.
* | | Correct grammatical error in crash informationChristian Göttsche2021-08-101-1/+1
| | | | | | | | | | | | Spotted by @natoscott
* | | ScreenManager: drop unused memberChristian Göttsche2021-08-102-2/+0
| | |
* | | Solaris: the average CPU utilization value must never be marked 'offline'Christian Göttsche2021-08-101-1/+2
| | | | | | | | | | | | Similar to #729 only for Solaris
* | | The average CPU utilization value must never be marked 'offline'Nathan Scott2021-08-101-1/+2
| | | | | | | | | | | | Fixes https://github.com/htop-dev/htop/issues/729
* | | netbsd: handle repeated ENOMEM from HW_IOSTATS safelynia2021-08-091-0/+5
| | |
* | | Merge branch 'pcp-dynamic-cpu'Nathan Scott2021-08-091-15/+11
|\ \ \
| * | | PCP: implement a missing piece for offline and hotplug CPUsNathan Scott2021-08-091-15/+11
| | | | | | | | | | | | | | | | Related: #656
* | | | netbsd: add more robust error handling for sysctl HW_IOSTATSnia2021-08-091-9/+17
| | | |
* | | | netbsd: Add support for DiskIOMeternia2021-08-091-3/+37
| | | |
* | | | Add Shift-F7, Shift-F8 keybindings for autogroupsDaniel Lange2021-08-092-2/+4
| | | |
* | | | Add columns for process autogroup identifier and nice valueNathan Scott2021-08-0913-10/+201
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | configure: check for NaN compiler supportChristian Göttsche2021-08-081-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Fix misc typosChristian Göttsche2021-08-083-3/+3
| | | | | | | | | | | | [ci skip]
* | | 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-053-4/+104
| | | | | | | | | | | | | | | | | | 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
|/ /
* | Merge branch 'cpu_count' of cgzones/htopDaniel Lange2021-08-0240-282/+554
|\ \
| * | OpenBSD: support offline CPUs and hot-swappingChristian Göttsche2021-07-183-66/+77
| | |
| * | OpenBSD: fix compile errorsChristian Göttsche2021-07-182-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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) ~~~~~~~~~~~~~~~~~~~~~ ^ ~~
| * | Solaris: support offline CPUs and hot-swappingChristian Göttsche2021-07-183-40/+81
| | | | | | | | | | | | | | | Example hot-swapping: psradm -F -f 2
| * | DragonFlyBSD: calculate whether to show entry lastChristian Göttsche2021-07-181-2/+1
| | | | | | | | | | | | Wait until it has been decided what kind of task the entry actually is.
| * | DragonFlyBSD: drop void TODOChristian Göttsche2021-07-181-1/+0
| | |
| * | Enable affinity support for non-LinuxChristian Göttsche2021-07-186-56/+59
| | | | | | | | | | | | | | | sched_getaffinity() and sched_setaffinity() are also available on BSDs. Remove the Linux restraint.
| * | FreeBSD: mark the original kernel thread with pid 0 as suchChristian Göttsche2021-07-181-1/+1
| | |
| * | FreeBSD: calculate whether to show entry lastChristian Göttsche2021-07-181-2/+2
| | | | | | | | | | | | Wait until it has been decided what kind of task the entry actually is.
| * | FreeBSD: skip exe check for kernel threadChristian Göttsche2021-07-181-6/+5
| | | | | | | | | | | | | | | Kernel threads do not have an executable and the check can result in garbage values as unprivileged user.
| * | UptimeMeter: treat all non-positive values as errorChristian Göttsche2021-07-181-1/+1
| | | | | | | | | | | | | | | Bogus uptime measurements can result in wrap-arounds, leading to negative garbage values printed.
| * | Add ProcessList_isCPUonlineChristian Göttsche2021-07-1818-3/+95
| | |
| * | Rework CPU countingChristian Göttsche2021-07-1828-148/+276
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently htop does not support offline CPUs and hot-swapping, e.g. via echo 0 > /sys/devices/system/cpu/cpu2/online Split the current single cpuCount variable into activeCPUs and existingCPUs. Supersedes: #650 Related: #580
* | | Properly handle multiple batteries on darwinBenny Baumann2021-08-021-45/+35
| | | | | | | | | | | | | | | | | | | | | 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
* | | Makefile.am fix that actually does a proper substitutionBenny Baumann2021-08-021-1/+1
| | |
* | | Fix portability issue in Makefile.amBenny Baumann2021-08-021-1/+1
| | | | | | | | | | | | Fixes #662
* | | PCP: fix per-process user and system time conversionsNathan Scott2021-07-291-2/+2
| | |
* | | PCP: use the correct metric for shared memory calculationsNathan Scott2021-07-292-7/+5
| |/ |/|
* | Fix indentation stylenia2021-07-211-1/+1
| |
* | netbsd: convert snprintf use to xSnprintfnia2021-07-211-1/+1
| |

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