b7b66b76a5
Adds support for linux delay accounting ( #667 )
...
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.
2017-12-04 00:15:29 -02:00
09e241fb12
Security review: check results of snprintf.
...
Calls marked with xSnprintf shouldn't fail.
Abort program cleanly if any of them does.
2017-07-27 16:07:50 -03:00
e9ecbd05bc
Use class value only to display idle I/O priority.
...
As suggested by @wolfgang42. Fixes #100 .
2017-07-05 15:18:02 -03:00
3f6d1262c0
Issue #502 fix SID colunm header width
2017-02-05 00:10:29 +01:00
84bc00a275
Issue #502 update Session ID column
2017-02-01 00:03:55 +01:00
8af4d9f453
Interpret TTY_NR column on Linux,
...
translate dev_t to major:minor on other platforms.
Closes #316 .
2016-10-01 03:09:04 -03:00
797bcd0961
Catch invalid IO values due to no permissions.
...
Display them properly. Not fully convinced of the "no perm" message...
2016-02-20 02:23:26 -02:00
35657208d7
Disable the syscall on systems that don't have it.
...
Got a report in #397 that htop runs in NetBSD
masquerading as Linux and using a compatibility /proc
(like we used to in FreeBSD) and that it builds fine
apart from this syscall.
2016-02-14 12:05:35 -02:00
b54d2dde40
Check for failure in allocations.
2016-02-02 15:53:02 +01:00
e8970b6f32
fix calloc() calls
...
* 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 )
2015-09-07 07:52:39 +02:00
9428010121
Make column width calculation dynamic.
...
Closes #228 .
2015-08-20 00:32:47 -03:00
1bdee6b6ba
Fix sort by cstime
2015-07-23 14:24:39 +03:00
2f45008477
Enable OOM support unconditionally on Linux.
...
Read OOM data only if column is enabled.
Make sort ordering more consistent. Closes #182 .
2015-04-09 15:41:21 -03:00
d880def0e9
Merge branch 'master' into wip
...
Conflicts:
Process.c
Process.h
htop.c
linux/LinuxProcess.c
linux/LinuxProcess.h
test_spec.lua
2015-04-02 01:57:37 -03:00
4c24a9b462
Fixes to subclassing Process.
2015-03-31 23:23:10 -03:00
272e2d9b34
Major advances in FreeBSD port.
2015-03-16 23:02:03 -03:00
adbfe3c3f1
Get FreeBSD tree to compile again with latest changes.
2015-03-16 03:14:20 -03:00
be1700cf94
Isolate portable and Linux-specific process fields.
2015-03-16 01:43:04 -03:00
e3fe3962cb
Move more Linux-specific code into Linux subdir.
2015-03-15 20:29:13 -03:00
e7d6eb6a82
Fix deletion of processes. Closes #172 .
...
Conflicts:
linux/LinuxProcess.c
2015-03-08 19:52:28 -03:00
39a725abc2
Fix deletion of processes. Closes #172 .
2015-03-08 19:45:56 -03:00
0a184b769f
Merge fixes
2015-02-23 03:53:36 -03:00
9780c312f4
Fix allocation of processes. Closes #166 .
...
Conflicts:
Process.c
Process.h
ProcessList.c
ScreenManager.c
linux/LinuxProcessList.c
2015-02-23 01:13:40 -03:00
6f868b00c0
Fix allocation of processes. Closes #166 .
2015-02-20 14:52:10 -02:00
3383d8e556
Sorry about the mega-patch.
...
This is a work-in-progress, code is currently broken.
(Some actions, and notably, the header, are missing.)
2015-01-21 23:27:31 -02:00
aaaaf063a1
Builds on Linux again!
2014-11-24 19:22:50 -02:00
26422af608
Files moved and added for supporting separate platforms.
2014-11-24 18:55:49 -02:00