summaryrefslogtreecommitdiffstats
path: root/solaris/SolarisProcess.h
Commit message (Collapse)AuthorAgeFilesLines
* Solaris: make Process callbacks staticChristian Göttsche2021-01-091-4/+0
| | | | Fixes prototype of SolarisProcess_compareByKey since 90ea3ac3
* Merge Process_pidColumns into Process_fields and rework auto-fit for ↵Christian Göttsche2020-12-191-3/+1
| | | | PID-like columns
* Rework enum ProcessFieldChristian Göttsche2020-12-191-13/+1
| | | | | | 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
* Invert Process_compare resolution so that superclass matches run firstHisham Muhammad2020-12-191-1/+1
| | | | | | | | | | * This removes duplicated code that adjusts the sort direction from every OS-specific folder. * Most fields in a regular htop screen are OS-independent, so trying Process_compare first and only falling back to the OS-specific compareByKey function if it's an OS-specific field makes sense. * This will allow us to override the sortKey in a global way without having to edit each OS-specific file.
* Hold only a const version of Settings in ProcessChristian Göttsche2020-10-261-1/+1
|
* Mark process parameter of Process_writeField consistently constChristian Göttsche2020-10-261-1/+1
|
* Mark remaining classes constChristian Göttsche2020-10-131-1/+1
|
* Mark process argument of Process_isThread constChristian Göttsche2020-10-091-1/+1
|
* Update License consistently to GPLv2 as per COPYING fileDaniel Lange2020-10-051-1/+1
|
* Further, minor cleanups to headers post-MakeHeadersNathan Scott2020-09-081-8/+1
| | | | | Remove leftover empty ifdef/endif pairs, whitespace. The generated htop.h file was also unused - removed.
* 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.
* Solaris: get completely out of the file handling business using libprocGuy M. Broome2018-04-051-0/+2
|
* Solaris: Implement LWP enumeration (#768)gmbroome2018-03-271-1/+6
| | | | | | | | | | | | | | | 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-3/+3
|
* Import Solaris support (#741)gmbroome2018-03-021-0/+65
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