Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update license headers to explicitly say GPLv2+ | Daniel Lange | 2021-09-22 | 1 | -1/+1 |
| | |||||
* | linux: drop dead process field column DIRTY | Christian Göttsche | 2021-09-02 | 1 | -1/+0 |
| | | | | | The field for dirty pages in /proc/[pid]/statm is always 0 since Linux 2.6 (see man:proc(5)). | ||||
* | IWYU update | Christian Göttsche | 2021-08-25 | 1 | -0/+1 |
| | |||||
* | Add columns for process autogroup identifier and nice value | Nathan Scott | 2021-08-09 | 1 | -0/+9 |
| | | | | | | | | | | | | Adds AGRP (autogroup) and ANI (autogroup nice) columns that report the information from /proc/PID/autogroup, as well as handlers for '{' and '}' to change the autogroup nice value. This is guarded by /proc/sys/kernel/sched_autogroup_enabled such that sampling and/or changing values wont be attempted unless the kernel feature is enabled. Fixes: #720 | ||||
* | Move CWD field handling to platform-neutral code | Benny Baumann | 2021-05-25 | 1 | -2/+0 |
| | |||||
* | Move Process_makeCommandStr to global Process implementation | Benny Baumann | 2021-05-23 | 1 | -4/+0 |
| | |||||
* | Move kernel/userland thread handling to platform-independent implementation | Benny Baumann | 2021-05-23 | 1 | -6/+0 |
| | |||||
* | Pre-calculate isUserlandThread flag | Benny Baumann | 2021-05-23 | 1 | -3/+2 |
| | |||||
* | Move mergeCommand to global process struct | Benny Baumann | 2021-05-23 | 1 | -32/+0 |
| | |||||
* | Move procCmdlineBasenameOffset as cmdlineBasenameStart to global Process ↵ | Benny Baumann | 2021-05-23 | 1 | -1/+0 |
| | | | | structure | ||||
* | Remove duplicate field LinuxProcess->procCmdlineBasenameEnd | Benny Baumann | 2021-05-23 | 1 | -1/+0 |
| | | | | This field held practically the same value as cmdlineBasenameEnd | ||||
* | Move procExeBasenameOffset to main Process structure | Benny Baumann | 2021-05-23 | 1 | -2/+0 |
| | | | | This drops procExeLen, as that field is implicit by strlen(Process->procExe) | ||||
* | Move procExeDeleted flag to main Process structure | Benny Baumann | 2021-05-23 | 1 | -1/+0 |
| | |||||
* | Move procComm and procExe to main Process structure | Benny Baumann | 2021-05-23 | 1 | -2/+0 |
| | |||||
* | Refactor makeCommandStr | Benny Baumann | 2021-05-23 | 1 | -17/+23 |
| | |||||
* | platform-dependent files included relative to main source directory | mayurdahibhate | 2021-05-10 | 1 | -1/+1 |
| | |||||
* | Linux: update IO fields | Christian Göttsche | 2021-04-26 | 1 | -7/+11 |
| | | | | | | | | | | | | | | - fix header width of IO_READ_RATE - save data in bytes (not kilobytes) to better compute rate - fix rate data: multiply with 1000 to compensate time difference in milliseconds - rename unit less variable now into realtimeMs - use Process_printBytes(..., data * pageSize, ...) instead of Process_printKBytes(..., data * pageSizeKB, ...) to avoid wrapper | ||||
* | Rework TTY column | Christian Göttsche | 2021-04-14 | 1 | -1/+0 |
| | | | | | | | | | | * 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. | ||||
* | Fix a couple of small spelling mistakes in comments | Nathan Scott | 2021-02-15 | 1 | -1/+1 |
| | |||||
* | Linux: overhaul io process fields | Christian Göttsche | 2021-01-30 | 1 | -2/+18 |
| | | | | | | | | - avoid UBSAN conversions - print N/A on no data (i.e. as unprivileged user) - fix rate calculation to show bytes (instead of a thousandth) - print bytes as human number (i.e. 8MB) instead of 8388608 - stabilize sorting by adjusting NAN values to very tiny negative number | ||||
* | Only initialize and gather delay accounting data if a related column is enabled | Christian Göttsche | 2021-01-01 | 1 | -10/+11 |
| | | | | | Avoid creating and communicating over a netlink socket by default, which triggers cap_net_admin checks as root. | ||||
* | Merge Process_pidColumns into Process_fields and rework auto-fit for ↵ | Christian Göttsche | 2020-12-19 | 1 | -3/+1 |
| | | | | PID-like columns | ||||
* | Rework enum ProcessField | Christian Göttsche | 2020-12-19 | 1 | -49/+1 |
| | | | | | | 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 | ||||
* | LinuxProcess: drop dead Process columns | Christian Göttsche | 2020-12-19 | 1 | -20/+0 |
| | |||||
* | Use common naming for bare enum types | Christian Göttsche | 2020-12-16 | 1 | -2/+2 |
| | |||||
* | Cleanup initialization of jiffies on the Linux platform | Nathan Scott | 2020-12-14 | 1 | -2/+0 |
| | | | | | | | | | | Small cleanups - add error handling, remove a local static variable and refactor LinuxProcess_adjustTime (also rename it, as its in LinuxProcessList.c not LinuxProcess.c) - and while there, move the related 'btime' global variable into LinuxProcessList.c so it can be made static. Resolves https://github.com/htop-dev/htop/issues/384 | ||||
* | Cull the definitions of pageSize and pageSizeKB from CRT.c | Nathan Scott | 2020-12-10 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | By storing the per-process m_resident and m_virt values in the form htop wants to display them in (KB, not pages), we no longer need to have definitions of pageSize and pageSizeKB in the common CRT code. These variables were never really CRT (i.e. display) related in the first place. It turns out the darwin platform code doesn't need to use these at all (the process values are extracted from the kernel in bytes not pages) and the other platforms can each use their own local pagesize variables, in more appropriate locations. Some platforms were actually already doing this, so this change is removing duplication of logic and variables there. | ||||
* | IWYU update | Christian Göttsche | 2020-12-06 | 1 | -2/+1 |
| | |||||
* | Add Linux cwd process column | Christian Göttsche | 2020-12-03 | 1 | -1/+4 |
| | |||||
* | Only calculate M_LRS size every 5 seconds | Benny Baumann | 2020-11-26 | 1 | -0/+1 |
| | |||||
* | Calculate library size (M_LRS column) from maps file | Fynn Wulf | 2020-11-26 | 1 | -8/+9 |
| | |||||
* | Drop taskstats conditional | Christian Göttsche | 2020-11-25 | 1 | -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 conditional | Christian Göttsche | 2020-11-25 | 1 | -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 Baumann | 2020-11-24 | 1 | -0/+1 |
| | | | | | | basename from cmdline Also highlights entries where exe was marked deleted | ||||
* | Refactor command string creation | Benny Baumann | 2020-11-24 | 1 | -0/+2 |
| | | | | Hopefully this patch makes it a bit more approachable how it's done. | ||||
* | Improving Command display/sort | Narendran Gopalakrishnan | 2020-11-24 | 1 | -1/+36 |
| | |||||
* | LinuxProcess: mark LinuxProcess_printDelay static | Christian Göttsche | 2020-11-21 | 1 | -4/+0 |
| | |||||
* | IWYU update (Linux) | Christian Göttsche | 2020-11-19 | 1 | -1/+1 |
| | |||||
* | Mark local functions static | Christian Göttsche | 2020-11-15 | 1 | -4/+0 |
| | |||||
* | Spacing around operators | Benny Baumann | 2020-11-02 | 1 | -1/+1 |
| | |||||
* | Implement Process_isUserlandThread as function | Christian Göttsche | 2020-10-28 | 1 | -1/+3 |
| | | | | Make it more readable and fix unenclosed macro arguments | ||||
* | Implement LinuxProcess_effectiveIOPriority as function | Christian Göttsche | 2020-10-28 | 1 | -10/+0 |
| | | | | Make it more readable and fix unenclosed macro arguments | ||||
* | Avoid some unnecessary casts and mark some not changing variables const | Christian Göttsche | 2020-10-27 | 1 | -1/+1 |
| | |||||
* | Hold only a const version of Settings in Process | Christian Göttsche | 2020-10-26 | 1 | -1/+1 |
| | |||||
* | Mark process parameter of Process_writeField consistently const | Christian Göttsche | 2020-10-26 | 1 | -1/+1 |
| | |||||
* | Make all required includes explicit | Benny Baumann | 2020-10-18 | 1 | -2/+11 |
| | | | | Information as seen by IWYU 0.12 + clang 9 on Linux | ||||
* | Do not use extra starttime process field on Linux | Christian Göttsche | 2020-10-16 | 1 | -1/+0 |
| | |||||
* | Mark remaining classes const | Christian Göttsche | 2020-10-13 | 1 | -1/+1 |
| | |||||
* | Mark process argument of Process_isThread const | Christian Göttsche | 2020-10-09 | 1 | -2/+2 |
| | |||||
* | Handle parsing envID & VPid from process status file | Benny Baumann | 2020-10-07 | 1 | -2/+2 |
| | | | | | Fixes #55 Fixes #192 |