summaryrefslogtreecommitdiffstats
path: root/Action.c
Commit message (Collapse)AuthorAgeFilesLines
* Update license headers to explicitly say GPLv2+Daniel Lange2021-09-221-2/+2
|
* Simplify adding pages in one placeBenny Baumann2021-08-221-6/+2
|
* Abstract resize handling by adding a new Htop reactionChristian Göttsche2021-08-221-4/+1
|
* Spell out virtualizedDaniel Lange2021-08-181-2/+2
|
* Apply suggestions from code reviewNathan Scott2021-08-171-1/+1
| | | Co-authored-by: BenBE <BenBE@geshi.org>
* Ensure DynamicColumn hash lookups never see NULL pointersNathan Scott2021-08-171-2/+3
| | | | | | This cannot happen in these code locations, but for the purposes of static checkers like Coverity scan (and for future proofing), add two more guards on NULL hash table entry pointers.
* Simplify Action_pickFromVector() width parameter usageChristian Göttsche2021-08-161-5/+4
| | | | Pass one less instead of subtracting one inside the function.
* PCP: support for 'dynamic columns' added at runtimeSohaib Mohamed2021-08-131-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Enable affinity support for non-LinuxChristian Göttsche2021-07-181-4/+7
| | | | | sched_getaffinity() and sched_setaffinity() are also available on BSDs. Remove the Linux restraint.
* Rework CPU countingChristian Göttsche2021-07-181-1/+1
| | | | | | | | | | | Currently htop does not support offline CPUs and hot-swapping, e.g. via echo 0 > /sys/devices/system/cpu/cpu2/online Split the current single cpuCount variable into activeCPUs and existingCPUs. Supersedes: #650 Related: #580
* Whitespace around operatorsBenny Baumann2021-07-151-1/+1
|
* Split statements that should go onto multiple linesBenny Baumann2021-07-151-2/+4
|
* Document '?' key to reach the help screenBenny Baumann2021-04-211-1/+1
|
* Add read-only optionChristian Göttsche2021-04-141-38/+60
| | | | | Add command line option to disable all system and process changing features.
* Add MEMORY_SHARED to help screenDavid Zarzycki2021-03-241-1/+2
|
* Action: merge conditionsChristian Göttsche2021-03-171-8/+6
|
* Improve process followingChristian Göttsche2021-03-141-2/+2
| | | | | | | | | - stay in follow mode on sort inversion (I) - stay in follow mode after viewing help screen (h) - select parent process (where available) when having followed a thread and hiding these (H) Closes: #560
* Follow followed process when switching thread visibilitiesChristian Göttsche2021-03-031-2/+2
| | | | | | | Do not stop following a process when switching the visibility of userland or kernel threads. Related: #557
* Shorten keyboard help to fit default screen widthDaniel Lange2021-02-161-1/+1
|
* Option and key ("*") to collapse / expand all branches under PID 1Daniel Lange2021-02-131-2/+12
| | | | | | | (and PID 2 if kernel threads are shown) Based on hishamhm/htop#510 by Krishna Chaitanya, B Closes #68
* Remove force sort order to ASC when returning to tree modeDaniel Lange2021-02-071-3/+0
| | | | Bug found by BenBE via IRC
* Use MainPanel type in State structChristian Göttsche2021-02-051-37/+35
| | | | | | | | The State struct holds a pointer to the main process panel. Use the distinct MainPanel type, to improve maintainability regrading its usage. This avoids usages of down-casts from Panel to MainPanel, only up-casts from MainPanel to Panel are now required.
* Drop invalid todoChristian Göttsche2021-01-271-1/+0
| | | | The surrounding code has nothing to do with colors
* Linux: Add SwapCached to the swap meterDavid Zarzycki2021-01-111-0/+6
| | | | | | | According to the Linux kernel documentation, "SwapCached" tracks "memory that once was swapped out, is swapped back in but still also is in the swapfile (if memory is needed it doesn't need to be swapped out AGAIN because it is already in the swapfile. This saves I/O)."
* Mark several non-modified pointer variables constChristian Göttsche2021-01-111-16/+13
|
* Hashtable: use more distinct typename for key typeChristian Göttsche2021-01-061-1/+1
|
* Panel_new: reorder argumentsChristian Göttsche2021-01-041-2/+2
| | | | Reorder owner and type so they match the order of Panel_init
* Add option to hide the Function BarChristian Göttsche2021-01-041-1/+1
| | | | | | | | | | Support three settings: - Always show Function Bar - Always hide the Function Bar, except in Infoscreens (Env/Locks...) and when editing the search and filter mode - Hide the Function Bar on ESC until the next user input Closes: #439
* Action: drop resize callbackChristian Göttsche2021-01-041-7/+0
| | | | The supervising ScreenManager will resize all Panels
* Action: remove trivial wrapper functionChristian Göttsche2021-01-011-7/+3
|
* Added keybind 'N' for sorting by PIDJake Mannens2020-12-231-1/+6
|
* Position help labels one step to the rightJake Mannens2020-12-231-6/+6
|
* Remove 'n' and 'N' search inc/dec keybindsJake Mannens2020-12-241-12/+0
|
* Merge branch 'resize_bar' of https://github.com/cgzones/htop into ↵Nathan Scott2020-12-221-2/+2
|\ | | | | | | cgzones-resize_bar
| * Rework drawing of FunctionBarChristian Göttsche2020-12-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | Draw the FunctionBar within Panel_draw instead of manually throughout the code. Add an optional PanelClass function drawFunctionBar, to allow specific panels to override the default FunctionBar_draw call. Rework the code on color change, to really change all colors (selection markers and panel headers). Closes: #402
* | De-lazy @cgzones :)Daniel Lange2020-12-211-2/+2
| |
* | Action: sort key binding assignmentsChristian Göttsche2020-12-211-47/+46
|/ | | | Avoid accidental duplicate usage.
* Separate tree and list sort ordersHisham Muhammad2020-12-191-7/+3
| | | | | | | | | | | | Implements the suggestion from https://github.com/htop-dev/htop/issues/399#issuecomment-747861013 Thanks to the refactors from 0bd5c8fb5da and 6393baa74e5, this was really easy and clean to do. It maintains the "Tree view always by PID" option in the Settings, which results in some specific behaviors such as "clicking on the column header to exit tree view" and "picking a new sort order to exit tree view", for the sake of the muscle memory of long time htop users. :)
* Add "Tree view is always sorted by PID" option to mimic htop 2 behaviorHisham Muhammad2020-12-191-0/+3
|
* Update key mapping documentation for sortingBenny Baumann2020-12-181-1/+1
|
* Sort in paused mode after inverting sort orderChristian Göttsche2020-12-091-0/+2
|
* Implement sorting in tree modeMaxim Zhiburt2020-12-021-2/+1
|
* Hide process selection on ESCChristian Göttsche2020-11-281-1/+1
| | | | | | Do not highlight the current process line after pressing ESC in the main screen. Restore after pressing any key.
* Drop unneeded parameters to the ScreenManager constructorNathan Scott2020-11-261-2/+2
| | | | | | | | | | All calls to ScreenManager_new always pass the same first five values, the orientation is always HORIZONTAL and the y1 parameter is always the height of the passed-in header struct pointer. I think its safe to assert at this point that no VERTICAL orientation will arrive (if it does, its no harm in re-adding this then) - so we can remove unused conditionals (and TODOs) based on orientation too.
* Improving Command display/sortNarendran Gopalakrishnan2020-11-241-0/+7
|
* IWYU update (FreeBSD)Christian Goettsche2020-11-191-2/+5
|
* IWYU update (Linux)Christian Göttsche2020-11-191-1/+2
|
* Hashtable updateChristian Göttsche2020-11-171-1/+1
| | | | | | - use consistent type for key by introducing a new typedef - use unsigned types for sizes - name parameters in foreach function typedef
* Drop hideThreads SettingChristian Göttsche2020-11-151-1/+0
| | | | | It is only used to read process directories on RedHat beginning with a dot. Unconditionally accept directories with a starting dot.
* Resolve merge conflicts, merge #298 "Macro cleanup" from @BenBEDaniel Lange2020-11-151-27/+66
|\

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