summaryrefslogtreecommitdiffstats
path: root/linux/LinuxProcess.h
Commit message (Collapse)AuthorAgeFilesLines
* IWYU updateChristian Göttsche2020-12-061-2/+1
|
* Add Linux cwd process columnChristian Göttsche2020-12-031-1/+4
|
* Only calculate M_LRS size every 5 secondsBenny Baumann2020-11-261-0/+1
|
* Calculate library size (M_LRS column) from maps fileFynn Wulf2020-11-261-8/+9
|
* Drop taskstats conditionalChristian Göttsche2020-11-251-4/+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-4/+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-0/+1
| | | | | | basename from cmdline Also highlights entries where exe was marked deleted
* Refactor command string creationBenny Baumann2020-11-241-0/+2
| | | | Hopefully this patch makes it a bit more approachable how it's done.
* Improving Command display/sortNarendran Gopalakrishnan2020-11-241-1/+36
|
* LinuxProcess: mark LinuxProcess_printDelay staticChristian Göttsche2020-11-211-4/+0
|
* IWYU update (Linux)Christian Göttsche2020-11-191-1/+1
|
* Mark local functions staticChristian Göttsche2020-11-151-4/+0
|
* Spacing around operatorsBenny Baumann2020-11-021-1/+1
|
* Implement Process_isUserlandThread as functionChristian Göttsche2020-10-281-1/+3
| | | | Make it more readable and fix unenclosed macro arguments
* Implement LinuxProcess_effectiveIOPriority as functionChristian Göttsche2020-10-281-10/+0
| | | | Make it more readable and fix unenclosed macro arguments
* Avoid some unnecessary casts and mark some not changing variables constChristian Göttsche2020-10-271-1/+1
|
* Hold only a const version of Settings in ProcessChristian Göttsche2020-10-261-1/+1
|
* Mark process parameter of Process_writeField consistently constChristian Göttsche2020-10-261-1/+1
|
* Make all required includes explicitBenny Baumann2020-10-181-2/+11
| | | | Information as seen by IWYU 0.12 + clang 9 on Linux
* Do not use extra starttime process field on LinuxChristian Göttsche2020-10-161-1/+0
|
* Mark remaining classes constChristian Göttsche2020-10-131-1/+1
|
* Mark process argument of Process_isThread constChristian Göttsche2020-10-091-2/+2
|
* Handle parsing envID & VPid from process status fileBenny Baumann2020-10-071-2/+2
| | | | | Fixes #55 Fixes #192
* Update License consistently to GPLv2 as per COPYING fileDaniel Lange2020-10-051-1/+1
|
* Add security attribute process columnChristian Göttsche2020-10-031-1/+4
|
* Add Linux process column for context switchesChristian Göttsche2020-09-171-1/+5
| | | | Displays the incremental sum of voluntary_ctxt_switches and nonvoluntary_ctxt_switches.
* Further, minor cleanups to headers post-MakeHeadersNathan Scott2020-09-081-7/+0
| | | | | Remove leftover empty ifdef/endif pairs, whitespace. The generated htop.h file was also unused - removed.
* Remove superfluous 'extern's from function declarations.Zev Weiss2020-09-031-8/+8
| | | | | | | | Applied via: $ find * -name '*.h' -exec sed -i -r 's/^extern (.+\()/\1/;' {} + Suggested-by: Bert Wesarg <bert.wesarg@googlemail.com>
* Axe automated header generation.Zev Weiss2020-09-031-2/+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.
* Update header files to match whitespace changes in source filesNathan Scott2020-08-221-1/+0
|
* Merge branch 'hishamhm-pull-960'Nathan Scott2020-08-201-1/+1
|\
| * Clean up existing whitespaceDaniel Flanagan2019-10-311-1/+1
| |
* | Resolve compiler warnings and errors relating to the Arg unionNathan Scott2020-08-201-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Promote the Arg union to a core data type in Object.c such that it is visible everywhere (many source files need it), and correct declarations of several functions that use it. The Process_sendSignal function is also corrected to have the expected return type (bool, not void) - an error being masked by ignoring this not-quite-harmless warning. I've also added error checking to the kill(2) call here, which was previously overlooked / missing (?).
* | Merge branch 'hishamhm-pull-843'Nathan Scott2020-08-191-1/+8
|\ \
| * | Linux: Add PSS (proportional set size), Swap and SwapPSS calculationAlexander Schlarb2019-03-201-1/+8
| |/ | | | | | | | | Original code was written by *Craig M. Brandenburg* for htop 1.0.2 Many performance improvements by GitHub user *linvinus*, ported to htop 2.0.2
* / Resolve complation issues with -fno-common (default from gcc-10)Nathan Scott2020-07-101-9/+10
|/ | | | | | | Extends the MakeHeader script to auto-generate correct "extern" function declarations in some cases that it currently does not. Related to https://github.com/hishamhm/htop/pull/981
* Linux: add process->starttime and use it for STARTTIME column (#700)Shawn Landden2018-08-191-0/+3
| | | | | | | this way a remount of /proc will not reset starttimes and we can also see startup times for processes started before the mount of /proc also record btime (boot time in seconds since epoch) as Linux semi-global
* Linux: change how kernel threads are detectedHisham Muhammad2018-03-251-1/+2
| | | | | | | | | | Use the same method that ps and top use to determine if a process is a kernel thread on Linux: check if cmdline is empty. Thanks to @wangqr's investigation reported here: https://github.com/hishamhm/htop/issues/761#issuecomment-375306069 Fixes #761.
* Adds support for linux delay accounting (#667)André Carvalho2017-12-041-1/+19
| | | | | | Adds support for showing columns with linux delay accounting. This information can be read from the netlink interface, and thus we set up a socket to read from that when initializing the LinuxProcessList (LinuxProcessList_initNetlinkSocket). After that, for each process we call LinuxProcessList_readDelayAcctData, which sends a message thru the socket after setting up a callback to get the answer from the Kernel. That callback sets the process total delay time attribute. We then set the delay percent as the percentage of time process cpu time since last scan.
* Interpret TTY_NR column on Linux,Hisham2016-10-011-0/+1
| | | | | translate dev_t to major:minor on other platforms. Closes #316.
* Make column width calculation dynamic.Hisham Muhammad2015-08-201-4/+1
| | | | Closes #228.
* Enable OOM support unconditionally on Linux.Hisham Muhammad2015-04-091-4/+1
| | | | | Read OOM data only if column is enabled. Make sort ordering more consistent. Closes #182.
* Merge branch 'master' into wipHisham Muhammad2015-04-021-2/+4
|\ | | | | | | | | | | | | | | | | | | Conflicts: Process.c Process.h htop.c linux/LinuxProcess.c linux/LinuxProcess.h test_spec.lua
| * Fixes to subclassing Process.Hisham Muhammad2015-03-311-0/+2
| |
| * Merge fixesHisham Muhammad2015-02-231-1/+1
| |
| * Fix allocation of processes. Closes #166.Hisham Muhammad2015-02-231-0/+6
| | | | | | | | | | | | | | | | | | Conflicts: Process.c Process.h ProcessList.c ScreenManager.c linux/LinuxProcessList.c
* | Build fixes to resync with FreeBSD changes.Hisham Muhammad2015-03-161-2/+0
| |
* | Linux build fixes.Hisham Muhammad2015-03-161-1/+1
| |
* | Isolate portable and Linux-specific process fields.Hisham Muhammad2015-03-161-13/+98
| |
* | Move more Linux-specific code into Linux subdir.Hisham Muhammad2015-03-151-0/+37
| |

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