summaryrefslogtreecommitdiffstats
path: root/Makefile.am
Commit message (Collapse)AuthorAgeFilesLines
* Add option to change Header layoutChristian Göttsche2021-08-221-0/+3
|
* Add combined memory and swap meterChristian Göttsche2021-08-171-0/+2
| | | | Closes: #699
* PCP: PCPMetric.[ch] MdouleSohaib2021-08-161-0/+2
| | | | | Split the PCP Metric API (functions `Metric_*`) into their own module. as @BenBE suggested.
* PCP: support for 'dynamic columns' added at runtimeSohaib Mohamed2021-08-131-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* 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
* Add a new DynamicMeter class for runtime Meter extensionNathan Scott2021-07-071-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit is based on exploratory work by Sohaib Mohamed. The end goal is two-fold - to support addition of Meters we build via configuration files for both the PCP platform and for scripts ( https://github.com/htop-dev/htop/issues/526 ) Here, we focus on generic code and the PCP support. A new class DynamicMeter is introduced - it uses the special case 'param' field handling that previously was used only by the CPUMeter, such that every runtime-configured Meter is given a unique identifier. Unlike with the CPUMeter this is used internally only. When reading/writing to htoprc instead of CPU(N) - where N is an integer param (CPU number) - we use the string name for each meter. For example, if we have a configuration for a DynamicMeter for some Redis metrics, we might read and write "Dynamic(redis)". This identifier is subsequently matched (back) up to the configuration file so we're able to re-create arbitrary user configurations. The PCP platform configuration file format is fairly simple. We expand configs from several directories, including the users homedir alongside htoprc (below htop/meters/) and also /etc/pcp/htop/meters. The format will be described via a new pcp-htop(5) man page, but its basically ini-style and each Meter has one or more metric expressions associated, as well as specifications for labels, color and so on via a dot separated notation for individual metrics within the Meter. A few initial sample configuration files are provided below ./pcp/meters that give the general idea. The PCP "derived" metric specification - see pmRegisterDerived(3) - is used as the syntax for specifying metrics in PCP DynamicMeters.
* Sync changes from master and fix minor warningsfraggerfox2021-06-261-7/+9
|
* Add NetBSD platform support without procfs dependencyfraggerfox2021-06-261-0/+24
| | | | - TODO, clean up the code base and update comments in code.
* Add time handling interfaces for the pcp platformNathan Scott2021-06-091-3/+2
| | | | Related to https://github.com/htop-dev/htop/pull/574
* Implement command line and environment handling for pcp htop.Nathan Scott2021-06-091-2/+5
|
* Add ZFS ARC statistics and meters to the PCP platformSohaib2021-06-091-2/+7
|
* Add a platform for Performance Co-Pilot (PCP) metricsNathan Scott2021-06-091-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | This introduces an initial platform for extracting metrics using the PCP performance metrics API - PMAPI(3). It can be used via the --enable-pcp=yes configure option. So far I've added support for live localhost metrics only, and only using pre-defined metrics already found in htop. If available, all sampling is performed by pmcd(1) - else, we fallback to htop doing the metric sampling itself (all below the PMAPI). When pmcd is used, it may be configured to run children with elevated privileges, so htop does not need to be setuid (authentication with pmcd is available). Additionally, the PMAPI allows us to support archives (for historical analysis and for automated regression tests in htop). We'll need platform-specific command line argument additions, which isn't yet feasible in htop (not difficult to add though). The goal of this first version is minimal impact in terms of modifying the htop codebase, to introduce key ideas in PCP (metric namespace, metadata, APIs and so on) and give us something to discuss, experiment with and build on.
* Request the realtime and monotonic clock times once per sampleNathan Scott2021-04-051-0/+14
| | | | | | | | | | | | | | | | Refactor the sample time code to make one call to gettimeofday (aka the realtime clock in clock_gettime, when available) and one to the monotonic clock. Stores each in more appropriately named ProcessList fields for ready access when needed. Every platform gets the opportunity to provide their own clock code, and the existing Mac OS X specific code is moved below darwin instead of in Compat. A couple of leftover time(2) calls are converted to use these ProcessList fields as well, instead of yet again sampling the system clock. Related to https://github.com/htop-dev/htop/pull/574
* Abstract htop main function to allow for a platform binaryNathan Scott2021-03-251-3/+11
| | | | | | | | | | | | | | One review request relating to the PCP platform is to have a clearly separate binary from the regular htop so that we have no confusion as to what is being requested to run, to aid debugging, and a bunch of other good reasons. This commit renames htop.c to CommandLine.c and provides a minimal htop main function for 'native' platforms to use. The PCP version of this will setup libpcp.so and then call the same CommandLine_run function as regular htop. Related to https://github.com/htop-dev/htop/pull/536
* Move generic (shared) code into its own sub-directoryNathan Scott2021-03-041-35/+79
| | | | | | | | 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
* Separate display from sampling in SysArch and Hostname MetersNathan Scott2021-03-041-0/+2
| | | | | | | | | Several of our newer meters have merged coding concerns in terms of extracting values and displaying those values. This commit rectifies that for the SysArch and Hostname meters, allowing use of this code with alternative front/back ends. The SysArch code is also refined to detect whether the platform has an os-release file at all and/or the sys/utsname.h header via configure.ac.
* Merge branch 'enable-better-debug-on-enable-debug' of fasterit/htopDaniel Lange2021-02-171-2/+2
|\
| * Drop -DDEBUG (was removed in d69585b82abfdaede9e8c358982a4953c432e8d2), add ↵Daniel Lange2021-02-161-2/+2
| | | | | | | | -Og for make debug target
* | Drop empty file zfs/ZfsArcStats.cChristian Göttsche2021-02-171-4/+3
|/
* Quote SYSCONFDIR definitionChristian Göttsche2021-01-311-1/+1
| | | | | | | | As SYSCONFDIR is a compile time string literal, use compile time string concatenation instead of a runtime one. Also drop related TODO, cause we indeed using the correct way of getting $sysconfdir from autoconf
* [#480] SysArchMeter to view kernel/arch infoahgamut2021-01-311-0/+2
| | | | | | | At start, SysArchMeter calls the uname function to obtain the kernel version and architecture. If available, the distro version is obtained by calling lsb_release. The obtained values are stored in static variables and used when updating the meter.
* Drop duplicate optionChristian Göttsche2021-01-281-2/+0
| | | | Option subdir-objects is now define in configure.ac
* configure: misc modernizationsChristian Göttsche2021-01-251-2/+10
| | | | | | | | | - require autoconf version 2.69 was released in 2012 and one still can configure and build on older systems (just not generate the configure script) - use modern C99 compiler check - drop obsolete checks: AC_C_CONST, AC_FUNC_CLOSEDIR_VOID, AC_FUNC_STAT - drop AC_HEADER_STDBOOL in favor of C99 compatibility
* Linux: handle hugepagesChristian Göttsche2021-01-191-0/+2
| | | | | | | Subtract hugepages from normal memory. Add a HugePageMeter. Closes: #447
* DragonFlyBSD updateChristian Göttsche2020-12-201-3/+4
| | | | | | - drop unused kinfo includes and link argument - detect kvm library necessity at configure step - fix variable typo
* Rework enum ProcessFieldChristian Göttsche2020-12-191-6/+13
| | | | | | Use only one enum instead of a global and a platform specific one. Drop Platform_numberOfFields global variable. Set known size of Process_fields array
* Update htop logo, provide .svg file as wellDaniel Lange2020-12-051-1/+3
|
* Dynamically load libsensors at runtimeChristian Göttsche2020-12-021-0/+2
|
* Drop taskstats conditionalChristian Göttsche2020-11-251-1/+1
| | | | | | | | | | taskstats is only checked on runtime if the column RCHAR, WCHAR, SYSCR, SYSCW, RBYTES, WBYTES, CNCLWB, IO_READ_RATE, IO_WRITE_RATE or IO_RATE is selected. taskstats is currently enabled by default. Drop the taskstats configuration switch, to reduce the maintenance cost.
* Drop cgroup conditionalChristian Göttsche2020-11-251-1/+1
| | | | | | | | | cgroup is only checked on runtime if the column CGROUP is selected. cgroup is currently disabled by default, but most distributions do enable it. Drop the cgroup configuration switch, to reduce the maintenance cost.
* Add support to change numeric options in settings screenChristian Göttsche2020-11-251-2/+2
| | | | Like delay or highlightDelaySecs
* Fix build for custom make targetsBenny Baumann2020-11-211-3/+3
|
* Merge individual Battery.[ch] files into Platform.[ch]Nathan Scott2020-11-181-18/+8
| | | | | Consistent with everything else involving platform-specific calls from core htop code.
* Resolve merge conflicts, merge #229 "Add SystemdMeter" from @cgzonesDaniel Lange2020-11-151-0/+2
|\
| * Add SystemdMeterChristian Göttsche2020-10-311-0/+2
| |
* | Split platform dependent parts for file locks screenBenny Baumann2020-11-141-2/+2
| |
* | Implement screen for active file locksFynn Wulf2020-11-091-0/+2
|/
* Zram Meter featureMurloc Knight2020-10-311-0/+3
|
* Add compat wrapper for fstatatChristian Göttsche2020-10-291-0/+2
|
* Make all required includes explicitBenny Baumann2020-10-181-0/+1
| | | | Information as seen by IWYU 0.12 + clang 9 on Linux
* Combine XAlloc.[ch] into XUtils.[ch]Benny Baumann2020-10-171-2/+0
|
* Rename StringUtils.[ch] to XUtils.[ch]Benny Baumann2020-10-161-4/+4
|
* Add NetworkIOMeterChristian Göttsche2020-10-161-0/+2
|
* Add SELinuxMeterChristian Göttsche2020-10-161-9/+17
|
* Automatically detect if backtrace(3) needs -lexecinfoChristian Göttsche2020-10-161-2/+1
|
* Centralise fault handlingBenny Baumann2020-10-121-14/+8
| | | | This should be done as all platforms essentially did the same anyway and there was nothing platform specific.
* Makefile sort correctionChristian Göttsche2020-10-091-1/+1
|
* Add a date and datetime meter (#159)Michael F. Schönitzer2020-10-051-19/+101
| | | | | | Add a date meter and sort header and source files in Makefile Change the lists of header and source files sorted alphabetical and one file per line. This way diffs become better readable and merges easier.
* Add --enable-debug configure option to enable assertsChristian Göttsche2020-10-031-1/+0
| | | | asserts are still disabled by default.

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