Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Hashtable: use more distinct typename for key type | Christian Göttsche | 2021-01-06 | 1 | -1/+1 |
| | |||||
* | XUtils: check for multiplication overflow in allocation size | Christian Göttsche | 2021-01-02 | 1 | -2/+2 |
| | |||||
* | Only initialize and gather delay accounting data if a related column is enabled | Christian Göttsche | 2021-01-01 | 1 | -12/+21 |
| | | | | | Avoid creating and communicating over a netlink socket by default, which triggers cap_net_admin checks as root. | ||||
* | Linux: accept clock CPU frequency | Christian Göttsche | 2020-12-23 | 1 | -1/+3 |
| | | | | | | | | | processor : 0 cpu : POWER8 (architected), altivec supported clock : 4024.000000MHz revision : 2.0 (pvr 004d 0200) Closes: #424 | ||||
* | Make remaining number literals use uppercase | Benny Baumann | 2020-12-20 | 1 | -1/+1 |
| | |||||
* | Use upper case numeric literals | Christian Göttsche | 2020-12-20 | 1 | -2/+2 |
| | | | | See https://rules.sonarsource.com/c/RSPEC-818 | ||||
* | Handle absence of package CPU temperature | Christian Göttsche | 2020-12-14 | 1 | -36/+1 |
| | | | | Resolves: #389 | ||||
* | Harden the extraction of boot time for the Linux platform | Nathan Scott | 2020-12-14 | 1 | -12/+11 |
| | | | | | | | | | There is a possible path - albeit theoretical really - through the btime initialization code in Linux ProcessList_new(), when String_startsWith() is always false, which can result in btime not being initialized. This commit refactors the code to remove that possibility. | ||||
* | Cleanup initialization of jiffies on the Linux platform | Nathan Scott | 2020-12-14 | 1 | -15/+15 |
| | | | | | | | | | | Small cleanups - add error handling, remove a local static variable and refactor LinuxProcess_adjustTime (also rename it, as its in LinuxProcessList.c not LinuxProcess.c) - and while there, move the related 'btime' global variable into LinuxProcessList.c so it can be made static. Resolves https://github.com/htop-dev/htop/issues/384 | ||||
* | Simplify initialization of the Linux haveSmapsRollup variable | Nathan Scott | 2020-12-14 | 1 | -8/+2 |
| | |||||
* | Define O_PATH if not already defined | Chris Burr | 2020-12-13 | 1 | -0/+6 |
| | |||||
* | Cull the definitions of pageSize and pageSizeKB from CRT.c | Nathan Scott | 2020-12-10 | 1 | -2/+11 |
| | | | | | | | | | | | | | | | By storing the per-process m_resident and m_virt values in the form htop wants to display them in (KB, not pages), we no longer need to have definitions of pageSize and pageSizeKB in the common CRT code. These variables were never really CRT (i.e. display) related in the first place. It turns out the darwin platform code doesn't need to use these at all (the process values are extracted from the kernel in bytes not pages) and the other platforms can each use their own local pagesize variables, in more appropriate locations. Some platforms were actually already doing this, so this change is removing duplication of logic and variables there. | ||||
* | IWYU update | Christian Göttsche | 2020-12-06 | 1 | -3/+2 |
| | |||||
* | Initialize buffer for retrieved path | Benny Baumann | 2020-12-06 | 1 | -1/+2 |
| | | | | | | This avoids a warning on GCC 11. Fixes #369 | ||||
* | LinuxProcessList: add underscore suffix for raw struct name | Christian Göttsche | 2020-12-05 | 1 | -1/+1 |
| | | | | Fit the general coding style | ||||
* | Linux: avoid float division by 0 after system sleep | Christian Göttsche | 2020-12-03 | 1 | -2/+3 |
| | | | | | linux/LinuxProcessList.c:1403:63: runtime error: division by zero SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior linux/LinuxProcessList.c:1403:63 in | ||||
* | Add Linux cwd process column | Christian Göttsche | 2020-12-03 | 1 | -0/+29 |
| | |||||
* | Dynamically load libsensors at runtime | Christian Göttsche | 2020-12-02 | 1 | -40/+6 |
| | |||||
* | Add xReadfile wrapper for reading small to medium size files | Christian Göttsche | 2020-12-02 | 1 | -77/+16 |
| | | | | | | Inspired by proposed Linux syscall Avoid file descriptor leaks like 4af8c63f | ||||
* | Use String_eq for readability and consistency | Christian Göttsche | 2020-12-02 | 1 | -3/+3 |
| | |||||
* | Add cast to unsigned char to avoid signed char misuse | Christian Göttsche | 2020-12-02 | 1 | -1/+1 |
| | |||||
* | Merge identical conditional branches | Christian Göttsche | 2020-12-02 | 1 | -3/+1 |
| | |||||
* | Linux: fix process parsing for hidden pid directories | Christian Göttsche | 2020-11-29 | 1 | -2/+2 |
| | |||||
* | Fix reading of device nodes > 2 chars from memory maps | Daniel Lange | 2020-11-28 | 1 | -4/+4 |
| | |||||
* | Add compat mode for systems without openat(2) | Christian Göttsche | 2020-11-28 | 1 | -41/+63 |
| | |||||
* | LinuxProcessList: use openat instead of building path strings | Christian Göttsche | 2020-11-28 | 1 | -96/+97 |
| | | | | openat() is available since Linux 2.6.16 | ||||
* | Drop unused global ProcessList memory fields | Nathan Scott | 2020-11-27 | 1 | -3/+3 |
| | | | | | | | | | | The global ProcessList structure contains a couple of unused fields. 'sharedMem' has never been used by any Meter, since its not been anything other than zero in Linux /proc/meminfo for many, many years. The freeMem field is only used in the usedMem calculation, so it can reside on the stack like some other memory variables used within-calculations-only and not exposed to the user via a Meter. | ||||
* | Randomly refresh M_LRS calculation, but latest after 2s | Benny Baumann | 2020-11-26 | 1 | -8/+7 |
| | |||||
* | Roll our own strtoull implementation specialized to handle the parsing ↵ | Benny Baumann | 2020-11-26 | 1 | -20/+54 |
| | | | | requirements | ||||
* | Hardcode actual conversions to read the maps file data | Benny Baumann | 2020-11-26 | 1 | -8/+49 |
| | |||||
* | Only calculate M_LRS size every 5 seconds | Benny Baumann | 2020-11-26 | 1 | -3/+21 |
| | |||||
* | Calculate library size (M_LRS column) from maps file | Fynn Wulf | 2020-11-26 | 1 | -2/+74 |
| | |||||
* | LinuxProcessList_recurseProcTree: compute time only once and mark parent const | Christian Göttsche | 2020-11-25 | 1 | -5/+6 |
| | |||||
* | Drop taskstats conditional | Christian Göttsche | 2020-11-25 | 1 | -12/+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 conditional | Christian Göttsche | 2020-11-25 | 1 | -6/+0 |
| | | | | | | | | | 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. | ||||
* | LinuxProcessList: fix misspelling | Christian Göttsche | 2020-11-25 | 1 | -5/+5 |
| | |||||
* | Fix file descriptor leak in LinuxProcessList_readCmdlineFile after xread failure | Christian Göttsche | 2020-11-24 | 1 | -1/+3 |
| | | | | Found by Coverity | ||||
* | Include comm before cmdline if exe could not be read, but comm mismatches ↵ | Benny Baumann | 2020-11-24 | 1 | -0/+10 |
| | | | | | | basename from cmdline Also highlights entries where exe was marked deleted | ||||
* | Add heuristic for space-separated cmdline | Benny Baumann | 2020-11-24 | 1 | -5/+91 |
| | |||||
* | Compatibility function for faccessat | Benny Baumann | 2020-11-24 | 1 | -0/+1 |
| | |||||
* | Improving Command display/sort | Narendran Gopalakrishnan | 2020-11-24 | 1 | -4/+73 |
| | |||||
* | LinuxProcess_adjustTime: simplify by not using double | Christian Göttsche | 2020-11-24 | 1 | -8/+6 |
| | | | | Does not work with -ffast-math else. | ||||
* | LinuxProcessList: fix misspelling | Christian Göttsche | 2020-11-24 | 1 | -1/+1 |
| | |||||
* | Linux: fix display of new thread for one cycle when hidden | Christian Göttsche | 2020-11-23 | 1 | -2/+3 |
| | |||||
* | LinuxProcessList: skip parsing threads if the kind of thread is disabled | Christian Göttsche | 2020-11-22 | 1 | -2/+23 |
| | |||||
* | Reduce scope of local variables | Benny Baumann | 2020-11-22 | 1 | -2/+1 |
| | |||||
* | Rename virtual memory column from M_SIZE to M_VIRT | Christian Göttsche | 2020-11-21 | 1 | -1/+1 |
| | | | | Closes: #325 | ||||
* | Spelling corrections | Christian Göttsche | 2020-11-18 | 1 | -1/+1 |
| | |||||
* | Show CPU temperature in CPU meter | Christian Göttsche | 2020-11-16 | 1 | -0/+78 |
| | | | | | Show the CPU temperature in the CPU meter, like CPU frequency, instead of using an extra Meter. | ||||
* | Use spaceship comparison for TTYs | Christian Göttsche | 2020-11-15 | 1 | -1/+6 |
| |