summaryrefslogtreecommitdiffstats
path: root/freebsd
AgeCommit message (Collapse)Author
2020-08-22Merge branch 'patch-1' of https://github.com/ginggs/htop-1 into ginggs-patch-1Daniel Lange
2020-08-21Fix build on FreeBSDGraham Inggs
2020-08-21Remove trailing whitespacesChristian Göttsche
2020-08-20Merge branch 'hishamhm-pull-920'3.0.0rc1Nathan Scott
2020-08-20Merge branch 'hishamhm-pull-932'Nathan Scott
2020-08-20Merge branch 'hishamhm-pull-974'Nathan Scott
2020-08-20Merge branch 'hishamhm-pull-904'Nathan Scott
2020-08-20Merge branch 'hishamhm-pull-871'Nathan Scott
2019-12-31Fix STARTTIME column on FreeBSD.Robert Crowston
2019-09-03Support for ZFS Compressed ARC statisticsRoss Williams
2019-09-03Refactor openzfs_sysctl_init() and ZfsArcMeter...Ross Williams
openzfs_sysctl_init() now returns void instead of int. The ZfsArcStats->enabled flag is set inside the init function now, instead of having to be set from its return value. Preparation for more flag setting in Compressed ARC commit. ZfsArcMeter_readStats() added and all Meter->values[] setting moved to it, eliminating duplicated code in {darwin,freebsd,linux,solaris}/Platform.c.
2019-08-10Show N/A on unsupported platforms instead of 0KHzArnavion
2019-07-07Refactor common OpenZFS sysctl accessRoss Williams
Darwin and FreeBSD export zfs kstats through the same APIs, so moving functions into a common file.
2019-07-07Support ZFS ARC stats on FreeBSDRoss Williams
New meter displays same ARC stats as FreeBSD top(1). Can be extended to other platforms that support ZFS. Pulling kstat.zfs.misc.arcstats.c_max as the meter total, so the meter has a meaningful value to work up to. The Text meter displays, first, the maximum ARC size (Meter.total), then second, the total ARC used, using the difference between Meter.maxItems and Meter.curItems to "hide" the used value from the Bar and Graph drawing functions by using an index in Meter.values[] that is beyond curItems - 1, but less than maxItems - 1.
2019-07-06Specify correct MIB lengthRoss Williams
Could have resulted in a buffer overflow if the FreeBSD kernel returned more bytes than expected.
2019-04-17Truncate overwide jail names on BSD.Robert Crowston
2018-12-24Fix memory statistics display on FreeBSD/powerpcTobias Kortkamp
Use the appropriate types when calling sysctl(). Currently, `unsigned long long int` is used for all sizes and on FreeBSD/powerpc this causes all sysctl() calls in scanMemoryInfo() to fail as they are actually of different sizes on powerpc, where (sizeof(unsigned long long int), sizeof(u_long)) == (8, 4) vs (8, 8) on amd64. This results in bogus memory sizes being reported by htop. Signed-off-by: Tobias Kortkamp <tobik@FreeBSD.org>
2018-10-07Widen ST_UID (UID) column to 5 chars to allow UIDs > 9999 without breaking ↵Daniel Lange
alignment Issue Github #841, Debian bug #910492
2017-07-27Security review: check results of snprintf.Hisham Muhammad
Calls marked with xSnprintf shouldn't fail. Abort program cleanly if any of them does.
2017-02-05Issue #502 fix SID colunm header widthKamyar Rasta
2017-02-01Issue #502 update Session ID columnKamyar Rasta
2016-10-01Interpret TTY_NR column on Linux,Hisham
translate dev_t to major:minor on other platforms. Closes #316.
2016-08-30Merge branch 'master' of https://github.com/hishamhm/htopHisham
2016-08-30Fix typos, by @Gelma.Hisham
Closes #546.
2016-08-30Mark signal tables 'const'Explorer09
Specifically, Platform_signals[] and Platform_numberOfSignals. Both are not supposed to be mutable. Marking them 'const' puts them into rodata sections in binary. And for Platform_numberOfSignals, this aids optimization (aids only Link Time Optimization for now). :) Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
2016-05-19Merge pull request #496 from tcreech/lwp_hackHisham Muhammad
FreeBSD: fix multithreaded CPU% in process list
2016-04-28Revert "Fix FreeBSD CPU% calculation"Andy Pilate
This reverts commit f554f08fa92f8440faa853b5fa4d588829959c8a.
2016-03-07Prepare for release 2.0.1.2.0.1Hisham
2016-03-07Avoid global, as done by @gaod in #387.Hisham Muhammad
2016-03-07Merge branch 'master' of https://github.com/Sp1l/htop into Sp1l-masterHisham Muhammad
2016-03-05Improve error reporting on FreeBSD libkvm callMichael McConville
This involves switching from kvm_open(3) to kvm_openfiles(3). The only difference is that the latter has saner error reporting (see the man page for details). We can now fatally report the error rather than just calling assert(3).
2016-02-28FreeBSD: use KERN_PROC_PROC with kvm_getprocs to avoid erroneously combining ↵Tim Creech
LWPs
2016-02-26Fix low CPU usage reporting in FreeBSDTim Creech
2016-02-14Fix FreeBSD CPU% calculationBernard Spil
2016-02-14Fix memory percentage display on FreeBSDBernard Spil
2016-02-13Add MEM% for processes in process list on FreeBSD.Hung-Yi Chen
2016-02-13Suppress compiler warnings.Hung-Yi Chen
2016-02-11fix process memory on FreeBSDGreg V
2016-02-11add FreeBSD battery supportGreg V
2016-02-02Merge branch 'xalloc'Hisham
2016-02-02Check for failure in allocations.Hisham
2016-01-31Add generated header.Hisham
2016-01-15Introduce CLAMP macro. Unify all MIN(MAX(a,b),c) uses.Explorer09
With the CLAMP macro replacing the combination of MIN and MAX, we will have at least two advantages: 1. It's more obvious semantically. 2. There are no more mixes of confusing uses like MIN(MAX(a,b),c) and MAX(MIN(a,b),c) and MIN(a,MAX(b,c)) appearing everywhere. We unify the 'clamping' with a single macro. Note that the behavior of this CLAMP macro is different from the combination `MAX(low,MIN(x,high))`. * This CLAMP macro expands to two comparisons instead of three from MAX and MIN combination. In theory, this makes the code slightly smaller, in case that (low) or (high) or both are computed at runtime, so that compilers cannot optimize them. (The third comparison will matter if (low)>(high); see below.) * CLAMP has a side effect, that if (low)>(high) it will produce weird results. Unlike MIN & MAX which will force either (low) or (high) to win. No assertion of ((low)<=(high)) is done in this macro, for now. This CLAMP macro is implemented like described in glib <http://developer.gnome.org/glib/stable/glib-Standard-Macros.html> and does not handle weird uses like CLAMP(a++, low++, high--) .
2016-01-06Merge remote-tracking branch 'upstream/master' into envscreenMichael Klein
2016-01-04Merge branch 'freebsd-free' of https://github.com/mmcco/htop into ↵Hisham Muhammad
mmcco-freebsd-free
2016-01-04Plug leak in FreeBSD backend, as noted by @mmcco in #334.Hisham Muhammad
2016-01-03Remove NULL-checks before free()Michael McConville
These are never necessary when using the standard library.
2016-01-02Fix spelling of "maintainer"Michael McConville
2015-12-17fixed bug with PPID of parent not being set on first process list scan pass.Martin "eto" Misuth
this caused htop to show processes as if freebsd kernel was their parent. on next pass reparenting code took chance to run, and that caused process to jump around. this fixed behaviour should be the correct one
2015-12-13enabled swap meterMartin "eto" Misuth