summaryrefslogtreecommitdiffstats
path: root/freebsd/FreeBSDProcess.c
Commit message (Collapse)AuthorAgeFilesLines
* Update license headers to explicitly say GPLv2+Daniel Lange2021-09-221-1/+1
|
* FreeBSD: Implement CWD columnBenny Baumann2021-05-251-0/+1
|
* Add ELAPSED process columnChristian Göttsche2021-05-231-1/+1
| | | | | | | | | Add process columns showing the elapsed time since the process was started. Similar to STARTTIME, but shows the time passed since the process start instead of the fixed start time of the process. Closes https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=782636
* FreeBSD: add EXE and COMM columns and use merged command line helpersChristian Göttsche2021-05-231-0/+2
|
* Move kernel/userland thread handling to platform-independent implementationBenny Baumann2021-05-231-4/+0
|
* platform-dependent files included relative to main source directorymayurdahibhate2021-05-101-1/+1
|
* Rework TTY columnChristian Göttsche2021-04-141-13/+1
| | | | | | | | | | * Rename internal identifier from TTY_NR to just TTY * Unify column header on platforms * Use devname(3) on BSD derivate to show the actual terminal, simplifies current FreeBSD implementation. * Use 'unsigned long int' as id type, to fit dev_t on Linux. Only on Solaris the terminal path is not yet resolved.
* FreeBSD: drop minflt and implement majfltChristian Göttsche2021-01-301-2/+1
|
* FreeBSD: simplify kernel thread logicChristian Göttsche2021-01-301-7/+1
|
* FreeBSD: miscChristian Göttsche2021-01-301-2/+3
|
* Sort out the mess around column sorting that had accumulated over timeDaniel Lange2021-01-211-9/+9
|
* Linux: use correct column alignment for wide fieldsChristian Göttsche2021-01-111-8/+3
| | | | | | | This affects: - PROC_COMM, PROC_EXE and CWD on Linux - JAIL on FreeBSD and DragonFlyBSD - ZONE on Solaris
* Object: return int on comparisonChristian Göttsche2021-01-021-1/+1
| | | | | Comparisons do, due to the new introduced shaceship-comparisons, only return -1, 0, 1 or the result of strcmp().
* Merge Process_pidColumns into Process_fields and rework auto-fit for ↵Christian Göttsche2020-12-191-20/+9
| | | | PID-like columns
* Rework enum ProcessFieldChristian Göttsche2020-12-191-4/+3
| | | | | | Use only one enum instead of a global and a platform specific one. Drop Platform_numberOfFields global variable. Set known size of Process_fields array
* Split boilerplate and platform-independent field comparisonBenny Baumann2020-12-191-1/+1
| | | | | | | | This acheives two things: - Allows for simple tie-breaking if values compare equal (needed to make sorting the tree-view stable) - Allows for platform-dependent overriding of the sort-order for specific fields Also fixes a small oversight on DragonFlyBSD when default-sorting.
* Invert Process_compare resolution so that superclass matches run firstHisham Muhammad2020-12-191-14/+7
| | | | | | | | | | * This removes duplicated code that adjusts the sort direction from every OS-specific folder. * Most fields in a regular htop screen are OS-independent, so trying Process_compare first and only falling back to the OS-specific compareByKey function if it's an OS-specific field makes sense. * This will allow us to override the sortKey in a global way without having to edit each OS-specific file.
* Split RichString_(append|appendn|write) into wide and asciiChristian Göttsche2020-12-081-1/+1
| | | | | | | | RichString_writeFrom takes a top spot during performance analysis due to the calls to mbstowcs() and iswprint(). Most of the time we know in advance that we are only going to print regular ASCII characters.
* Rename virtual memory column from M_SIZE to M_VIRTChristian Göttsche2020-11-211-1/+1
| | | | Closes: #325
* IWYU update (FreeBSD)Christian Goettsche2020-11-191-7/+6
|
* 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
* Introduce spaceship comparison for ProcessesChristian Göttsche2020-11-151-3/+5
| | | | | | | | | | | | | | | 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/+3
|
* Spacing around operatorsBenny Baumann2020-11-021-1/+1
|
* FreeBSD: update ProcessChristian Göttsche2020-10-291-13/+13
|
* FreeBSD: rework tty process columnChristian Goettsche2020-10-291-1/+15
|
* 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
|
* Mark remaining classes constChristian Göttsche2020-10-131-1/+1
|
* Mark process argument of Process_isThread constChristian Göttsche2020-10-091-2/+2
|
* Enable -Wcast-qual compiler warningChristian Göttsche2020-10-061-6/+6
|
* Update License consistently to GPLv2 as per COPYING fileDaniel Lange2020-10-051-1/+1
|
* Axe automated header generation.Zev Weiss2020-09-031-27/+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.
* Merge branch 'hishamhm-pull-904'Nathan Scott2020-08-201-1/+1
|\
| * Truncate overwide jail names on BSD.Robert Crowston2019-04-171-1/+1
| |
* | Widen ST_UID (UID) column to 5 chars to allow UIDs > 9999 without breaking ↵Daniel Lange2018-10-071-1/+1
|/ | | | | | alignment Issue Github #841, Debian bug #910492
* Security review: check results of snprintf.Hisham Muhammad2017-07-271-2/+2
| | | | | Calls marked with xSnprintf shouldn't fail. Abort program cleanly if any of them does.
* Issue #502 fix SID colunm header widthKamyar Rasta2017-02-051-1/+1
|
* Issue #502 update Session ID columnKamyar Rasta2017-02-011-2/+2
|
* Interpret TTY_NR column on Linux,Hisham2016-10-011-1/+1
| | | | | translate dev_t to major:minor on other platforms. Closes #316.
* Suppress compiler warnings.Hung-Yi Chen2016-02-131-2/+2
|
* Check for failure in allocations.Hisham2016-02-021-1/+1
|
* Added preliminary attempt at jails support on FreeBSD - JID and JAIL (name) ↵Martin "eto" Misuth2015-09-301-5/+35
| | | | | | | columns, somewhat more correct kernel "thread" detection. Seems FreeBSD kernel can spawn both kernel processes (what is what htop currently sees) and kernel threads. For now let's consider kernel processes kernel "threads".
* fix calloc() callsChristian Hesse2015-09-071-1/+1
| | | | | | | * size_t nmemb (number of elements) first, then size_t size * do not assume char is size 1 but use sizeof() * allocate for char, not pointer to char (found by Michael McConville, fixes #261)
* Make column width calculation dynamic.Hisham Muhammad2015-08-201-26/+9
| | | | Closes #228.
* Fixes to use platform-specific compare routines.Hisham Muhammad2015-04-091-5/+15
|
* Major advances in FreeBSD port.Hisham Muhammad2015-03-161-3/+10
|
* Get FreeBSD tree to compile again with latest changes.Hisham Muhammad2015-03-161-0/+134

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