summaryrefslogtreecommitdiffstats
path: root/linux/LinuxProcessList.c
Commit message (Collapse)AuthorAgeFilesLines
* IWYU updateChristian Göttsche2020-12-061-3/+2
|
* Initialize buffer for retrieved pathBenny Baumann2020-12-061-1/+2
| | | | | | This avoids a warning on GCC 11. Fixes #369
* LinuxProcessList: add underscore suffix for raw struct nameChristian Göttsche2020-12-051-1/+1
| | | | Fit the general coding style
* Linux: avoid float division by 0 after system sleepChristian Göttsche2020-12-031-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 columnChristian Göttsche2020-12-031-0/+29
|
* Dynamically load libsensors at runtimeChristian Göttsche2020-12-021-40/+6
|
* Add xReadfile wrapper for reading small to medium size filesChristian Göttsche2020-12-021-77/+16
| | | | | | Inspired by proposed Linux syscall Avoid file descriptor leaks like 4af8c63f
* Use String_eq for readability and consistencyChristian Göttsche2020-12-021-3/+3
|
* Add cast to unsigned char to avoid signed char misuseChristian Göttsche2020-12-021-1/+1
|
* Merge identical conditional branchesChristian Göttsche2020-12-021-3/+1
|
* Linux: fix process parsing for hidden pid directoriesChristian Göttsche2020-11-291-2/+2
|
* Fix reading of device nodes > 2 chars from memory mapsDaniel Lange2020-11-281-4/+4
|
* Add compat mode for systems without openat(2)Christian Göttsche2020-11-281-41/+63
|
* LinuxProcessList: use openat instead of building path stringsChristian Göttsche2020-11-281-96/+97
| | | | openat() is available since Linux 2.6.16
* Drop unused global ProcessList memory fieldsNathan Scott2020-11-271-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 2sBenny Baumann2020-11-261-8/+7
|
* Roll our own strtoull implementation specialized to handle the parsing ↵Benny Baumann2020-11-261-20/+54
| | | | requirements
* Hardcode actual conversions to read the maps file dataBenny Baumann2020-11-261-8/+49
|
* Only calculate M_LRS size every 5 secondsBenny Baumann2020-11-261-3/+21
|
* Calculate library size (M_LRS column) from maps fileFynn Wulf2020-11-261-2/+74
|
* LinuxProcessList_recurseProcTree: compute time only once and mark parent constChristian Göttsche2020-11-251-5/+6
|
* Drop taskstats conditionalChristian Göttsche2020-11-251-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 conditionalChristian Göttsche2020-11-251-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 misspellingChristian Göttsche2020-11-251-5/+5
|
* Fix file descriptor leak in LinuxProcessList_readCmdlineFile after xread failureChristian Göttsche2020-11-241-1/+3
| | | | Found by Coverity
* Include comm before cmdline if exe could not be read, but comm mismatches ↵Benny Baumann2020-11-241-0/+10
| | | | | | basename from cmdline Also highlights entries where exe was marked deleted
* Add heuristic for space-separated cmdlineBenny Baumann2020-11-241-5/+91
|
* Compatibility function for faccessatBenny Baumann2020-11-241-0/+1
|
* Improving Command display/sortNarendran Gopalakrishnan2020-11-241-4/+73
|
* LinuxProcess_adjustTime: simplify by not using doubleChristian Göttsche2020-11-241-8/+6
| | | | Does not work with -ffast-math else.
* LinuxProcessList: fix misspellingChristian Göttsche2020-11-241-1/+1
|
* Linux: fix display of new thread for one cycle when hiddenChristian Göttsche2020-11-231-2/+3
|
* LinuxProcessList: skip parsing threads if the kind of thread is disabledChristian Göttsche2020-11-221-2/+23
|
* Reduce scope of local variablesBenny Baumann2020-11-221-2/+1
|
* Rename virtual memory column from M_SIZE to M_VIRTChristian Göttsche2020-11-211-1/+1
| | | | Closes: #325
* Spelling correctionsChristian Göttsche2020-11-181-1/+1
|
* Show CPU temperature in CPU meterChristian Göttsche2020-11-161-0/+78
| | | | | Show the CPU temperature in the CPU meter, like CPU frequency, instead of using an extra Meter.
* Use spaceship comparison for TTYsChristian Göttsche2020-11-151-1/+6
|
* Early skip non-directories when searching for process informationChristian Göttsche2020-11-151-4/+9
|
* Drop hideThreads SettingChristian Göttsche2020-11-151-1/+1
| | | | | 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-142/+221
|\
| * Remove unnecessary bracesBenny Baumann2020-11-021-1/+1
| |
| * Integrate NAN check into assignmentBenny Baumann2020-11-021-4/+1
| | | | | | | | The check for NAN is kept to avoid relying on implementation details of the CLAMP macro/function
| * Embracing branchesBenny Baumann2020-11-021-41/+105
| |
| * Spacing around operatorsBenny Baumann2020-11-021-46/+48
| |
| * Whitespace and indentation issuesBenny Baumann2020-11-021-11/+13
| |
| * Fix indentation to 3 spacesBenny Baumann2020-11-021-18/+18
| |
| * Spacing after keywords (for)Benny Baumann2020-11-021-5/+5
| |
| * Spacing after keywords (if)Benny Baumann2020-11-021-16/+16
| |
| * Spacing after keywords (while)Benny Baumann2020-11-021-7/+7
| |

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