summaryrefslogtreecommitdiffstats
path: root/linux/LinuxProcess.c
Commit message (Collapse)AuthorAgeFilesLines
* Use size_t as type for buffer length in ProcessChristian Göttsche2020-12-061-1/+1
|
* IWYU updateChristian Göttsche2020-12-061-0/+1
|
* Add Linux cwd process columnChristian Göttsche2020-12-031-0/+15
|
* Merge identical conditional branchesChristian Göttsche2020-12-021-3/+1
|
* Drop redundant return statementsChristian Göttsche2020-12-021-2/+0
|
* TypoChristian Göttsche2020-11-281-1/+1
|
* Use 'N/A' instead of 'no perm' for more consistencyBenny Baumann2020-11-281-2/+2
|
* Distinguish display of no permissions for reading M_LRSBenny Baumann2020-11-261-1/+9
|
* Calculate library size (M_LRS column) from maps fileFynn Wulf2020-11-261-1/+1
|
* Drop taskstats conditionalChristian Göttsche2020-11-251-6/+0
| | | | | | | | | | 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-8/+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.
* Include comm before cmdline if exe could not be read, but comm mismatches ↵Benny Baumann2020-11-241-2/+24
| | | | | | basename from cmdline Also highlights entries where exe was marked deleted
* Refactor command string creationBenny Baumann2020-11-241-76/+116
| | | | Hopefully this patch makes it a bit more approachable how it's done.
* Make kernel thread display for COMM/EXE columns less visible and more consistentBenny Baumann2020-11-241-4/+4
|
* Reduce visual noise to when comm and cmdline actually disagree on the ↵Benny Baumann2020-11-241-4/+9
| | | | program basename
* Assume full basename matches COMM when matching full COMM bufferNarendran Gopalakrishnan2020-11-241-2/+1
|
* Cleanup some documentationNarendran Gopalakrishnan2020-11-241-1/+1
|
* Improving Command display/sortNarendran Gopalakrishnan2020-11-241-1/+402
|
* Rename virtual memory column from M_SIZE to M_VIRTChristian Göttsche2020-11-211-1/+1
| | | | Closes: #325
* LinuxProcess: mark LinuxProcess_printDelay staticChristian Göttsche2020-11-211-1/+1
|
* IWYU update (Linux)Christian Göttsche2020-11-191-1/+2
|
* Add process column for normalized CPU usageChristian Göttsche2020-11-161-0/+1
| | | | Shows the process CPU usage divided by the number of CPU cores
* Mark local functions staticChristian Göttsche2020-11-151-12/+12
|
* Introduce spaceship comparison for ProcessesChristian Göttsche2020-11-151-37/+49
| | | | | | | | | | | | | | | If currently two unsigned values are compared via `a - b`, in the case b is actually bigger than a, the result will not be an negative number (as -1 is expected) but a huge positive number as the subtraction is an unsigned subtraction. Avoid over-/underflow affected operations; use comparisons. Modern compilers will generate sane code, like: xor eax, eax cmp rdi, rsi seta al sbb eax, 0 ret
* Embracing branchesBenny Baumann2020-11-021-2/+4
|
* Whitespace and indentation issuesBenny Baumann2020-11-021-6/+7
|
* Spacing after keywords (if)Benny Baumann2020-11-021-3/+3
|
* Implement LinuxProcess_effectiveIOPriority as functionChristian Göttsche2020-10-281-1/+6
| | | | Make it more readable and fix unenclosed macro arguments
* Avoid some unnecessary casts and mark some not changing variables constChristian Göttsche2020-10-271-3/+3
|
* Hold only a const version of Settings in ProcessChristian Göttsche2020-10-261-2/+2
|
* Mark process parameter of Process_writeField consistently constChristian Göttsche2020-10-261-3/+3
|
* Cache PAGE_SIZEChristian Göttsche2020-10-191-5/+5
| | | | | | man:sysconf(3) states: The values obtained from these functions are system configuration constants. They do not change during the lifetime of a process.
* Make all required includes explicitBenny Baumann2020-10-181-9/+9
| | | | Information as seen by IWYU 0.12 + clang 9 on Linux
* Rename StringUtils.[ch] to XUtils.[ch]Benny Baumann2020-10-161-1/+2
|
* Move xAsprintf, xSnprintf and xStrdup to StringUtils.hBenny Baumann2020-10-161-1/+2
|
* Do not use extra starttime process field on LinuxChristian Göttsche2020-10-161-13/+0
|
* Mark remaining classes constChristian Göttsche2020-10-131-1/+1
|
* Mark process argument of Process_isThread constChristian Göttsche2020-10-091-1/+1
|
* Handle parsing envID & VPid from process status fileBenny Baumann2020-10-071-4/+7
| | | | | Fixes #55 Fixes #192
* Simplify statm parsing and document unused fieldsChristian Göttsche2020-10-061-2/+2
|
* Update License consistently to GPLv2 as per COPYING fileDaniel Lange2020-10-051-1/+1
|
* Add security attribute process columnChristian Göttsche2020-10-031-0/+5
|
* Drop redundant casts to the same typeChristian Göttsche2020-09-291-1/+1
|
* Do not drop qualifier in castChristian Göttsche2020-09-241-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ListItem.c:73:33: warning: cast from 'const void *' to 'struct ListItem_ *' drops const qualifier [-Wcast-qual] ListItem* obj1 = (ListItem*) cast1; ^ ListItem.c:74:33: warning: cast from 'const void *' to 'struct ListItem_ *' drops const qualifier [-Wcast-qual] ListItem* obj2 = (ListItem*) cast2; ^ Process.c:434:28: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] Process* p1 = (Process*)v1; ^ Process.c:435:28: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] Process* p2 = (Process*)v2; ^ Process.c:441:36: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] Settings *settings = ((Process*)v1)->settings; ^ Process.c:443:22: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] p1 = (Process*)v1; ^ Process.c:444:22: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] p2 = (Process*)v2; ^ Process.c:446:22: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] p2 = (Process*)v1; ^ Process.c:447:22: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] p1 = (Process*)v2; ^ AffinityPanel.c:37:16: warning: cast from 'const char *' to 'void *' drops const qualifier [-Wcast-qual] free((void*)this->text); ^ AffinityPanel.c:39:19: warning: cast from 'const char *' to 'void *' drops const qualifier [-Wcast-qual] free((void*)this->indent); ^ linux/LinuxProcess.c:294:36: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] Settings *settings = ((Process*)v1)->settings; ^ linux/LinuxProcess.c:296:27: warning: cast from 'const void *' to 'struct LinuxProcess_ *' drops const qualifier [-Wcast-qual] p1 = (LinuxProcess*)v1; ^ linux/LinuxProcess.c:297:27: warning: cast from 'const void *' to 'struct LinuxProcess_ *' drops const qualifier [-Wcast-qual] p2 = (LinuxProcess*)v2; ^ linux/LinuxProcess.c:299:27: warning: cast from 'const void *' to 'struct LinuxProcess_ *' drops const qualifier [-Wcast-qual] p2 = (LinuxProcess*)v1; ^ linux/LinuxProcess.c:300:27: warning: cast from 'const void *' to 'struct LinuxProcess_ *' drops const qualifier [-Wcast-qual] p1 = (LinuxProcess*)v2; ^ linux/LinuxProcessList.c:62:32: warning: cast from 'const void *' to 'struct TtyDriver_ *' drops const qualifier [-Wcast-qual] TtyDriver* a = (TtyDriver*) va; ^ linux/LinuxProcessList.c:63:32: warning: cast from 'const void *' to 'struct TtyDriver_ *' drops const qualifier [-Wcast-qual] TtyDriver* b = (TtyDriver*) vb; ^ linux/Battery.c:130:21: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] free((char *) isOnline); ^ linux/Battery.c:197:26: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] xSnprintf((char *) filePath, sizeof filePath, SYS_POWERSUPPLY_DIR "/%s/type", entryName); ^ linux/Battery.c:209:29: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] xSnprintf((char *) filePath, sizeof filePath, SYS_POWERSUPPLY_DIR "/%s/uevent", entryName); ^ linux/Battery.c:262:29: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] xSnprintf((char *) filePath, sizeof filePath, SYS_POWERSUPPLY_DIR "/%s/online", entryName); ^
* Update delay accounting to use NAN on errorBenny Baumann2020-09-241-1/+1
|
* Update IO rate display to use NAN on errorBenny Baumann2020-09-241-3/+10
|
* Fix memory leak on cgroup read failureChristian Göttsche2020-09-211-1/+1
|
* Add Linux process column for context switchesChristian Göttsche2020-09-171-0/+8
| | | | Displays the incremental sum of voluntary_ctxt_switches and nonvoluntary_ctxt_switches.
* Axe automated header generation.Zev Weiss2020-09-031-144/+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.
* Reduce oom cast from long to intChristian Göttsche2020-08-311-1/+1
| | | | | | | Oom values should never be greater then INT_MAX, they should be in the range 0 - 1000. Improves: d9a5dd4b916636b5e7ba8631885427372f0cfcad

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