summaryrefslogtreecommitdiffstats
path: root/freebsd/Platform.c
AgeCommit message (Collapse)Author
2021-08-17Add combined memory and swap meterChristian Göttsche
Closes: #699
2021-07-18Rework CPU countingChristian Göttsche
Currently htop does not support offline CPUs and hot-swapping, e.g. via echo 0 > /sys/devices/system/cpu/cpu2/online Split the current single cpuCount variable into activeCPUs and existingCPUs. Supersedes: #650 Related: #580
2021-07-15Code indentationBenny Baumann
2021-05-10platform-dependent files included relative to main source directorymayurdahibhate
2021-03-19Use unsigned types for CPU counts and associated variablesChristian Göttsche
2021-03-19Merge branch 'shared_before_cached' of cgzones/htopDaniel Lange
2021-03-18Merge pull request #436 from cgzones/freebsdGraham Inggs
FreeBSD: add support for CPU frequency and temperature Tested on two physical systems running FreeBSD 12.1
2021-03-17MemoryMeter: show shared memory before cachedChristian Göttsche
Shared memory is less free-able than cached memory. Show it beforehand.
2021-03-02Merge pull request #550 from natoscott/diskio-typesNathan Scott
Fix integer sizing issues in the DiskIO Meter
2021-03-02Switch NetworkIO Meter to using uint32_t and uint64_tNathan Scott
From review via @BenBE, this is now a whole lot cleaner.
2021-03-01Fix integer sizing issues in the DiskIO MeterNathan Scott
On Linux kernels the size of the values exported for block device bytes has used a 64 bit integer for quite some time (2.6+ IIRC). Make the procfs value extraction use correct types and change internal types used to rate convert these counters (within the DiskIO Meter) 64 bit integers, where appropriate.
2021-03-01Fix integer sizing issues in the NetworkIO MeterNathan Scott
On Linux kernels the size of the values exported for network device bytes and packets has used a 64 bit integer for quite some time (2.6+ IIRC). Make the procfs value extraction use correct types and change internal types used to rate convert these counters (within the NetworkIO Meter) 64 bit integers, where appropriate.
2021-02-05FreeBSD: add support for CPU frequency and temperatureChristian Göttsche
2021-01-31[#480] SysArchMeter to view kernel/arch infoahgamut
At start, SysArchMeter calls the uname function to obtain the kernel version and architecture. If available, the distro version is obtained by calling lsb_release. The obtained values are stored in static variables and used when updating the meter.
2021-01-30FreeBSD: miscChristian Göttsche
2021-01-12kfreeBSD: include config.h for _GNU_SOURCEChristian Göttsche
strcasestr(3) is a GNU extension and when compiling freebsd/Platform.c on kfreebsd for Debian <string.h> is included before we define _GNU_SOURCE, so the function is not available. In file included from ./Object.h:16, from ./ListItem.h:12, from ./Meter.h:16, from ./Header.h:10, from ./Action.h:15, from freebsd/Platform.h:13, from freebsd/Platform.c:8: ./XUtils.h: In function ‘String_contains_i’: ./XUtils.h:43:11: warning: implicit declaration of function ‘strcasestr’; did you mean ‘strcasecmp’? [-Wimplicit-function-declaration] 43 | return strcasestr(s1, s2) != NULL; | ^~~~~~~~~~ | strcasecmp ./XUtils.h:43:30: warning: comparison between pointer and integer 43 | return strcasestr(s1, s2) != NULL; | ^~ In file included from ./Object.h:16, from ./ProcessList.h:16, from freebsd/FreeBSDProcessList.h:15, from freebsd/FreeBSDProcessList.c:8: ./XUtils.h: In function ‘String_contains_i’: ./XUtils.h:43:11: warning: implicit declaration of function ‘strcasestr’; did you mean ‘strcasecmp’? [-Wimplicit-function-declaration] 43 | return strcasestr(s1, s2) != NULL; | ^~~~~~~~~~ | strcasecmp ./XUtils.h:43:30: warning: comparison between pointer and integer 43 | return strcasestr(s1, s2) != NULL; | ^~
2021-01-11Linux: Add SwapCached to the swap meterDavid Zarzycki
According to the Linux kernel documentation, "SwapCached" tracks "memory that once was swapped out, is swapped back in but still also is in the swapfile (if memory is needed it doesn't need to be swapped out AGAIN because it is already in the swapfile. This saves I/O)."
2020-12-19Mark Platform_defaultFields constChristian Göttsche
2020-12-19Rework enum ProcessFieldChristian Göttsche
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
2020-12-05FreeBSD: fix crash on empty environmentChristian Goettsche
e.g. on kernel threads
2020-11-25Unify naming of first argument of Platform_getBatteryChristian Göttsche
Use percent throughout
2020-11-23Merge branch 'cleanup-init-done' into masterNathan Scott
2020-11-21Rename virtual memory column from M_SIZE to M_VIRTChristian Göttsche
Closes: #325
2020-11-19IWYU update (FreeBSD)Christian Goettsche
2020-11-19Minor cleanups to platform-specific init and doneNathan Scott
Move platform-specific code out of the htop.c main function and into the platform sub-directories - primarily this is the Linux procfs path check and sensors setup/teardown; not needed on any other platforms. No functional changes here.
2020-11-18Merge individual Battery.[ch] files into Platform.[ch]Nathan Scott
Consistent with everything else involving platform-specific calls from core htop code.
2020-11-16Show CPU temperature in CPU meterChristian Göttsche
Show the CPU temperature in the CPU meter, like CPU frequency, instead of using an extra Meter.
2020-11-15Resolve merge conflicts, merge #298 "Macro cleanup" from @BenBEDaniel Lange
2020-11-14Split platform dependent parts for file locks screenBenny Baumann
2020-11-02Spacing around operatorsBenny Baumann
2020-11-02Whitespace and indentation issuesBenny Baumann
2020-10-29FreeBSD: implement Platform_getDiskIO()Christian Goettsche
2020-10-29FreeBSD: Platform updateChristian Göttsche
2020-10-26Hold only a const version of the ProcessList in MetersChristian Göttsche
2020-10-26Improve handling of no data in Disk and Network IO MetersChristian Göttsche
2020-10-26Simplify environment-reading codeRoss Williams
Suggested PR changes, thanks @cgzones
2020-10-26Add process environment for FreeBSDRoss Williams
2020-10-22Drop unused Platform functions Platform_setTasksValuesChristian Göttsche
2020-10-16Add NetworkIOMeterChristian Göttsche
2020-10-08Some more locations for ARRAYSIZEBenny Baumann
2020-10-07Mark Object instances constChristian Göttsche
2020-10-07Mark Object classes and Object class fields constChristian Göttsche
2020-10-06Merge branch 'update-license-and-copyright-info'Nathan Scott
2020-10-05Add a date and datetime meter (#159)Michael F. Schönitzer
Add a date meter and sort header and source files in Makefile Change the lists of header and source files sorted alphabetical and one file per line. This way diffs become better readable and merges easier.
2020-10-05Update License consistently to GPLv2 as per COPYING fileDaniel Lange
2020-10-03Add DiskIOMeter for IO read/write usageChristian Göttsche
2020-09-28CPUMeter: add octuple-column CPU meters.multi
This is a straightforward extension of the existing multi-column CPU meter code, which now allows for up CPU meters to be displayed in up to 16 columns. This also adds the meter declarations to all the platform-specific code.
2020-09-28Add missing 4-column CPU meters to non-Linux platforms.multi
2020-09-24Update CPU freq display to use NAN on errorBenny Baumann
2020-09-18Resolve unused variable on FreeBSDChristian Göttsche