summaryrefslogtreecommitdiffstats
path: root/solaris/SolarisProcessList.h
Commit message (Collapse)AuthorAgeFilesLines
* Update license headers to explicitly say GPLv2+Daniel Lange2021-09-221-1/+1
|
* PCP: support for 'dynamic columns' added at runtimeSohaib Mohamed2021-08-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Solaris: support offline CPUs and hot-swappingChristian Göttsche2021-07-181-0/+1
| | | | | Example hot-swapping: psradm -F -f 2
* Add ProcessList_isCPUonlineChristian Göttsche2021-07-181-0/+2
|
* Add a new DynamicMeter class for runtime Meter extensionNathan Scott2021-07-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Reduce visibility of GZONE and UZONEBenny Baumann2021-07-041-4/+0
| | | | Fixes #624
* Remove unused define on SolarisBenny Baumann2021-07-041-2/+0
|
* Solaris: reduce function scopesChristian Göttsche2021-05-201-10/+0
|
* Solaris: fix includesChristian Göttsche2021-05-201-0/+11
|
* platform-dependent files included relative to main source directorymayurdahibhate2021-05-101-2/+3
|
* add support to display CPU frequencies on Solarish platformsDominik Hassler2020-12-251-0/+1
|
* Spacing around operatorsBenny Baumann2020-11-021-1/+1
|
* Unify function argument namesChristian Göttsche2020-10-281-1/+1
| | | | | Name first argument of ProcessList_goThroughEntries consistently super Name first argument of ProcessList_new consistently userTable
* Drop tabs in source indentionsChristian Göttsche2020-10-201-2/+2
|
* Continue to update generic data in paused modeChristian Göttsche2020-10-191-1/+1
| | | | | | | | | Generic data, as CPU and memory usage, are used by Meters. In paused mode they would stop receiving updates and especially Graph Meters would stop showing continuous data. Improves: #214 Closes: #253
* Update License consistently to GPLv2 as per COPYING fileDaniel Lange2020-10-051-1/+1
|
* Switch variable/field naming from WhiteList to MatchListNathan Scott2020-09-091-1/+1
|
* Further, minor cleanups to headers post-MakeHeadersNathan Scott2020-09-081-2/+0
| | | | | Remove leftover empty ifdef/endif pairs, whitespace. The generated htop.h file was also unused - removed.
* Merge branch 'noheadergen' of https://github.com/zevweiss/htop into ↵Nathan Scott2020-09-081-2/+0
|\ | | | | | | zevweiss-noheadergen
| * Axe automated header generation.Zev Weiss2020-09-031-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Reasoning: - implementation was unsound -- broke down when I added a fairly basic macro definition expanding to a struct initializer in a *.c file. - made it way too easy (e.g. via otherwise totally innocuous git commands) to end up with timestamps such that it always ran MakeHeader.py but never used its output, leading to overbuild noise when running what should be a null 'make'. - but mostly: it's just an awkward way of dealing with C code.
* | fix for double symbol link error on solarisDominik Hassler2020-09-051-1/+1
|/
* Merge branch 'hishamhm-pull-920'3.0.0rc1Nathan Scott2020-08-201-0/+3
|\
| * ZFS arcstats for SolarisRoss Williams2019-07-071-0/+3
| |
* | Merge branch 'hishamhm-pull-960'Nathan Scott2020-08-201-1/+1
|\ \
| * | Clean up existing whitespaceDaniel Flanagan2019-10-311-1/+1
| |/
* / does not work within NGZsenjan2019-05-261-0/+2
|/
* Solaris: fix a memory leak caused by calling ProcessList_getProcess twice ↵Guy M. Broome2018-04-051-1/+1
| | | | for each LWP
* Solaris: showing a dash for the top-level process is no longer necessaryGuy M. Broome2018-04-051-0/+6
|
* Solaris: condense separate process vs lwp handling down to a single workflowGuy M. Broome2018-04-051-2/+0
|
* Solaris: get completely out of the file handling business using libprocGuy M. Broome2018-04-051-2/+3
|
* Solaris: Implement LWP enumeration (#768)gmbroome2018-03-271-0/+2
| | | | | | | | | | | | | | | Squashed the following commits: * Solaris: Get LWP enumeration working * Solaris: Make showing and hiding of kernel threads behave * Solaris: remove usage of lwpstatus that is no longer needed * Solaris: no discrete access to parent proc structure needed * Solaris: Restore runtime MaxPid detection after LWP changes * Solaris: Workaround virtual PID signal issue by shadowing kill() with a macro * Solaris: Fix unintention double-shifting of virtual PID for LWP enumeration * Solaris: Add LWPID to default display since LWP enumeration is also default * Solaris: use PAGE_SIZE_KB from Process.h instead of custom definition * Solaris: stop LWP enumeration at 1023 LWPs per proc since that is all we can handle in the virtual PID
* Solaris: enough changes made to justify a copyright bump to 2018Guy M. Broome2018-03-161-1/+1
|
* Solaris: fix malloc() / free() issues with zone name handlingGuy M. Broome2018-03-161-1/+5
|
* Import Solaris support (#741)gmbroome2018-03-021-0/+53
This commit adds support for Solaris, squashed from PR #741: Summary of additions: * Initial setup of Solaris platform directory * Add Solaris platform into autoconf template * Uptime and load averages * Add dependency on libkstat * Basic process listing * Zone name display * CPU detection * Per-process memory and CPU usage parsed correctly * Uses sysconf to discover number of CPUs, instead of more complex libkstat code * Simple memory display working * Reduce repetitive calls to the PAGE_SIZE macro when reading memory info * Add Project, Contract, Task, and Pool into process properties * Use system major()/minor() implementations and remove extraneous definition of mkdev() * Get the STARTTIME column working properly, using the Linux implementation as a guide

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