Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Relocate include of config.h from header to source modeule | Benny Baumann | 2023-12-26 | 1 | -0/+2 |
| | |||||
* | Add includes for config.h as per the discussion in PR #1337 | Daniel Lange | 2023-12-26 | 1 | -0/+2 |
| | | | | | | Many thanks to @Explorer09 Kang-Che Sung (宋岡哲). Also add a #error stanza to XUtils.h in case somebody forgets the beautiful mess GNU forces on us. | ||||
* | consider only shrinkable ZFS ARC as cache on Linux | ilyam8 | 2022-05-30 | 1 | -0/+1 |
| | |||||
* | Update license headers to explicitly say GPLv2+ | Daniel Lange | 2021-09-22 | 5 | -5/+5 |
| | |||||
* | platform-dependent files included relative to main source directory | mayurdahibhate | 2021-05-10 | 4 | -5/+6 |
| | |||||
* | cleaned up includes with iwyu | mayurdahibhate | 2021-05-10 | 4 | -1/+6 |
| | |||||
* | Use RichString_appendnAscii where possible | Christian Göttsche | 2021-04-26 | 1 | -6/+8 |
| | | | | | | | | | | `RichString_appendnAscii()` avoids a `strlen(3)` call over ` RichString_appendAscii()`. Use the former where the length is available from a previous checked `snprintf(3)` call. Keep `RichString_appendAscii()` when passing a string literal and rely on compilers to optimize the `strlen(3)` call away. | ||||
* | ZfsCompressedArcMeter: avoid division by 0 | Christian Göttsche | 2021-04-22 | 1 | -1/+5 |
| | | | | On systems not using ZFS `this->values[0]` is zero. | ||||
* | Save text buffer in Meter | Christian Göttsche | 2021-03-04 | 2 | -3/+5 |
| | |||||
* | Move generic (shared) code into its own sub-directory | Nathan Scott | 2021-03-04 | 2 | -114/+0 |
| | | | | | | | | Code that is shared across some (but not all) platforms is moved into a 'generic' home. Makefile.am cleanups to match plus some minor alphabetic reordering/formatting. As discussed in https://github.com/htop-dev/htop/pull/553 | ||||
* | Drop empty file zfs/ZfsArcStats.c | Christian Göttsche | 2021-02-17 | 1 | -10/+0 |
| | |||||
* | Make ZFS Meter "Unavailable" text match others -> FAILED_READ coloring | Daniel Lange | 2021-02-09 | 2 | -2/+2 |
| | |||||
* | Forgot to correctly color ZFS ARC ratio | Ross Williams | 2021-02-09 | 1 | -1/+1 |
| | | | | | | | | | | `ZFS_RATIO` in `CRT.c` was unused, because I forgot to colorize the ARC ratio in the Compressed ARC meter. The intent was to improve readability of the meter by highlighting the most relevant value, the ratio, in a brighter color, for most themes. This change effects that intent. | ||||
* | Split RichString_(append|appendn|write) into wide and ascii | Christian Göttsche | 2020-12-08 | 2 | -23/+23 |
| | | | | | | | | RichString_writeFrom takes a top spot during performance analysis due to the calls to mbstowcs() and iswprint(). Most of the time we know in advance that we are only going to print regular ASCII characters. | ||||
* | Use sizeof buffer instead of magic number | Christian Göttsche | 2020-12-08 | 2 | -10/+10 |
| | |||||
* | Introduce METER_BUFFER_CHECK and METER_BUFFER_APPEND_CHR to cleanup writing ↵ | Christian Göttsche | 2020-12-06 | 1 | -6/+5 |
| | | | | | | to bar buffers Closes: #294 | ||||
* | Use size_t as len type for Meter_UpdateValues | Christian Göttsche | 2020-12-06 | 2 | -3/+3 |
| | | | | Most of the time the parameter is passed to snprintf type functions | ||||
* | Reduce scope of local variables | Benny Baumann | 2020-11-22 | 2 | -2/+2 |
| | |||||
* | IWYU update (FreeBSD) | Christian Goettsche | 2020-11-19 | 2 | -24/+5 |
| | |||||
* | Spacing around operators | Benny Baumann | 2020-11-02 | 3 | -14/+14 |
| | |||||
* | Whitespace and indentation issues | Benny Baumann | 2020-11-02 | 1 | -15/+18 |
| | |||||
* | Hold only a const version of the ProcessList in Meters | Christian Göttsche | 2020-10-26 | 4 | -4/+4 |
| | |||||
* | Drop tabs in source indentions | Christian Göttsche | 2020-10-20 | 1 | -2/+1 |
| | |||||
* | Make all required includes explicit | Benny Baumann | 2020-10-18 | 2 | -22/+6 |
| | | | | Information as seen by IWYU 0.12 + clang 9 on Linux | ||||
* | Rename StringUtils.[ch] to XUtils.[ch] | Benny Baumann | 2020-10-16 | 1 | -1/+1 |
| | |||||
* | Move xAsprintf, xSnprintf and xStrdup to StringUtils.h | Benny Baumann | 2020-10-16 | 1 | -0/+1 |
| | |||||
* | Mark remaining classes const | Christian Göttsche | 2020-10-13 | 4 | -10/+6 |
| | |||||
* | Mark Object pointer to _display function const | Christian Göttsche | 2020-10-10 | 2 | -5/+5 |
| | |||||
* | Mark Object classes and Object class fields const | Christian Göttsche | 2020-10-07 | 1 | -1/+1 |
| | |||||
* | Update License consistently to GPLv2 as per COPYING file | Daniel Lange | 2020-10-05 | 8 | -8/+8 |
| | |||||
* | Refactor __attribute__ usage | Christian Göttsche | 2020-09-18 | 1 | -1/+3 |
| | | | | Use internal macros for compatibility with non GNUC compilers. | ||||
* | Further, minor cleanups to headers post-MakeHeaders | Nathan Scott | 2020-09-08 | 4 | -9/+0 |
| | | | | | Remove leftover empty ifdef/endif pairs, whitespace. The generated htop.h file was also unused - removed. | ||||
* | Remove superfluous 'extern's from function declarations. | Zev Weiss | 2020-09-03 | 1 | -1/+1 |
| | | | | | | | | Applied via: $ find * -name '*.h' -exec sed -i -r 's/^extern (.+\()/\1/;' {} + Suggested-by: Bert Wesarg <bert.wesarg@googlemail.com> | ||||
* | Normalize ZFS ARC caption | Zach Dykstra | 2020-08-28 | 1 | -2/+1 |
| | | | | | Other captions take the form of LABEL:<space>. This moves the uncompressed ZFS ARC caption into the same style. | ||||
* | Update header files to match whitespace changes in source files | Nathan Scott | 2020-08-22 | 1 | -1/+1 |
| | |||||
* | Avoid empty translation unit warning | Christian Göttsche | 2020-08-21 | 2 | -0/+3 |
| | | | | | | zfs/ZfsArcStats.c:22: error: ISO C forbids an empty translation unit [-Werror=pedantic] 22 | }*/ | | ||||
* | Remove trailing whitespaces | Christian Göttsche | 2020-08-21 | 1 | -1/+1 |
| | |||||
* | Support for ZFS Compressed ARC statistics | Ross Williams | 2019-09-03 | 5 | -0/+132 |
| | |||||
* | Refactor openzfs_sysctl_init() and ZfsArcMeter... | Ross Williams | 2019-09-03 | 4 | -6/+28 |
| | | | | | | | | | | | openzfs_sysctl_init() now returns void instead of int. The ZfsArcStats->enabled flag is set inside the init function now, instead of having to be set from its return value. Preparation for more flag setting in Compressed ARC commit. ZfsArcMeter_readStats() added and all Meter->values[] setting moved to it, eliminating duplicated code in {darwin,freebsd,linux,solaris}/Platform.c. | ||||
* | Refactor common OpenZFS sysctl access | Ross Williams | 2019-07-07 | 4 | -0/+141 |
| | | | | | Darwin and FreeBSD export zfs kstats through the same APIs, so moving functions into a common file. | ||||
* | ZFS arcstats for Linux | Ross Williams | 2019-07-07 | 1 | -21/+26 |
| | | | | | | If no pools are imported (ARC size == 0) or the ZFS module is not in the kernel (/proc/spl/kstat/zfs/arcstats does not exist), then the Meter reports "Unavailable". | ||||
* | Support ZFS ARC stats on FreeBSD | Ross Williams | 2019-07-07 | 2 | -0/+99 |
New meter displays same ARC stats as FreeBSD top(1). Can be extended to other platforms that support ZFS. Pulling kstat.zfs.misc.arcstats.c_max as the meter total, so the meter has a meaningful value to work up to. The Text meter displays, first, the maximum ARC size (Meter.total), then second, the total ARC used, using the difference between Meter.maxItems and Meter.curItems to "hide" the used value from the Bar and Graph drawing functions by using an index in Meter.values[] that is beyond curItems - 1, but less than maxItems - 1. |