Christian Göttsche
c038326a70
LinuxProcessList: fix misspelling
5 years ago
Christian Göttsche
4af8c63f63
Fix file descriptor leak in LinuxProcessList_readCmdlineFile after xread failure
...
Found by Coverity
5 years ago
Benny Baumann
21e3063e2e
Include comm before cmdline if exe could not be read, but comm mismatches basename from cmdline
...
Also highlights entries where exe was marked deleted
5 years ago
Benny Baumann
fcda517a67
Add heuristic for space-separated cmdline
5 years ago
Benny Baumann
98fce1fb43
Compatibility function for faccessat
5 years ago
Narendran Gopalakrishnan
09fe94da18
Improving Command display/sort
5 years ago
Christian Göttsche
42c842c190
LinuxProcess_adjustTime: simplify by not using double
...
Does not work with -ffast-math else.
5 years ago
Christian Göttsche
952ee9cd77
LinuxProcessList: fix misspelling
5 years ago
Christian Göttsche
6c2849ec81
Linux: fix display of new thread for one cycle when hidden
5 years ago
Christian Göttsche
17eeb7573a
LinuxProcessList: skip parsing threads if the kind of thread is disabled
5 years ago
Benny Baumann
03f9a86918
Reduce scope of local variables
5 years ago
Christian Göttsche
fa002c0ba9
Rename virtual memory column from M_SIZE to M_VIRT
...
Closes : #325
5 years ago
Christian Göttsche
0a2105eb22
Spelling corrections
5 years ago
Christian Göttsche
1b225cd7a0
Show CPU temperature in CPU meter
...
Show the CPU temperature in the CPU meter, like CPU frequency, instead
of using an extra Meter.
5 years ago
Christian Göttsche
0411fdbcef
Use spaceship comparison for TTYs
5 years ago
Christian Göttsche
f856fe6463
Early skip non-directories when searching for process information
5 years ago
Christian Göttsche
ad72b747fa
Drop hideThreads Setting
...
It is only used to read process directories on RedHat beginning with a dot.
Unconditionally accept directories with a starting dot.
5 years ago
Daniel Lange
da2dcf9505
Remove duplicate test for NUL
...
Fixes #308 , thanks @qarmin (Rafał Mikrut)
5 years ago
Benny Baumann
e7b95feee4
Remove unnecessary braces
5 years ago
Benny Baumann
0e922d4085
Integrate NAN check into assignment
...
The check for NAN is kept to avoid relying on implementation details of the CLAMP macro/function
5 years ago
Benny Baumann
45869513bf
Embracing branches
5 years ago
Benny Baumann
61e14d4bb2
Spacing around operators
5 years ago
Benny Baumann
b23f8235e2
Whitespace and indentation issues
5 years ago
Benny Baumann
493217e814
Fix indentation to 3 spaces
5 years ago
Benny Baumann
adf797c295
Spacing after keywords (for)
5 years ago
Benny Baumann
374edb9ed5
Spacing after keywords (if)
5 years ago
Benny Baumann
0a51eae11f
Spacing after keywords (while)
5 years ago
Benny Baumann
c790b6ae67
Remove accidental syntax collision
5 years ago
Benny Baumann
7ab0915a6c
Remove unnecessary trailing semicolon on macros
5 years ago
Christian Göttsche
15652e7b81
Enclose macro arguments in parentheses
5 years ago
Murloc Knight
ab17ef4dc0
Zram Meter feature
5 years ago
Christian Göttsche
8c1f5c5a6f
Enclose macro arguments in parentheses
5 years ago
Benny Baumann
cf1a9ec180
Refactor LinuxProcessList_readSmapsFile to work line-oriented
5 years ago
Christian Göttsche
ac2b07eddd
Avoid some unnecessary casts and mark some not changing variables const
5 years ago
Christian Göttsche
27870bd4de
Drop unneeded variablw initialization and reduce scope
5 years ago
Christian Göttsche
a3bb7cbe64
Hold only a const version of Settings in ProcessList
5 years ago
Christian Göttsche
4eb443926f
Hold only a const version of Settings in Process
5 years ago
Christian Göttsche
4c66eb6d4c
XUtils string related updates
...
- allow count out-parameter of String_split() to be NULL
- introduce xStrndup()
- do not allow NULL pointers passed to String_eq()
it is not used in any code
- implement String_startsWith(), String_contains_i() and String_eq()
as inline header functions
- adjust several conversion issues
5 years ago
Christian Göttsche
96e2a4259e
Continue to update generic data in paused mode
...
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
5 years ago
Christian Göttsche
361877454f
Cache PAGE_SIZE
...
man:sysconf(3) states:
The values obtained from these functions are system configuration constants.
They do not change during the lifetime of a process.
5 years ago
Benny Baumann
0f5262917f
Make all required includes explicit
...
Information as seen by IWYU 0.12 + clang 9 on Linux
5 years ago
Benny Baumann
81543253cf
Fix misaligned access inside taskstats structure
...
Reported by UB sanitizer (alongside several other messages):
linux/LinuxProcessList.c:782:25: runtime error: member access within misaligned address 0x614000000264 for type 'struct taskstats', which requires 8 byte alignment
0x614000000264: note: pointer points here
64 01 03 00 0a 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 4b c8 2e 00 00 00 00 00 3e 45 3c fd
^
The issue doesn't cause trouble on x86, but any architecture with stricter memory alignment requirements may inadvertedly break.
5 years ago
Benny Baumann
872e542f4e
Rename StringUtils.[ch] to XUtils.[ch]
5 years ago
Christian Göttsche
a63cfc8b7c
Refactor generating starttime string into Process class
5 years ago
Christian Göttsche
783be7711d
Do not use extra starttime process field on Linux
5 years ago
Christian Göttsche
25022c219d
Read CPU count every cycle to avoid issues when HT/SMT mode changes
5 years ago
Benny Baumann
2970cae543
Handle parsing envID & VPid from process status file
...
Fixes #55
Fixes #192
6 years ago
Christian Göttsche
954d6c12f5
Simplify statm parsing and document unused fields
6 years ago
Daniel Lange
079c2abf8e
Update License consistently to GPLv2 as per COPYING file
6 years ago
Christian Göttsche
d69585b82a
Resolve DEBUG compilation issues
...
Use NDEBUG conditional instead of DEBUG.
Do not call static functions in extern inline ones.
Vector.c:67:11: error: static function 'Vector_isConsistent' is used in an inline function with external linkage [-Werror,-Wstatic-in-inline]
6 years ago