summaryrefslogtreecommitdiffstats
path: root/freebsd/Platform.c
Commit message (Collapse)AuthorAgeFilesLines
* Update license headers to explicitly say GPLv2+Daniel Lange2021-09-221-1/+1
|
* Add combined memory and swap meterChristian Göttsche2021-08-171-0/+2
| | | | Closes: #699
* Rework CPU countingChristian Göttsche2021-07-181-1/+1
| | | | | | | | | | | 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
* Code indentationBenny Baumann2021-07-151-5/+5
|
* platform-dependent files included relative to main source directorymayurdahibhate2021-05-101-3/+3
|
* Use unsigned types for CPU counts and associated variablesChristian Göttsche2021-03-191-2/+2
|
* Merge branch 'shared_before_cached' of cgzones/htopDaniel Lange2021-03-191-1/+3
|\
| * MemoryMeter: show shared memory before cachedChristian Göttsche2021-03-171-1/+3
| | | | | | | | | | | | Shared memory is less free-able than cached memory. Show it beforehand.
* | Merge pull request #436 from cgzones/freebsdGraham Inggs2021-03-181-2/+2
|\ \ | |/ |/| | | FreeBSD: add support for CPU frequency and temperature Tested on two physical systems running FreeBSD 12.1
| * FreeBSD: add support for CPU frequency and temperatureChristian Göttsche2021-02-051-2/+2
| |
* | Merge pull request #550 from natoscott/diskio-typesNathan Scott2021-03-021-1/+1
|\ \ | | | | | | Fix integer sizing issues in the DiskIO Meter
| * | Fix integer sizing issues in the DiskIO MeterNathan Scott2021-03-011-1/+1
| |/ | | | | | | | | | | | | | | | | 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.
* | Switch NetworkIO Meter to using uint32_t and uint64_tNathan Scott2021-03-021-2/+1
| | | | | | | | From review via @BenBE, this is now a whole lot cleaner.
* | Fix integer sizing issues in the NetworkIO MeterNathan Scott2021-03-011-17/+7
|/ | | | | | | | | 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.
* [#480] SysArchMeter to view kernel/arch infoahgamut2021-01-311-0/+2
| | | | | | | 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.
* FreeBSD: miscChristian Göttsche2021-01-301-4/+3
|
* kfreeBSD: include config.h for _GNU_SOURCEChristian Göttsche2021-01-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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; | ^~
* Linux: Add SwapCached to the swap meterDavid Zarzycki2021-01-111-0/+1
| | | | | | | 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)."
* Mark Platform_defaultFields constChristian Göttsche2020-12-191-1/+1
|
* Rework enum ProcessFieldChristian Göttsche2020-12-191-2/+0
| | | | | | 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
* FreeBSD: fix crash on empty environmentChristian Goettsche2020-12-051-1/+1
| | | | e.g. on kernel threads
* Unify naming of first argument of Platform_getBatteryChristian Göttsche2020-11-251-3/+3
| | | | Use percent throughout
* Merge branch 'cleanup-init-done' into masterNathan Scott2020-11-231-4/+13
|\
| * Minor cleanups to platform-specific init and doneNathan Scott2020-11-191-4/+13
| | | | | | | | | | | | | | 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.
* | Rename virtual memory column from M_SIZE to M_VIRTChristian Göttsche2020-11-211-1/+1
| | | | | | | | Closes: #325
* | IWYU update (FreeBSD)Christian Goettsche2020-11-191-0/+9
|/
* Merge individual Battery.[ch] files into Platform.[ch]Nathan Scott2020-11-181-0/+16
| | | | | Consistent with everything else involving platform-specific calls from core htop code.
* Show CPU temperature in CPU meterChristian Göttsche2020-11-161-0/+1
| | | | | Show the CPU temperature in the CPU meter, like CPU frequency, instead of using an extra Meter.
* Resolve merge conflicts, merge #298 "Macro cleanup" from @BenBEDaniel Lange2020-11-151-12/+12
|\
| * Spacing around operatorsBenny Baumann2020-11-021-9/+9
| |
| * Whitespace and indentation issuesBenny Baumann2020-11-021-3/+3
| |
* | Split platform dependent parts for file locks screenBenny Baumann2020-11-141-0/+11
|/
* FreeBSD: implement Platform_getDiskIO()Christian Goettsche2020-10-291-6/+41
|
* FreeBSD: Platform updateChristian Göttsche2020-10-291-21/+20
|
* Hold only a const version of the ProcessList in MetersChristian Göttsche2020-10-261-6/+6
|
* Improve handling of no data in Disk and Network IO MetersChristian Göttsche2020-10-261-9/+9
|
* Simplify environment-reading codeRoss Williams2020-10-261-8/+2
| | | | Suggested PR changes, thanks @cgzones
* Add process environment for FreeBSDRoss Williams2020-10-261-3/+25
|
* Drop unused Platform functions Platform_setTasksValuesChristian Göttsche2020-10-221-5/+0
|
* Add NetworkIOMeterChristian Göttsche2020-10-161-0/+51
|
* Some more locations for ARRAYSIZEBenny Baumann2020-10-081-1/+2
|
* Mark Object instances constChristian Göttsche2020-10-071-1/+1
|
* Mark Object classes and Object class fields constChristian Göttsche2020-10-071-2/+2
|
* Merge branch 'update-license-and-copyright-info'Nathan Scott2020-10-061-1/+1
|\
| * Update License consistently to GPLv2 as per COPYING fileDaniel Lange2020-10-051-1/+1
| |
* | Add a date and datetime meter (#159)Michael F. Schönitzer2020-10-051-0/+4
|/ | | | | | 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.
* Add DiskIOMeter for IO read/write usageChristian Göttsche2020-10-031-0/+5
|
* CPUMeter: add octuple-column CPU meters.multi2020-09-281-0/+3
| | | | | | | 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.
* Add missing 4-column CPU meters to non-Linux platforms.multi2020-09-281-0/+3
|
* Update CPU freq display to use NAN on errorBenny Baumann2020-09-241-1/+1
|

© 2014-2024 Faster IT GmbH | imprint | privacy policy