summaryrefslogtreecommitdiff
path: root/sysdeps
Commit message (Collapse)AuthorAgeFilesLines
* Fix commentJames Dominic P. Guana2021-04-231-1/+1
|
* Revert "Revert "Updated config and added reference""James Dominic P. Guana2021-04-231-22/+9
| | | | This reverts commit 2229253e11ae5c729a703f0c72e006f46746c592.
* Revert "Revert "Code clean up and add example""James Dominic P. Guana2021-04-236-14/+76
| | | | This reverts commit ea08151ae6582a438db76b738293a0194c964b88.
* Revert "Revert "Handle LVM and RAID""James Dominic P. Guana2021-04-234-34/+219
| | | | This reverts commit 30bf8d04183c26ca48c6cd4efe4c24058a082783.
* Revert "Revert "New API to retrieve disk stats in Linux""James Dominic P. Guana2021-04-239-1/+179
| | | | This reverts commit 7e214414bf23d1ea34e7fdccb17a7f41040ffea9.
* Fix msg_limits.c and sem_limits.c error messageToMe252021-04-192-4/+4
|
* Fix shm_limits.c, sem_limits.c, and msg_limits.crobert2021-04-193-33/+50
| | | | | | by using sysctl instead of kvm_nlist Co-authored-by: jasper <jasper@openbsd.org>
* Fix kvm_open issueToMe252021-04-192-2/+2
|
* Fix deleted empty lineToMe252021-04-181-0/+1
|
* Fix remaining compile errorsToMe252021-04-185-478/+79
| | | | | | Finalize(hopefully) procmap.c fix copy stub procio.c to fix compile errors undo rb workaround
* Another attempt at getting procmap.c to workToMe252021-04-182-8/+446
| | | | | | I think this is the closest i've gotten to a version that both compiles and links. However it doesn't compile, so im not sure. I might undo all of this, not sure yet.
* Fix some more procmap.c issuesToMe252021-04-181-7/+7
| | | | Commit acinclude getmntinfo workaround
* Undo some procmap.c changesToMe252021-04-181-16/+21
|
* Fix compilation issues in sysdeps/openbsd/netload.cToMe252021-04-181-2/+6
|
* Fix openbsd procmap.c compile errorsToMe252021-04-181-18/+18
|
* Revert "New API to retrieve disk stats in Linux"Michael Catanzaro2020-11-069-179/+1
| | | | This reverts commit 9e62440b314fbf87bbeca865a4223311314c52a3.
* Revert "Handle LVM and RAID"Michael Catanzaro2020-11-064-219/+34
| | | | This reverts commit 9cbb3b91f11ad0c4944a1428d609201c054cffab.
* Revert "Code clean up and add example"Michael Catanzaro2020-11-066-76/+14
| | | | This reverts commit 7396970afe2290488fd072612a650353dd13a16d.
* Revert "Updated config and added reference"Michael Catanzaro2020-11-061-9/+22
| | | | This reverts commit e9da95977365731a8f921f2d23b943036bf8f3d5.
* Updated config and added referenceJames Dominic P. Guana2020-11-041-22/+9
|
* Code clean up and add exampleJames Dominic P. Guana2020-11-046-14/+76
|
* Handle LVM and RAIDJames Dominic P. Guana2020-11-044-34/+219
|
* New API to retrieve disk stats in LinuxJames Dominic P. Guana2020-11-049-1/+179
|
* Support FreeBSD 13.0-CURRENT >= 1300062 vm_map_entryNeel Chauhan2019-12-151-0/+16
|
* freebsd: Support laundry memory and ZFS ARCTing-Wei Lan2018-10-251-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | FreeBSD 11.1 removes cache memory and adds laundry memory. The MIB of cache memory still exists, but its value is always set to zero. According to the man page of top(1), the value of laundry memory means number of dirty pages queued for laundering, suggesting that it should be added to the 'user' in libgtop because it cannot be freed immediately without writing out data. Laundry memory was part of inactive memory in older FreeBSD releases. FreeBSD systems running on ZFS usually have a large portion of memory used as ZFS ARC, which has similar purpose to buffer cache of other filesystems. ZFS ARC can usually be freed quickly when the system needs more memory, so we don't want to put it in 'user' in libgtop. However, both buffer cache and ZFS ARC are parts of wired memory, and wired memory is counted in 'user'. Therefore, we subtract the size of ZFS ARC from wired memory when calculating 'user' value, making it more useful to FreeBSD users. This patch is based on the patch submiited three years ago by Benoît Dejean <bdejean@gmail.com>. https://bugzilla.gnome.org/show_bug.cgi?id=748928 https://gitlab.gnome.org/GNOME/libgtop/issues/31
* Fixed 3 old compile warnings.Benoît Dejean2018-07-222-3/+3
|
* glibtop_get_proc_map on Linux doesn't need to be SUID.Benoît Dejean2018-03-263-11/+337
| | | | | Revert this proof of concept. Add C file with comments to document how to make a call SUID.
* Make linux build with server.Benoît Dejean2018-03-266-5/+148
| | | | | Add suid infrastructure. Demo proc_map.
* Fix build on freebsd and darwin.Benoît Dejean2018-03-072-0/+2
|
* Rename GLIBTOP_SUID_PROC_FILE to GLIBTOP_SUID_PROC_OPEN_FILES.Benoît Dejean2018-03-072-2/+2
| | | | | | | | | The previous name is incorrect and inconsistent with the code generated by lib.pl. Also add missing hooks. This symbol, although exposed in public headers is not part of the API and is only used internally.
* Fix darwin build by adding dummy proc_io implementation.Benoît Dejean2018-02-113-1/+47
| | | | https://gitlab.gnome.org/GNOME/libgtop/issues/36
* Regenerate with gperf-3.1.Benoît Dejean2017-08-311-21/+14
|
* Fix build for FreeBSD 11.1.Benoit Dejean2017-07-291-0/+37
| | | | | The ufs struct inode has changed a requires a different code to get the device number.
* Merge branch 'wip/diskio'Robert Roth2017-05-2310-1/+216
|\
| * Implement disk_rbytes and disk_wbytes for FreeBSD.Benoit Dejean2017-05-201-1/+38
| |
| * Prepended disk io struct fields with disk_ prefixRobert Roth2017-05-121-6/+6
| |
| * Renamed procdiskio to procioRobert Roth2017-05-1210-31/+31
| |
| * Add dummy proc_diskio implementation for FreeBSD.Benoit Dejean2017-02-253-0/+45
| |
| * Set glibtop_proc_diskio.flags.Benoît Dejean2017-02-211-0/+4
| | | | | | | | Check linux version code before reading /proc/PID/io.
| * New API to retrieve process io stats, with Linux implementationRobert Roth2017-02-127-1/+130
| |
* | Add NULL pointer checker (bug found with scan-build).Benoît Dejean2017-05-011-1/+1
|/
* When parsing /proc/cpuinfo, ignore paragraphs that do not describe a CPU/core.Benoît Dejean2017-01-281-6/+14
|
* Use g_ascii_isspace instead of isspace because the later is slower and weBenoît Dejean2017-01-222-2/+2
| | | | only need to deal with ascii.
* Do not cache getpagesize(), it is already.Benoît Dejean2017-01-224-20/+2
|
* Use a dynamically allocated buffer to read /proc/cpuinfo to handle computersBenoît Dejean2017-01-221-2/+6
| | | | | | with a lot of CPUs. https://bugzilla.gnome.org/show_bug.cgi?id=323354
* Fixed indentation problemRobert Roth2016-11-271-1/+1
|
* procstate: Fill in last_processor member on linuxFlorian Müllner2016-11-271-0/+3
| | | | | | | | The field was added almost 20 years ago, but has only been set on Solaris so far. It turns out we have a use for it now in the new "Usage" application, so also fill it in on Linux. https://bugzilla.gnome.org/show_bug.cgi?id=775182
* freebsd: Support GLIBTOP_IF_FLAGS_WIRELESS in netloadTing-Wei Lan2016-08-201-0/+17
| | | | | | | | The ioctl call used in this patch doesn't seems to be documented. It is what ifconfig(8) command uses to display the media type, and its usage can be learned by reading the source code of ifconfig(8). https://bugzilla.gnome.org/show_bug.cgi?id=770165
* freebsd: Rewrite netload implementation with getifaddrs and ioctlGleb Smirnoff2016-08-201-176/+129
| | | | | | | | | | | | | | | | | | | | | | | Instead of using a documented and official API to get information related to a network interface, the old implementation uses kvm library to access kernel memory directly, which is not easy to understand and can be easily broken by changing kernel symbols or structs. Besides, FreeBSD 11 hides severai required kernel struct definitions from userspace programs, which causes compilation error because the definition of 'struct ifaddr' is not available unless _KERNEL is defined. This patch is primarily authored by Gleb Smirnoff <glebius@FreeBSD.org>, with other simple modification made by Antoine Brodin <antoine@FreeBSD.org>, Koop Mast <kwm@FreeBSD.org> and Ting-Wei Lan <lantw@src.gnome.org> applied. It was first submitted to FreeBSD ports and has been used by FreeBSD users for more than 18 months on all supported versions of FreeBSD. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194187 https://svnweb.freebsd.org/changeset/ports/371082 https://github.com/freebsd/freebsd-ports-gnome/commit/be884cd https://github.com/freebsd/freebsd-ports-gnome/commit/422a418 https://github.com/freebsd/freebsd-ports-gnome/commit/a4b1913 https://bugzilla.gnome.org/show_bug.cgi?id=770165
* Fix building on musl-libcKylie McClain2016-02-161-2/+2
| | | | | | | | | | | | libgtop fails to build on musl libc, due to the header resulting in the headers that would be loaded for libc 5 being loaded on musl libc. musl defines headers which are also defined in linux-headers' in.h, causing redefinition errors. https://bugzilla.gnome.org/show_bug.cgi?id=760655 Signed-off-by: Benoît Dejean <bdejean@gmail.com>