Christian Göttsche
11f558f934
Avoid discarding const qualifiers
6 years ago
Nathan Scott
500fb283e9
Resolve compiler warnings and errors relating to the Arg union
...
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 (?).
6 years ago
Nathan Scott
7ac1c709b7
Re-generate all headers with latest scripts/MakeHeader.py
...
Sync-up missing extern declarations for many functions.
6 years ago
adrien1018
536941fb23
Deal with larger numbers in colorNumber and outputRate
7 years ago
Wataru Ashihara
41754e5632
Remove unnecessary HAVE_SYS_SYSMACROS_H check
...
HAVE_SYS_SYSMACROS_H is always true if MAJOR_IN_SYSMACROS.
This way of checking is recommended in autoconf 2.70 documentation:
https://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=blobdiff;f=doc/autoconf.texi;h=4f041bd4e;hp=9ad7dc1c5f02c8ba25b2fe1218bf931c7113a5d5;hb=e17a30e987d7ee695fb4294a82d987ec3dc9b974;hpb=565a6dc50cfa01cec2fb4db894026689cdf4970c
NOTE: currently
https://www.gnu.org/software/autoconf/manual/autoconf.html is the
doc for autoconf 2.69.
7 years ago
Hisham Muhammad
0dbedf95a8
Collapse current subtree pressing Backspace
8 years ago
Hisham Muhammad
ccd156f8ba
Updates to generated header files
8 years ago
Hisham Muhammad
8c653212c0
Replace size_t with int/void* union
...
I was occasionally passing negative values to size_t.
Plus, this better reflects the intent of the variant argument.
Reported by Coverity:
https://scan8.coverity.com/reports.htm#v13253/p10402/fileInstanceId=22093891&defectInstanceId=7543346&mergedDefectId=174179&fileStart=251&fileEnd=500
8 years ago
Vladimir Panteleev
87be623eac
Add support for Linux TASK_IDLE
...
Linux commit 06eb61844d841d0032a9950ce7f8e783ee49c0d0 ("sched/debug:
Add explicit TASK_IDLE printing") exposes kthreads idling using
TASK_IDLE in procfs as "I (idle)".
Until now, when sorting the STATE ("S") column, htop used the raw
value of the state character for comparison, however that led to the
undesirable effect of TASK_IDLE ('I') tasks being sorted above tasks
that were running ('R').
Thus, explicitly recognize the idle process state, and sort it below
others.
8 years ago
Hisham Muhammad
e3f65c8ec2
Make 'c' key work with threads as well.
9 years ago
Hisham
7ededce9b5
Silence cast warning.
10 years ago
Hisham
1cfcc42a8f
Reuse comm object if possible, avoid useless repetitions of free+strdup.
10 years ago
Hisham Muhammad
802e216870
Extend buffer for reading lines from /proc.
...
Apparently a line longer than 255 chars was spotted in the wild:
http://serverfault.com/questions/577939/linux-ps-htop-show-processes-running-for-hundreds-or-thousands-of-days-though-h#comment676098_577939
10 years ago
Michael Klein
ab3a7c2fa8
drop privileges before changing process priority or sending signals
...
- replaces uid check from d18e9a4895
10 years ago
Michael Klein
0919ea32f9
'e' displays environment of current process
...
- uses sysctl(KERN_PROCARGS2) on *BSD
- doesn't work on Linux yet
10 years ago
Jardel Weyrich
ffacac14a9
Remove duplicate declaration.
11 years ago
Hisham Muhammad
9428010121
Make column width calculation dynamic.
...
Closes #228 .
11 years ago
sherpya
a8e1c1c63f
added missing defines for android
11 years ago
Hisham Muhammad
4c24a9b462
Fixes to subclassing Process.
11 years ago
Hisham Muhammad
b1b3f57976
Tempus fugit.
...
Conflicts:
htop.c
htop.h
11 years ago
Hisham Muhammad
1e0c530a46
Tempus fugit.
11 years ago
Hisham Muhammad
272e2d9b34
Major advances in FreeBSD port.
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
b4f6b11092
Move "get max pid" code into platform specific area.
11 years ago
Hisham Muhammad
eb229d9aef
Changes for supporting separate platform subdirectories.
11 years ago
Hisham Muhammad
78d09f955a
Compare with long, for 64-bit systems
12 years ago
Hisham Muhammad
e0209da88f
Support pagefaults stats. Closes #45 .
12 years ago
Hisham Muhammad
5d6ad853fa
Support for very large numbers, now tested on a 64-bit machine.
12 years ago
Hisham Muhammad
127f847ca5
Support really large numbers on 64-bit architectures; first try.
12 years ago
Hisham Muhammad
f2a190b0e9
New logic for highlighting basenames with spaces
12 years ago
Hisham Muhammad
6d90e58c01
alignment improvements
12 years ago
Leigh Simpson
da236ca318
Added additional column to monitor OOM killer score of each process
12 years ago
Hisham Muhammad
6cfa9e0bf2
Performance improvements due to conditional parsing of IO data depending on selected fields.
...
On my machine, this gives a ~20% improvement in htop process time use with the default config.
13 years ago
Hisham Muhammad
00b324bfc1
Changes in object model: separate class objects to store vtable. Also, nicer UTF-8 display of big numbers.
13 years ago
Hisham Muhammad
47e881f460
Add IO priority support ('i' key)
14 years ago
Hisham Muhammad
84281bdc44
major header cleanup
14 years ago
Hisham Muhammad
bc87a8ff8c
Remove bundled hwloc-1.2.1. Use either native Linux affinity support or an external libhwloc.
...
(for details see https://sourceforge.net/mailarchive/forum.php?thread_name=CAJpkDYeZpwqcWxZ77wq6bMrnhn-KzkU1xAqb3cU0drfnA3n9FQ%40mail.gmail.com&forum_name=htop-general )
15 years ago
Hisham Muhammad
7ca1081712
Mega-commit with features and tweaks for 1.0:
...
* Performance improvements
* Support for splitting CPU meters into two or four columns
(thanks to Wim Heirman)
* Switch from PLPA, which is now deprecated, to HWLOC.
* Bring back support for native Linux sched_setaffinity,
so we don't have to use HWLOC where we don't need to.
* Support for typing in user names and column fields in selection panels.
15 years ago
Hisham Muhammad
75080ce79d
Use wider PID columns in 64-bit machines with larger pid_max values.
15 years ago
Hisham Muhammad
ec17b7029a
Convert affinity control from the deprecated PLPA to HWLOC
15 years ago
Hisham Muhammad
300caa076e
Tempus fugit.
15 years ago
Hisham Muhammad
219bb9ccff
handle large values for process time
15 years ago
Hisham Muhammad
d8e1480a27
Remove arbitrary limit from rich strings
...
Fix subtree hiding
Fix reading of CPU values in hidden threads
Fix hiding of zombie processes as kernel threads
Remove "debug proc" code
Code cleanup in processElements
16 years ago
Hisham Muhammad
45de5694ac
no need to pad values; provide a default on machines without cgroup
16 years ago
Hisham Muhammad
6486229308
add support for steal/guest CPU time measurement
...
simplify processor data accounting (add CPUData structure)
remove Process_clone trick
16 years ago