Hisham Muhammad
47cf1532b0
Linux: change how kernel threads are detected
...
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 .
8 years ago
André Carvalho
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.
8 years ago
Hisham
8af4d9f453
Interpret TTY_NR column on Linux,
...
translate dev_t to major:minor on other platforms.
Closes #316 .
10 years ago
Hisham Muhammad
9428010121
Make column width calculation dynamic.
...
Closes #228 .
11 years ago
Hisham Muhammad
2f45008477
Enable OOM support unconditionally on Linux.
...
Read OOM data only if column is enabled.
Make sort ordering more consistent. Closes #182 .
11 years ago
Hisham Muhammad
4c24a9b462
Fixes to subclassing Process.
11 years ago
Hisham Muhammad
4e064e0db7
Build fixes to resync with FreeBSD changes.
11 years ago
Hisham Muhammad
7fd4af80ff
Linux build fixes.
11 years ago
Hisham Muhammad
be1700cf94
Isolate portable and Linux-specific process fields.
11 years ago
Hisham Muhammad
e3fe3962cb
Move more Linux-specific code into Linux subdir.
11 years ago
Hisham Muhammad
0a184b769f
Merge fixes
11 years ago
Hisham Muhammad
9780c312f4
Fix allocation of processes. Closes #166 .
...
Conflicts:
Process.c
Process.h
ProcessList.c
ScreenManager.c
linux/LinuxProcessList.c
11 years ago
Hisham Muhammad
6f868b00c0
Fix allocation of processes. Closes #166 .
11 years ago
Hisham Muhammad
3383d8e556
Sorry about the mega-patch.
...
This is a work-in-progress, code is currently broken.
(Some actions, and notably, the header, are missing.)
11 years ago
Hisham Muhammad
430c7c9a9b
Move platform-dependent parts of Linux battery meter.
11 years ago