summaryrefslogtreecommitdiffstats
path: root/linux/LinuxProcess.h
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
| |
* | Fix allocation of processes. Closes #166.Hisham Muhammad2015-02-201-0/+6
| |
* | Sorry about the mega-patch.Hisham Muhammad2015-01-211-2/+2
|/ | | | | This is a work-in-progress, code is currently broken. (Some actions, and notably, the header, are missing.)
* Move platform-dependent parts of Linux battery meter.Hisham Muhammad2014-11-271-0/+39

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