summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2021-11-30Release 3.1.23.1.2Nathan Scott
2021-11-30Merge branch 'release_action' of https://github.com/rofl0r/htop into ↵Nathan Scott
rofl0r-release_action
2021-11-30Minor typo fix and wordsmith-ing in the changelogNathan Scott
2021-11-28Update changelog to include recent changesBenny Baumann
2021-11-28Add a fix to use gettimeofday if monotonic is not available.Lutz Mader
2021-11-28Get file size using stat() for OpenFilesScreen if missing from lsofPeter VandeHaar
2021-11-28Strip prefix "0t" from OFFSET column of OpenFilesScreenPeter VandeHaar
2021-11-28Add OFFSET column to OpenFilesScreenPeter VandeHaar
2021-11-28Include support for legacy LXC cgroup namingBenny Baumann
2021-11-28Use helpers for parsing of cgroup labelsBenny Baumann
2021-11-28Document CCGROUP columnBenny Baumann
2021-11-28Extract string writing/buffer handling into some callbackBenny Baumann
2021-11-28Compress cgroup names based on some heuristicsBenny Baumann
2021-11-28Filter leading colons in CGROUP nameBenny Baumann
2021-11-28Ensure maximum width for CGROUP columnBenny Baumann
2021-11-23add github workflow to build release tarballrofl0r
2021-11-19Reduce allocation size of cp_time_n and cp_time_o on FreeBSD and DragonFlyBSDGuillaume Gomez
2021-11-09Linux: use proper way to detect kernel threadsRin Cat (鈴猫)
Use PF_KTHREAD flag in /proc/[pid]/stat to detect kernel threads. This fixed an issue when a process's cmdline is empty, htop think it is a kernel thread.
2021-11-05Correct the order of xCalloc parameters in a couple of placesNathan Scott
No functional change. Thanks to @BenBE for pointing these out.
2021-11-04Cleanup: Fix misc styleguide issuesSohaib Mohamed
Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com>
2021-11-03Fix process state handling compiler warning on PCP platformNathan Scott
2021-11-02Tidy up process state handlingmarcluque
2021-11-01Drop unicode whitespaceChristian Göttsche
2021-10-31Early program termination only from main()Volodymyr Vasiutyk
2021-10-30Discard stale information from DiskIO and NetworkIO metersBenny Baumann
This ensures the initial read of the data is not misinterpreted as arbitrarily large values. Also this forces the maximum update interval between two subsequent reads to within 30s. Fixes #860
2021-10-27Dynamically scale the ST_UID size to support 32-bit UIDsSilke Hofstra
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.
2021-10-26Linux: restore battery state with numbered AC'sChristian Göttsche
2021-10-25Code clean up for reading battery infoaninsen
2021-10-25Linux: ignore mapped /dev/zeroChristian Hesse
Virtualbox maps /dev/zero for memory allocation. That results in false positive, so ignore.
2021-10-24Allow -u UIDнаб
Defaults to username, of course, like all POSIX utilities do
2021-10-20Fix Security Attributes column header widthLucas Werkmeister
Limit the maximum width (instead of only the minimum width), pad the header width accordingly, and also remove extra stray spaces from the format string (the main spacing should just come from the alignment of the value). Fixes #850.
2021-10-19Merge branch 'del-exe-lib-docs' of BenBE/htop into mainDaniel Lange
2021-10-19Elaborate the highlighting of outdated/deleted executables and librariesBenny Baumann
2021-10-15FreeBSD: add comment for memory leak workaroundChristian Göttsche
Follow-up of #841 [ci skip]
2021-10-15Header: allocate memory for terminating entryChristian Göttsche
The names array is terminated by a NULL entry, thus allocate space for one more than entries. Fixes: #844 ==6708==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6060000045b8 at pc 0x000000589ee1 bp 0x7ffcd1dee220 sp 0x7ffcd1dee218 READ of size 8 at 0x6060000045b8 thread T0 #0 0x589ee0 in String_freeArray ./XUtils.c:157:23 #1 0x56c9af in Settings_delete ./Settings.c:31:7 #2 0x4ee44b in CommandLine_run ./CommandLine.c:395:4 #3 0x4d6fb2 in main ./htop.c:15:11 #4 0x7ff3b8154e49 in __libc_start_main csu/../csu/libc-start.c:314:16 #5 0x428aa9 in _start (./htop+0x428aa9) 0x6060000045b8 is located 0 bytes to the right of 56-byte region [0x606000004580,0x6060000045b8) allocated by thread T0 here: #0 0x4a53f2 in __interceptor_calloc (./htop+0x4a53f2) #1 0x5890ba in xCalloc ./XUtils.c:55:17 #2 0x50a044 in Header_writeBackToSettings ./Header.c:148:34 #3 0x4de861 in Action_runSetup ./Action.c:91:7 #4 0x4de861 in actionSetup ./Action.c:386:4 #5 0x515caf in MainPanel_eventHandler ./MainPanel.c:106:19 #6 0x56a5c1 in ScreenManager_run ./ScreenManager.c:235:19 #7 0x4ee13b in CommandLine_run ./CommandLine.c:364:4 #8 0x4d6fb2 in main ./htop.c:15:11 #9 0x7ff3b8154e49 in __libc_start_main csu/../csu/libc-start.c:314:16
2021-10-14Update version number to 3.2.0-dev to identify git repo buildsBenny Baumann
2021-10-14Release 3.1.13.1.1Benny Baumann
2021-10-14Suppress reporting memory leaks originating from libdevstatXimalas
Based on https://cgit.freebsd.org/src/tree/lib/libdevstat/devstat.c the following four functions call memory allocation functions: - devstat_getdevs() - devstat_selectdevs() - devstat_buildmatch() - get_devstat_kvm()
2021-10-13Updates to the ChangeLog for 3.1.1 releaseNathan Scott
2021-10-12Plug the memory leak for the Disk I/O meterXimalas
There are no functions in libdevstat to initialise or clean up memory. The simplest change is to mark the local variable info as static.
2021-10-12Merge branch 'revert-used-memory'Nathan Scott
2021-10-12Ensure consistent reporting of MemoryMeter used memoryNathan Scott
Resolves #821
2021-10-12Report hugepage memory as real and used memory (as before)Nathan Scott
This is real, physical memory available for applications to use. We should not try to pretend otherwise; its confusing for users and inconsistent with all other tools.
2021-10-07Handle procExeDeleted & usesDeletedLib without mergedCommandline modeBenny Baumann
2021-10-06Validate meter configuration before proceedingBenny Baumann
2021-10-06Properly release memory on partially read configurationBenny Baumann
2021-10-05Handle interrupted sampling from within libpcp PDU transfersNathan Scott
This situation can arise if pcp-htop screen is resized right at the same time sampling from pmcd(1) is happening. Have a couple more goes at it before giving up entirely; once there is no data available though we cannot proceed into accessing the sample result data structure (segv will result) so a new short-circuit guard is added there also.
2021-10-03Memory leak on OpenBSD when querying full command lineBenny Baumann
2021-10-03Memory leak on NetBSD when querying full command lineBenny Baumann
2021-10-03Memory leak on DragonFlyBSD when querying full command lineBenny Baumann